/* ==========================================================================
   JUST VUILD — 이미지 레퍼런스 스타일 디자인 시스템
   (Dark / Electric Blue / Soft Lavender / Neon Magenta & Violet)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600;700&family=Outfit:wght@500;600;700;800;900&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  /* 레거시 호환 토큰 */
  --bg: #f7fbff;
  --neon-green: #72e000;
  --blue: #3b82f6;
  --bg-dark: #080914;

  /* 레퍼런스 이미지 팔레트 */
  --c-dark: #080914;
  --c-dark-surface: #0f1222;
  --c-dark-card: #15192e;
  --c-dark-border: rgba(255, 255, 255, 0.12);

  --c-blue: #2738f5;
  /* 선명한 일렉트릭 코발트 블루 */
  --c-blue-hover: #1b2bd8;
  --c-blue-deep: #1622b3;
  --c-blue-glow: rgba(39, 56, 245, 0.4);
  --c-blue-light: rgba(39, 56, 245, 0.1);

  --c-magenta: #ff2a8d;
  /* 핫핑크 / 네온 마젠타 */
  --c-magenta-glow: rgba(255, 42, 141, 0.45);
  --c-purple: #8338ec;
  /* 비비드 바이올렛 */
  --c-cyan: #00d2ff;
  /* 네온 사이언 */

  --c-lavender: #f5f1fc;
  /* 소프트 라벤더 라이트 배경 */
  --c-lavender-alt: #eee7f9;
  --c-lavender-card: #ffffff;
  --c-lavender-border: rgba(131, 56, 236, 0.12);

  --c-white: #ffffff;
  --c-text-dark: #0f172a;
  --c-text-muted: #526077;
  --c-text-light: #f8fafc;
  --c-text-light-muted: #94a3b8;

  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Outfit", "Plus Jakarta Sans", "Pretendard Variable", sans-serif;
  --mono: "JetBrains Mono", "SF Mono", monospace;

  --maxw: 1200px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-pill: 9999px;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.14);
  --shadow-glow: 0 16px 40px rgba(39, 56, 245, 0.35);

  /* 호환성 변수 매핑 */
  --text: var(--c-text-light);
  --panel: var(--c-dark-surface);
  --line: var(--c-dark-border);
  --danger: #ef4444;
  --mint: var(--c-blue);
  --mint-dark: var(--c-blue-hover);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--c-dark);
  color: var(--c-text-light);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.mono {
  font-family: var(--mono);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   타이포그래피 및 유틸리티
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-top: 0;
  color: inherit;
}

.gradient-text {
  background: linear-gradient(135deg, #ff2a8d 0%, #a855f7 50%, #2738f5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gradient-text-alt {
  background: linear-gradient(135deg, #00d2ff 0%, #2738f5 50%, #ff2a8d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* 알약형 뱃지 (Pill Badges) */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(12px);
  transition: all 0.2s ease;
}

.pill-badge-dark {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.pill-badge-light {
  background: rgba(131, 56, 236, 0.08);
  border: 1px solid rgba(131, 56, 236, 0.2);
  color: var(--c-purple);
}

.pill-badge-blue {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

/* 알약형 버튼 시스템 (Pill Buttons) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn-lg {
  padding: 16px 36px;
  font-size: 17px;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
}

.btn-pill-white {
  background: #ffffff;
  color: #080914 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-pill-white:hover {
  background: #f8fafc;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

.btn-pill-primary,
.btn-primary {
  background: linear-gradient(135deg, #2738f5 0%, #8338ec 100%);
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(39, 56, 245, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-pill-primary:hover,
.btn-primary:hover {
  background: linear-gradient(135deg, #1b2bd8 0%, #7226d9 100%);
  box-shadow: 0 10px 30px rgba(39, 56, 245, 0.6);
  transform: translateY(-2px);
}

.btn-pill-dark {
  background: var(--c-dark);
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.btn-pill-dark:hover {
  background: #121528;
}

.btn-pill-nav {
  background: #ffffff;
  color: #080914 !important;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.2);
}

.btn-pill-nav:hover {
  background: #f1f5f9;
  transform: translateY(-1px);
}

.btn-pill-outline {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}

.btn-pill-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-ghost:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   섹션 테마 시스템 (Dark / Electric Blue / Soft Lavender)
   ========================================================================== */

.theme-dark {
  background-color: var(--c-dark);
  color: var(--c-text-light);
}

.theme-electric-blue {
  background-color: var(--c-blue);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.theme-lavender {
  background-color: var(--c-lavender);
  color: var(--c-text-dark);
}

/* ==========================================================================
   상단 GNB 헤더 (Site Header)
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(8, 9, 20, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.site-logo-symbol {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

/* 공식 로고 (배경 제거본, 흰 글자라 어두운 헤더 전용) */
.site-logo-img {
  display: block;
  height: 40px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(131, 56, 236, 0.35));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: #ffffff;
}

.header-actions {
  display: flex;
  align-items: center;
}

/* ==========================================================================
   히어로 섹션 (Hero Section) — 3D 네온 튜브 웨이브
   ========================================================================== */

.hero-ref {
  position: relative;
  padding: 80px 24px 100px;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 100%, rgba(39, 56, 245, 0.25) 0%, transparent 60%),
    radial-gradient(circle at 50% 20%, rgba(255, 42, 141, 0.1) 0%, transparent 40%),
    var(--c-dark);
}

/* 시그니처 3D 네온 튜브 웨이브 (핑크 -> 보라 -> 블루 입체 곡선 파이프) */
.hero-tube-container {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 100px auto 0;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-tube-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 20px 40px rgba(255, 42, 141, 0.35));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: -230px auto 0;
}

.hero-ref-title {
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #ffffff;
  margin: 16px 0 24px;
}

.hero-brand-stage-wrap {
  width: 100%;
  max-width: min(680px, 86vw);
  margin: 10px auto 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-brand-pretitle {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.01em;
  margin: 0 auto 12px;
  text-align: center;
  background: none;
  border: none;
  padding: 0;
  display: inline-block;
}

.hero-brand-mega-wrap {
  margin: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-brand-logo-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 45px rgba(39, 56, 245, 0.45)) drop-shadow(0 4px 16px rgba(255, 42, 141, 0.25));
  transition: transform 0.3s ease;
}

.hero-brand-logo-img:hover {
  transform: scale(1.02);
}

.hero-ref-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--c-text-light-muted);
  max-width: 720px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* 히어로 실시간 신청 통계 뱃지 */
.hero-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(12px);
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  margin-bottom: 40px;
}

.hero-stat-pill .stat-num {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  color: #00d2ff;
}

.hero-stat-pill .stat-label {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.8);
}

/* 파트너 & 스폰서 로고 바 */
.hero-partners-bar {
  margin-top: 50px;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.partners-kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 20px;
}

.partners-logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.partner-logo-item {
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
}

.partner-logo-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* 주최 줄 · 후원 줄 — 줄 앞의 작은 라벨 */
.partners-logo-row + .partners-logo-row {
  margin-top: 10px;
}

.partners-row-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.4);
  margin-right: 2px;
}

.partner-logo-item.is-sponsor {
  color: #00d2ff;
  border-color: rgba(0, 210, 255, 0.3);
}

/* CI 로고로 보여주는 후원사: 로고 자체가 배지 모양이라 칩 테두리·배경 없이 칩 높이에 맞춘다 */
.partner-logo-item.is-logo,
.partner-logo-item.is-logo:hover {
  display: inline-flex;
  padding: 0;
  background: none;
  border: 0;
  line-height: 0;
}

.partner-logo-item.is-logo img {
  display: block;
  height: 33px;
  width: auto;
}

/* ==========================================================================
   Section 1: 일렉트릭 블루 섹션 & 3D 메탈릭 바 차트 (Systemic Challenges)
   ========================================================================== */

.sec-electric-blue {
  padding: 110px 24px 120px;
  text-align: center;
  position: relative;
}

.sec-electric-blue .sec-badge {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  margin-bottom: 20px;
}

.sec-title-white {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #ffffff;
  line-height: 1.15;
  margin: 0 auto 18px;
  max-width: 820px;
}

.sec-desc-white {
  font-size: clamp(16px, 1.8vw, 19px);
  color: rgba(255, 255, 255, 0.85);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.65;
}

/* 3D 메탈릭 바 차트 비주얼 (Perspective 3D Bar Columns) */
.bar-chart-stage {
  max-width: 860px;
  margin: 0 auto;
  perspective: 1200px;
  position: relative;
}

.bar-columns-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 24px;
  height: 280px;
  padding-bottom: 20px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.bar-col-item {
  flex: 1;
  max-width: 90px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}

.bar-badge-floating {
  position: absolute;
  top: -45px;
  background: #080914;
  color: #ffffff;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  white-space: nowrap;
  animation: floatUp 3s ease-in-out infinite alternate;
}

.bar-col-item:nth-child(2) .bar-badge-floating {
  animation-delay: 0.5s;
}

.bar-col-item:nth-child(3) .bar-badge-floating {
  animation-delay: 1.0s;
}

.bar-col-item:nth-child(4) .bar-badge-floating {
  animation-delay: 1.5s;
}

.bar-col-item:nth-child(5) .bar-badge-floating {
  animation-delay: 2.0s;
}

@keyframes floatUp {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-8px);
  }
}

/* 3D 기둥 바 (Prism Block with Top Face) */
.bar-pillar {
  width: 100%;
  border-radius: 8px 8px 0 0;
  position: relative;
  transform-style: preserve-3d;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.4), 0 20px 40px rgba(0, 0, 0, 0.25);
  transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.bar-pillar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 16px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 8px 8px 0 0;
}

.bar-p-1 {
  height: 110px;
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
}

.bar-p-2 {
  height: 160px;
  background: linear-gradient(180deg, #818cf8 0%, #4338ca 100%);
}

.bar-p-3 {
  height: 210px;
  background: linear-gradient(180deg, #c084fc 0%, #7e22ce 100%);
}

.bar-p-4 {
  height: 260px;
  background: linear-gradient(180deg, #f472b6 0%, #be185d 100%);
}

.bar-p-5 {
  height: 230px;
  background: linear-gradient(180deg, #fb7185 0%, #e11d48 100%);
}

.bar-p-6 {
  height: 180px;
  background: linear-gradient(180deg, #38bdf8 0%, #2563eb 100%);
}

.bar-labels-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 14px;
}

.bar-label-text {
  flex: 1;
  max-width: 90px;
  text-align: center;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   Section 2: 소프트 라벤더 섹션 & 3D 플로팅 피처 (We imagine a better way)
   ========================================================================== */

.sec-lavender {
  padding: 120px 24px;
  position: relative;
}

.sec-container {
  max-width: var(--maxw);
  margin: 0 auto;
}

.sec-heading-center {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.sec-title-dark {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--c-text-dark);
  line-height: 1.15;
  margin: 16px 0;
}

.sec-desc-dark {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--c-text-muted);
  line-height: 1.65;
  margin: 0;
}

/* 3D 플로팅 디바이스 쇼케이스 (Laptop & Phone with Floating 3D Geometries) */
.device-showcase-stage {
  position: relative;
  max-width: 940px;
  margin: 0 auto 80px;
  padding: 40px 20px;
}

.device-laptop-frame {
  position: relative;
  z-index: 2;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: 0 30px 80px rgba(131, 56, 236, 0.15), 0 10px 25px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(131, 56, 236, 0.12);
  overflow: hidden;
}

.laptop-browser-bar {
  background: #f8fafc;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red {
  background: #ff5f56;
}

.dot-yellow {
  background: #ffbd2e;
}

.dot-green {
  background: #27c93f;
}

.browser-url {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 3px 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: #64748b;
  margin-left: 12px;
  flex: 1;
  max-width: 280px;
}

.laptop-screen-content {
  padding: 24px;
  background: #ffffff;
  min-height: 280px;
}

/* 플로팅 3D 기하학 조각들 (CSS Cones, Spheres, Donuts) */
.floating-geo {
  position: absolute;
  pointer-events: none;
  z-index: 3;
}

.geo-sphere {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ff70a6, #ff2a8d 60%, #99004d);
  box-shadow: 0 16px 32px rgba(255, 42, 141, 0.4);
  top: 10px;
  right: -20px;
  animation: floatGeo1 4s ease-in-out infinite alternate;
}

.geo-donut {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 18px solid #8338ec;
  border-top-color: #c084fc;
  box-shadow: 0 16px 36px rgba(131, 56, 236, 0.35);
  bottom: 0px;
  left: -25px;
  transform: rotate(-25deg);
  animation: floatGeo2 5s ease-in-out infinite alternate;
}

.geo-cone {
  width: 0;
  height: 0;
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-bottom: 60px solid #2738f5;
  filter: drop-shadow(0 14px 28px rgba(39, 56, 245, 0.4));
  top: 40px;
  left: -15px;
  transform: rotate(15deg);
  animation: floatGeo1 4.5s ease-in-out infinite alternate-reverse;
}

@keyframes floatGeo1 {
  0% {
    transform: translateY(0) rotate(15deg);
  }

  100% {
    transform: translateY(-16px) rotate(22deg);
  }
}

@keyframes floatGeo2 {
  0% {
    transform: translateY(0) rotate(-25deg);
  }

  100% {
    transform: translateY(18px) rotate(-15deg);
  }
}

/* 3컬럼 피처 카드 (3 Columns Feature Cards) */
.features-3col-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-col-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 36px 30px;
  border: 1px solid rgba(131, 56, 236, 0.1);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.feature-col-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(131, 56, 236, 0.25);
}

.feature-col-pin {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-bottom: 20px;
}

.pin-magenta {
  background: var(--c-magenta);
  box-shadow: 0 0 12px var(--c-magenta-glow);
}

.pin-purple {
  background: var(--c-purple);
  box-shadow: 0 0 12px rgba(131, 56, 236, 0.5);
}

.pin-blue {
  background: var(--c-blue);
  box-shadow: 0 0 12px var(--c-blue-glow);
}

.feature-col-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--c-text-dark);
  margin-bottom: 12px;
}

.feature-col-desc {
  font-size: 15px;
  color: var(--c-text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ==========================================================================
   Section 3: 딥 다크 대형 마스킹 타이포그래피 (BUILDERS)
   ========================================================================== */

.sec-dark-mask {
  padding: 130px 24px;
  background-color: var(--c-dark);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.big-masked-type {
  font-family: var(--display);
  font-size: clamp(64px, 14vw, 170px);
  font-weight: 900;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  line-height: 0.95;
  margin: 0 auto 30px;
  background: linear-gradient(135deg, #ff2a8d 0%, #a855f7 35%, #2738f5 70%, #00d2ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 20px 60px rgba(131, 56, 236, 0.3));
}

.sec-dark-mask .sec-title-white {
  font-size: clamp(24px, 3.5vw, 40px);
  line-height: 1.35;
  max-width: 900px;
  margin: 0 auto 36px;
  word-break: keep-all;
}

/* ==========================================================================
   Section 4: 휴먼 센트릭 접근 (Human-Centered Approach)
   ========================================================================== */

.sec-human-centered {
  padding: 100px 24px;
  background: #fdfaf6;
  color: var(--c-text-dark);
}

.human-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
}

.human-visual-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  background: linear-gradient(135deg, #ffedd5, #fed7aa);
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.human-visual-inner {
  padding: 40px;
  text-align: center;
}

.human-emoji-stage {
  font-size: 64px;
  margin-bottom: 16px;
}

.human-visual-quote {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  color: #7c2d12;
}

.human-text-col .sec-badge {
  color: #ea580c;
  background: rgba(234, 88, 12, 0.1);
  border: 1px solid rgba(234, 88, 12, 0.2);
  margin-bottom: 16px;
}

.human-text-col h2 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.2;
  margin-bottom: 20px;
}

.human-text-col p {
  font-size: 17px;
  color: #57534e;
  line-height: 1.7;
}

/* ==========================================================================
   Section 5: 5대 핵심 역량 & 3D 토러스 & 아키타입 (Expanded Access)
   ========================================================================== */

.sec-archetypes-stage {
  padding: 120px 24px;
  background-color: var(--c-lavender);
  color: var(--c-text-dark);
}

/* 2개의 원형 대비 뱃지 (White & Black Circular Badges) */
.circle-badges-pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 40px 0 60px;
}

.circle-badge {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease;
}

.circle-badge:hover {
  transform: scale(1.05);
}

.circle-badge-white {
  background: #ffffff;
  color: #080914;
  border: 1px solid rgba(131, 56, 236, 0.15);
}

.circle-badge-black {
  background: #080914;
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
}

.circle-badge .cb-num {
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.circle-badge .cb-label {
  font-size: 12px;
  font-weight: 600;
  margin-top: 6px;
  line-height: 1.3;
}

/* 5개 아키타입 카드 그리드 */
.archetypes-ref-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.archetype-card-ref {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 24px 18px;
  text-align: center;
  border: 1px solid rgba(131, 56, 236, 0.12);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.archetype-card-ref:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(131, 56, 236, 0.15);
  border-color: rgba(131, 56, 236, 0.35);
}

.archetype-img-box {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--c-lavender);
  margin-bottom: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.archetype-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.archetype-card-ref h4 {
  font-size: 17px;
  font-weight: 800;
  color: var(--c-text-dark);
  margin: 0 0 6px;
}

.archetype-card-ref .arch-tag {
  font-size: 12px;
  color: var(--c-purple);
  font-weight: 600;
  margin-bottom: 8px;
}

.archetype-card-ref .arch-role {
  font-size: 13px;
  color: var(--c-text-muted);
  line-height: 1.4;
  margin-top: auto;
}

/* ==========================================================================
   Section 6: 일렉트릭 블루 사전연수 커리큘럼 (Giving Educators the Tools)
   ========================================================================== */

.curriculum-board {
  max-width: 980px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(24px);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}

.curriculum-board-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.cb-info-item {
  display: flex;
  flex-direction: column;
}

.cb-info-label {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
}

.cb-info-val {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.curriculum-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 12px;
  transition: all 0.2s ease;
  gap: 16px;
}

.curriculum-item-row:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateX(4px);
}

.ci-num {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: #00d2ff;
  min-width: 32px;
}

.ci-title-wrap {
  flex: 1;
}

.ci-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px;
}

.ci-speaker {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.ci-badges {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ci-chip-date {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: #080914;
  background: #ffffff;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.ci-chip-org {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   Section 7: 벤토 그리드 통계 (People love us and it shows)
   ========================================================================== */

.sec-bento-proof {
  padding: 120px 24px;
  background: var(--c-lavender);
  color: var(--c-text-dark);
}

.bento-container {
  max-width: 920px;
  margin: 0 auto;
}

.bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}

.bento-card {
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease;
}

.bento-card:hover {
  transform: translateY(-4px);
}

/* 블루 250k+ 카드 */
.bento-card-blue {
  grid-column: 1 / 2;
  background: var(--c-blue);
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(39, 56, 245, 0.35);
}

.bento-card-blue .bento-num {
  font-family: var(--mono);
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}

.bento-card-blue .bento-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

/* 3D 핫핑크 하트 카드 */
.bento-card-heart {
  grid-column: 2 / 3;
  background: #ffffff;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(131, 56, 236, 0.1);
}

.heart-3d-visual {
  width: 90px;
  height: 90px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulseHeart 2s ease-in-out infinite;
}

@keyframes pulseHeart {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}

.heart-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 14px 28px rgba(255, 42, 141, 0.45));
}

/* 화이트 50% 카드 */
.bento-card-white {
  grid-column: 3 / 4;
  background: #ffffff;
  border: 1px solid rgba(131, 56, 236, 0.1);
}

.bento-card-white .bento-num {
  font-family: var(--mono);
  font-size: 38px;
  font-weight: 800;
  color: var(--c-blue);
  line-height: 1;
  margin-bottom: 8px;
}

.bento-card-white .bento-text {
  font-size: 14px;
  color: var(--c-text-muted);
}

/* 퍼플 4,500+ 카드 */
.bento-card-purple {
  grid-column: 1 / 2;
  background: #ede6fb;
  border: 1px solid rgba(131, 56, 236, 0.15);
}

.bento-card-purple .bento-num {
  font-family: var(--mono);
  font-size: 34px;
  font-weight: 800;
  color: var(--c-purple);
  line-height: 1;
  margin-bottom: 8px;
}

.bento-card-purple .bento-text {
  font-size: 14px;
  color: #4b5563;
}

/* 다크 인용구 카드 */
.bento-card-dark {
  grid-column: 2 / 4;
  background: var(--c-dark);
  color: #ffffff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.bento-card-dark .bento-quote {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  color: #ffffff;
  margin-bottom: 16px;
}

.bento-card-dark .bento-author {
  font-size: 13px;
  color: var(--c-text-light-muted);
}

/* ==========================================================================
   Section 8: 테스티모니얼 카드 (Their words speak for us)
   ========================================================================== */

.sec-testimonials {
  padding: 100px 24px 120px;
  background: #ffffff;
  color: var(--c-text-dark);
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.testi-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 30px;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.testi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.testi-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
}

.testi-bar-green {
  background: #10b981;
}

.testi-bar-purple {
  background: #8338ec;
}

.testi-bar-blue {
  background: #2738f5;
}

.testi-quote {
  font-size: 15px;
  line-height: 1.65;
  color: #334155;
  margin-bottom: 20px;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testi-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #475569;
  font-size: 14px;
}

.testi-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-text-dark);
}

.testi-role {
  font-size: 12px;
  color: #64748b;
}

/* ==========================================================================
   Section 9: 최종 블루 CTA 배너 박스 (Learn more about our solution)
   ========================================================================== */

.sec-cta-banner-stage {
  padding: 90px 24px 110px;
  background: var(--c-lavender);
}

.cta-banner-box {
  max-width: 1080px;
  margin: 0 auto;
  background: var(--c-blue);
  border-radius: var(--radius-lg);
  padding: 70px 60px;
  color: #ffffff;
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  align-items: center;
  gap: 40px;
  box-shadow: 0 30px 70px rgba(39, 56, 245, 0.4);
  position: relative;
  overflow: hidden;
}

.cta-banner-text h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.25;
  margin-bottom: 16px;
  word-break: keep-all;
}

.cta-banner-text p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  line-height: 1.6;
}

.cta-banner-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* 3D 랩톱 & 기하학 아트 그래픽 */
.cta-laptop-mock {
  width: 100%;
  max-width: 320px;
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  transform: rotate(-6deg) perspective(600px) rotateY(10deg);
}

.mock-screen {
  background: #080914;
  border-radius: 6px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: var(--mono);
  font-size: 12px;
}

/* ==========================================================================
   하단 푸터 (Site Footer)
   ========================================================================== */

.site-footer {
  padding: 80px 24px 50px;
  border-top: 1px solid rgba(131, 56, 236, 0.12);
  background-color: var(--c-lavender);
  color: var(--c-text-dark);
}

.footer-container {
  max-width: var(--maxw);
  margin: 0 auto;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.6fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(131, 56, 236, 0.12);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-logo-img {
  display: none;
}

.footer-brand-title {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 800;
  color: var(--c-text-dark);
}

.footer-mission {
  font-size: 14px;
  color: var(--c-text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

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

.footer-mini-badge {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  background: #ffffff;
  border: 1px solid rgba(131, 56, 236, 0.15);
  color: var(--c-purple);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.footer-col-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--c-text-dark);
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links li a {
  font-size: 14px;
  color: var(--c-text-muted);
  transition: color 0.15s ease;
}

.footer-links li a:hover {
  color: var(--c-blue);
}

/* 푸터 주최/후원사 목록 호환 스타일 */
.footer-orgs {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-row {
  display: flex;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
}

.footer-label {
  color: var(--c-purple);
  font-size: 11px;
  font-weight: 800;
  border: 1px solid rgba(131, 56, 236, 0.2);
  background: rgba(131, 56, 236, 0.06);
  border-radius: 6px;
  padding: 2px 8px;
  letter-spacing: 0.04em;
}

.footer-names {
  color: var(--c-text-dark);
  font-size: 13px;
  font-weight: 600;
}

.footer-host-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 0;
  padding: 0;
}

.footer-host-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--c-text-dark);
}

.footer-sponsor-text {
  font-size: 14px;
  color: var(--c-text-muted);
  margin-bottom: 16px;
}

.footer-cta-box {
  background: #ffffff;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(131, 56, 236, 0.1);
}

.footer-cta-box p {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--c-text-dark);
}

.footer-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  font-size: 13px;
  color: #94a3b8;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal-links {
  display: flex;
  gap: 16px;
}

.footer-legal-links span,
.footer-legal-links a {
  color: #94a3b8;
}

.footer-legal-links a:hover {
  color: var(--c-blue);
}

/* ==========================================================================
   서브 페이지 공통 스타일 (Apply / Builder / Card / Admin)
   ========================================================================== */

.page-head {
  padding: 60px 24px 30px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-kicker {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--c-magenta);
  margin-bottom: 8px;
}

.page-head h1 {
  font-size: clamp(32px, 4.5vw, 48px);
  margin-bottom: 12px;
}

.page-desc {
  font-size: 16px;
  color: var(--c-text-light-muted);
  margin-bottom: 30px;
}

.welcome-line {
  font-size: 16px;
  color: #cbd5e1;
  margin: 12px auto 0;
  line-height: 1.6;
}

.welcome-line strong {
  color: #38bdf8;
  font-weight: 700;
}

/* 스텝퍼 칩 */
.apply-steps {
  display: flex;
  justify-content: center;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  flex-wrap: wrap;
}

.step-chip {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--c-text-light-muted);
}

.step-chip.is-active {
  background: var(--c-blue);
  color: #ffffff;
  border-color: var(--c-blue);
  box-shadow: 0 4px 14px rgba(39, 56, 245, 0.4);
}

/* 폼 카드 */
.card {
  border-radius: var(--radius-md);
}

.form-card {
  max-width: 640px;
  margin: 0 auto 80px;
  background: var(--c-dark-surface);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.field {
  margin-bottom: 24px;
}

.field label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.field .req {
  color: var(--c-magenta);
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="password"],
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 15px;
  font-family: inherit;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--c-blue);
  box-shadow: 0 0 0 3px rgba(39, 56, 245, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.field-hint {
  font-size: 12px;
  color: #94a3b8;
  margin: 6px 0 0;
}

.field-error {
  font-size: 12px;
  color: var(--c-magenta);
  margin: 6px 0 0;
  min-height: 16px;
}

.field-checkbox-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.field-checkbox-box:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.14);
}

.field label.consent-line,
.consent-line {
  display: flex !important;
  align-items: center !important;
  gap: 12px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  user-select: none;
  color: #f1f5f9;
  margin-bottom: 0 !important;
}

.consent-line input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.consent-line input[type="checkbox"]:hover {
  border-color: rgba(0, 210, 255, 0.6);
  background: rgba(255, 255, 255, 0.1);
}

.consent-line input[type="checkbox"]:checked {
  background: linear-gradient(135deg, #2738f5 0%, #00d2ff 100%);
  border-color: #00d2ff;
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.4);
}

.consent-line input[type="checkbox"]:checked::after {
  content: "";
  display: block;
  width: 5px;
  height: 10px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-0.5px, -1px);
}

.consent-line input[type="checkbox"]:focus-visible {
  outline: 2px solid #00d2ff;
  outline-offset: 2px;
}

.consent-line span {
  display: inline-flex;
  align-items: center;
  line-height: 1.4;
}

.consent-line span strong {
  font-weight: 700;
  color: #ffffff;
}

.consent-line .req {
  color: var(--c-magenta);
  margin-left: 3px;
  font-weight: 700;
}

.consent-detail {
  margin-top: 10px;
  font-size: 12px;
  color: #94a3b8;
}

.consent-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.consent-table th,
.consent-table td {
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 10px;
  text-align: left;
}

.consent-table th {
  background: rgba(255, 255, 255, 0.05);
  width: 90px;
}

.btn-blue {
  background: var(--c-blue);
  color: #ffffff;
}

.form-error {
  color: var(--c-magenta);
  font-size: 14px;
  font-weight: 700;
  margin: 16px 0;
  text-align: center;
}

/* 20문항 슬라이더 테스트 컨테이너 */
.quiz {
  max-width: 680px;
  margin: 0 auto 80px;
  padding: 0 20px;
}

.quiz-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.quiz-progress-label {
  font-size: 14px;
  color: #00d2ff;
  font-weight: 700;
  margin: 0;
}

.progress-track {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 5%;
  background: linear-gradient(90deg, var(--c-magenta), var(--c-blue));
  border-radius: 9999px;
  transition: width 0.3s ease;
}

.quiz-card {
  background: var(--c-dark-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.quiz-qno {
  font-size: 13px;
  color: var(--c-magenta);
  font-weight: 700;
  margin: 0 0 12px;
}

.quiz-question {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 30px;
}

.slider-wrap {
  position: relative;
  margin-bottom: 18px;
}

.slider-wrap input[type="range"] {
  width: 100%;
  accent-color: var(--c-blue);
  cursor: pointer;
}

.slider-legend {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #94a3b8;
  margin-top: 8px;
}

.slider-value {
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  color: #00d2ff;
  margin: 16px 0 24px;
}

.slider-value-word {
  font-size: 14px;
  color: #94a3b8;
  margin-left: 8px;
  font-weight: 500;
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

/* 완료 화면 및 빌더 프로필 카드 (Builder Profile Card) */
.result {
  max-width: 820px;
  margin: 0 auto 80px;
  padding: 0 20px;
}

.success-card {
  background: linear-gradient(145deg, rgba(16, 20, 38, 0.95) 0%, rgba(10, 13, 26, 0.98) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  margin-bottom: 32px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 32px rgba(16, 185, 129, 0.12);
}

.success-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.success-next {
  font-size: 14.5px;
  color: #94a3b8;
  margin-top: 12px;
}

.welcome-banner {
  background: linear-gradient(145deg, rgba(20, 24, 44, 0.95) 0%, rgba(11, 14, 28, 0.98) 100%);
  border: 1px solid rgba(131, 56, 236, 0.35);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  margin-bottom: 32px;
}

/* 빌더 카드 컨테이너 */
.builder-card {
  max-width: 800px;
  width: 100%;
  margin: 0 auto 32px;
  background: linear-gradient(165deg, rgba(20, 24, 44, 0.96) 0%, rgba(11, 14, 28, 0.98) 100%);
  border: 1px solid rgba(131, 56, 236, 0.35);
  border-radius: 28px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.8), 0 0 50px -15px rgba(39, 56, 245, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.builder-card::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 520px;
  height: 260px;
  background: radial-gradient(ellipse at center, rgba(255, 42, 141, 0.2) 0%, rgba(39, 56, 245, 0.14) 45%, transparent 70%);
  pointer-events: none;
}

/* 카드 헤더 */
.bc-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 24px;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.bc-brand {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #818cf8;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.bc-nickname {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0 0 6px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.bc-archetype-name {
  font-size: 18px;
  font-weight: 700;
  color: #00d2ff;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bc-character {
  color: #e2e8f0;
  font-weight: 500;
  font-size: 15px;
}

.bc-tagline {
  font-size: 14px;
  color: #94a3b8;
  font-style: italic;
  margin: 0;
  line-height: 1.5;
}

.bc-no {
  background: linear-gradient(135deg, rgba(39, 56, 245, 0.18), rgba(131, 56, 236, 0.25));
  border: 1px solid rgba(131, 56, 236, 0.4);
  border-radius: 16px;
  padding: 10px 18px;
  text-align: center;
  flex-shrink: 0;
  min-width: 96px;
}

.bc-no span {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.1em;
  display: block;
}

.bc-no strong {
  font-size: 20px;
  font-weight: 800;
  color: #38bdf8;
  display: block;
  margin-top: 2px;
  font-family: var(--mono);
}

/* 카드 본문: 캐릭터+레이더 vs 5대 역량 메트릭 */
.bc-body {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

/* 좌측 비주얼: 캐릭터 + 레이더 */
.bc-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 20px 14px;
}

.bc-avatar {
  width: 100%;
  max-width: 190px;
  height: 190px;
  object-fit: contain;
  margin: 0 auto;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s ease;
  border-radius: 12px;
}

.bc-avatar:hover {
  transform: translateY(-3px) scale(1.02);
}

.bc-radar {
  width: 100%;
  max-width: 270px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  overflow: visible;
}

.bc-radar svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

/* 레이더 차트 SVG 스타일 */
.radar-ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}

.radar-ring-mid {
  stroke: rgba(0, 210, 255, 0.35);
  stroke-dasharray: 2 3;
}

.radar-ring-outer {
  stroke: rgba(255, 255, 255, 0.25);
  stroke-width: 1.5;
}

.radar-axis {
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1;
}

.radar-tick {
  fill: #64748b;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 600;
  text-anchor: start;
}

.radar-label {
  fill: #cbd5e1;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
}

.radar-label-score {
  fill: #38bdf8;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
}

.radar-shape {
  fill: rgba(0, 210, 255, 0.22);
  stroke: #00d2ff;
  stroke-width: 2.2;
  filter: drop-shadow(0 0 8px rgba(0, 210, 255, 0.45));
}

.radar-dot {
  fill: #ffffff;
  stroke: #ff2a8d;
  stroke-width: 2.2;
}

/* 우측 메트릭 영역 */
.bc-metrics {
  display: flex;
  flex-direction: column;
  gap: 13px;
  width: 100%;
}

.metric {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 12px 16px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.metric:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.metric-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.metric-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: -0.01em;
}

.metric-score {
  font-size: 13.5px;
  font-weight: 800;
  color: #38bdf8;
  font-family: var(--mono);
}

.metric-track {
  position: relative;
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 5px;
}

.metric-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #2738f5 0%, #8338ec 50%, #ff2a8d 100%);
  box-shadow: 0 0 10px rgba(255, 42, 141, 0.4);
}

.metric-gridline {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(0, 0, 0, 0.4);
  pointer-events: none;
  z-index: 2;
}

.metric-scale {
  display: flex;
  justify-content: space-between;
  padding: 0 2px;
  margin-bottom: 4px;
}

.metric-scale span {
  font-family: var(--mono);
  font-size: 9px;
  color: #64748b;
  font-weight: 500;
}

.metric-level {
  font-size: 12px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.4;
  padding-left: 2px;
}

/* 분석 리포트 & 버딕트 */
.bc-analysis {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 24px;
  position: relative;
  z-index: 1;
}

.bc-headline {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.bc-desc {
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.7;
  margin: 0 0 16px;
  word-break: keep-all;
}

.bc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.bc-tags .chip {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 99px;
  background: rgba(39, 56, 245, 0.15);
  border: 1px solid rgba(39, 56, 245, 0.3);
  color: #93c5fd;
}

.bc-verdicts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.verdict {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.v-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #00d2ff;
  text-transform: uppercase;
}

.verdict strong {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.verdict p {
  font-size: 13px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.5;
  word-break: keep-all;
}

/* 카드 푸터 */
.bc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 11px;
  color: #64748b;
  position: relative;
  z-index: 1;
}

/* 공유 액션 바 & 토스트 */
.share-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 32px auto 0;
  flex-wrap: wrap;
}

.result-again {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: #94a3b8;
}

.result-again a {
  color: var(--c-blue);
  text-decoration: underline;
}

.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(0, 210, 255, 0.4);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 210, 255, 0.25);
  pointer-events: none;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9999;
}

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

/* 모바일 반응형 대응 */
@media (max-width: 680px) {
  .result {
    padding: 0 12px;
  }

  .builder-card {
    padding: 24px 18px;
    border-radius: 20px;
  }

  .bc-head {
    flex-direction: column;
    gap: 16px;
  }

  .bc-no {
    align-self: flex-start;
  }

  .bc-nickname {
    font-size: 26px;
  }

  .bc-body {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .bc-avatar {
    max-width: 170px;
    height: 170px;
  }

  .bc-verdicts {
    grid-template-columns: 1fr;
  }

  .share-row {
    flex-direction: column;
    width: 100%;
  }

  .share-row .btn {
    width: 100%;
  }
}

/* ==========================================================================
   관리자 대시보드 (Admin Dashboard)
   ========================================================================== */

#admin-dash {
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 0 24px;
}

/* 요약 통계 배너 */
.admin-summary {
  background: linear-gradient(145deg, rgba(20, 24, 44, 0.96) 0%, rgba(11, 14, 28, 0.98) 100%);
  border: 1px solid rgba(131, 56, 236, 0.35);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.admin-stats {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 24px;
}

.admin-stats .stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.admin-stats .stat-num {
  font-size: 38px;
  font-weight: 800;
  color: #38bdf8;
  line-height: 1.2;
  text-shadow: 0 0 20px rgba(56, 189, 248, 0.35);
}

.admin-stats .stat-label {
  font-size: 13.5px;
  font-weight: 600;
  color: #94a3b8;
  margin-top: 6px;
}

.admin-stats .stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
}

.admin-note {
  font-size: 13px;
  color: #64748b;
  text-align: center;
  margin: 20px 0 0;
  line-height: 1.6;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 16px;
  word-break: keep-all;
}

/* 4대 보드 그리드 (단체별, 학교급별, 아키타입별, 성별) */
.admin-boards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.admin-board {
  background: var(--c-dark-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.admin-board h3 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

/* 통계 카운트 막대 리스트 (ul.count-list) */
ul.count-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.count-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.count-label {
  min-width: 90px;
  max-width: 110px;
  color: #cbd5e1;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.count-track {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}

.count-bar {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #2738f5 0%, #8338ec 100%);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.count-num {
  min-width: 44px;
  text-align: right;
  color: #38bdf8;
  font-size: 12px;
  font-weight: 700;
}

/* 신청자 명단 카드 */
.admin-list {
  background: var(--c-dark-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
}

.admin-list-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.admin-list-head h3 {
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 12px;
}

.admin-tabs {
  display: flex;
  gap: 8px;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.tab-btn.is-active {
  background: var(--c-blue);
  border-color: var(--c-blue);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(39, 56, 245, 0.4);
}

.admin-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-legend {
  font-size: 12.5px;
  color: #64748b;
  margin: 0 0 16px;
  line-height: 1.5;
}

/* 관리자 테이블 */
.admin-table-wrap {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow-x: auto;
  margin-bottom: 20px;
  -webkit-overflow-scrolling: touch;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  white-space: nowrap;
}

.admin-table th,
.admin-table td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
}

.admin-table th {
  background: rgba(255, 255, 255, 0.04);
  font-weight: 700;
  color: #cbd5e1;
  font-size: 12px;
  letter-spacing: -0.01em;
}

.admin-table td {
  color: #e2e8f0;
}

.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.025);
}

.admin-table td.admin-scores {
  font-size: 11.5px;
  color: #94a3b8;
}

.admin-table td.admin-answers {
  font-size: 11px;
  color: #64748b;
  letter-spacing: 0.04em;
}

.admin-table a {
  color: #38bdf8;
  font-weight: 700;
  text-decoration: underline;
}

.admin-table a:hover {
  color: #7dd3fc;
}

.badge-facil {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 42, 141, 0.15);
  border: 1px solid rgba(255, 42, 141, 0.35);
  color: #ff2a8d;
  font-size: 11px;
  font-weight: 700;
}

.admin-row-actions {
  display: flex;
  gap: 6px;
  white-space: nowrap;
}

.admin-delete {
  color: #ef4444 !important;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-color: rgba(239, 68, 68, 0.3);
}

.admin-delete:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
}

.admin-empty {
  text-align: center;
  padding: 48px 20px;
  color: #64748b;
  font-size: 14px;
}

.admin-disabled {
  text-align: center;
  padding: 48px 24px;
}

.admin-disabled h2 {
  font-size: 22px;
  color: #f87171;
  margin-bottom: 12px;
}

/* 관리자 삭제 확인 모달 (<dialog>) */
.admin-modal {
  border: none;
  background: transparent;
  padding: 0;
  max-width: 440px;
  width: calc(100% - 32px);
  margin: auto;
  overflow: visible;
  color: inherit;
}

.admin-modal::backdrop {
  background: rgba(4, 6, 15, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal-card {
  background: linear-gradient(145deg, rgba(22, 26, 48, 0.98) 0%, rgba(12, 15, 30, 0.98) 100%);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 22px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.8), 0 0 40px rgba(239, 68, 68, 0.2);
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: scale(0.93) translateY(12px);
  }

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

.modal-icon-wrap {
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.modal-title {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 10px;
}

.modal-desc {
  font-size: 14.5px;
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0 0 6px;
  word-break: keep-all;
}

.modal-warning {
  font-size: 12.5px;
  color: #f87171;
  font-weight: 600;
  margin: 0 0 20px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.modal-actions .btn {
  flex: 1;
  justify-content: center;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
}

.btn-danger:hover {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  box-shadow: 0 6px 22px rgba(239, 68, 68, 0.6);
  transform: translateY(-2px);
}

/* CTA 밴드 (공유 카드 및 공통) */
.cta-band {
  max-width: 800px;
  margin: 48px auto 80px;
  padding: 40px;
  background: linear-gradient(145deg, rgba(20, 24, 44, 0.92) 0%, rgba(11, 14, 28, 0.96) 100%);
  border: 1px solid rgba(131, 56, 236, 0.35);
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.cta-band h2 {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.cta-band p {
  font-size: 15px;
  color: #94a3b8;
  margin-bottom: 24px;
}

.cta-band .hero-cta {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ==========================================================================
   반응형 미디어 쿼리 (Responsive Media Queries — Mobile First Optimization)
   ========================================================================== */

/* 태블릿 (1024px 이하) */
@media (max-width: 1024px) {
  .features-3col-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .archetypes-ref-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

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

  .cta-banner-box {
    grid-template-columns: 1fr;
    padding: 40px 30px;
    text-align: center;
  }

  .cta-banner-visual {
    margin-top: 20px;
  }

  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* 태블릿 세로 및 대형 모바일 (768px 이하) */
@media (max-width: 768px) {

  /* 글로벌 폼 터치 및 가로 스크롤 방지 */
  html,
  body {
    overflow-x: hidden;
    width: 100%;
  }

  /* iOS 포커스 시 자동 줌 인 방지 (16px 이상 필수) */
  input[type="text"],
  input[type="tel"],
  select,
  textarea {
    font-size: 16px !important;
  }

  /* GNB 헤더 */
  .site-header {
    height: 60px;
  }

  .header-inner {
    height: 60px;
    padding: 0 16px;
  }

  .site-nav {
    display: none;
  }

  .site-logo-symbol {
    width: 26px;
    height: 26px;
  }

  .site-logo-img {
    height: 34px;
  }

  .header-actions .btn-pill-nav {
    padding: 7px 14px;
    font-size: 12.5px;
  }

  /* 홈 페이지 히어로 섹션 */
  .hero-ref-title {
    font-size: clamp(24px, 6.5vw, 36px);
    line-height: 1.25;
    word-break: keep-all;
  }

  .hero-ref-subtitle {
    font-size: 14.5px;
    word-break: keep-all;
    padding: 0 10px;
  }

  .hero-brand-logo-img {
    max-width: 90vw;
  }

  .hero-metrics-pill {
    flex-wrap: wrap;
    padding: 12px 18px;
    border-radius: 20px;
    gap: 10px 18px;
    justify-content: center;
  }

  .hero-metric-item {
    font-size: 12px;
  }

  .hero-metric-item strong {
    font-size: 16px;
  }

  .hero-action-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    gap: 10px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-action-buttons .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
  }

  .big-masked-type {
    font-size: 52px;
  }

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

  .archetypes-ref-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .bento-card-blue,
  .bento-card-heart,
  .bento-card-white,
  .bento-card-purple,
  .bento-card-dark {
    grid-column: auto;
    padding: 28px 20px;
  }

  .curriculum-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .cta-banner-box {
    padding: 32px 20px;
  }

  .cta-banner-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .cta-banner-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* 서브 페이지 공통 헤더 */
  .page-head {
    padding: 40px 16px 20px;
  }

  .page-head h1 {
    font-size: 28px;
  }

  .page-desc {
    font-size: 14.5px;
    margin-bottom: 24px;
    word-break: keep-all;
  }

  /* 참여 신청 스텝퍼 & 폼 */
  .apply-steps {
    gap: 8px;
    margin-bottom: 28px;
  }

  .apply-step-pill {
    padding: 6px 12px;
    font-size: 11.5px;
  }

  .form-card {
    padding: 24px 16px;
    border-radius: 20px;
    margin-bottom: 40px;
  }

  .field {
    margin-bottom: 20px;
  }

  .field label {
    font-size: 13.5px;
  }

  .field input[type="text"],
  .field input[type="tel"],
  .field select,
  .field textarea {
    min-height: 48px;
    border-radius: 12px;
  }

  .field label.consent-line,
  .consent-line {
    font-size: 13.5px;
    gap: 10px;
    align-items: center !important;
    margin-bottom: 0 !important;
  }

  .consent-line input[type="checkbox"] {
    width: 18px;
    height: 18px;
  }

  .consent-detail {
    padding: 12px;
    font-size: 12px;
  }

  .consent-table th,
  .consent-table td {
    padding: 8px 6px;
    font-size: 12px;
  }

  /* 퀴즈 카드 */
  .quiz-card {
    padding: 24px 16px;
    border-radius: 20px;
  }

  .quiz-question {
    font-size: 19px;
    line-height: 1.5;
    margin: 16px 0 24px;
    word-break: keep-all;
  }

  .slider-legend {
    font-size: 11px;
  }

  .slider-value {
    font-size: 24px;
  }

  .quiz-nav {
    gap: 10px;
  }

  .quiz-nav .btn {
    flex: 1;
    padding: 13px 0;
  }

  /* 빌더 프로필 카드 & 공유 카드 */
  .result {
    padding: 0 14px;
    margin-bottom: 60px;
  }

  .success-card {
    padding: 24px 16px;
    border-radius: 18px;
    margin-bottom: 24px;
  }

  .builder-card {
    padding: 28px 18px;
    border-radius: 22px;
    margin-bottom: 24px;
  }

  .bc-head {
    flex-direction: column;
    gap: 16px;
    padding-bottom: 20px;
    margin-bottom: 22px;
  }

  .bc-no {
    align-self: flex-start;
    padding: 8px 16px;
    min-width: auto;
  }

  .bc-no span {
    font-size: 9.5px;
  }

  .bc-no strong {
    font-size: 17px;
  }

  .bc-brand {
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .bc-nickname {
    font-size: 26px;
  }

  .bc-archetype-name {
    font-size: 16px;
  }

  .bc-character {
    font-size: 14.5px;
  }

  .bc-tagline {
    font-size: 13px;
  }

  .bc-body {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .bc-visual {
    padding: 16px 12px;
    border-radius: 18px;
    gap: 12px;
  }

  .bc-avatar {
    max-width: 170px;
    height: 170px;
  }

  .bc-radar {
    max-width: 260px;
  }

  .metric {
    padding: 11px 14px;
    border-radius: 12px;
  }

  .metric-name,
  .metric-score {
    font-size: 13px;
  }

  .metric-track {
    height: 7px;
  }

  .metric-scale span {
    font-size: 8.5px;
  }

  .metric-level {
    font-size: 11.5px;
  }

  .bc-analysis {
    padding: 20px 16px;
    border-radius: 18px;
  }

  .bc-headline {
    font-size: 15.5px;
  }

  .bc-desc {
    font-size: 13.5px;
    line-height: 1.65;
  }

  .bc-tags {
    gap: 6px;
    margin-bottom: 18px;
  }

  .bc-tags .chip {
    font-size: 11px;
    padding: 4px 10px;
  }

  .bc-verdicts {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .verdict {
    padding: 13px;
    border-radius: 12px;
  }

  .verdict strong {
    font-size: 16px;
  }

  .verdict p {
    font-size: 12.5px;
  }

  .bc-footer {
    flex-direction: column;
    gap: 6px;
    text-align: center;
    font-size: 10.5px;
    padding-top: 16px;
  }

  /* 공유 버튼 바 */
  .share-row {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-top: 24px;
  }

  .share-row .btn {
    width: 100%;
    justify-content: center;
    padding: 13px 18px;
  }

  /* CTA 밴드 */
  .cta-band {
    padding: 30px 18px;
    margin: 36px 14px 60px;
    border-radius: 20px;
  }

  .cta-band .hero-cta {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .cta-band .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  /* 푸터 */
  .footer-container {
    padding: 40px 16px 24px;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-brand-title {
    font-size: 18px;
  }

  .footer-mission {
    font-size: 13.5px;
    line-height: 1.6;
  }

  .footer-col-title {
    font-size: 14.5px;
    margin-bottom: 12px;
  }

  .footer-links li a {
    font-size: 13.5px;
  }

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

  .footer-legal-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
  }

  /* 관리자 페이지 모바일 */
  #admin-dash {
    padding: 0 14px;
    margin-bottom: 60px;
  }

  .admin-summary {
    padding: 24px 16px;
    border-radius: 18px;
    margin-bottom: 24px;
  }

  .admin-stats {
    flex-direction: column;
    gap: 16px;
  }

  .admin-stats .stat-divider {
    width: 60px;
    height: 1px;
  }

  .admin-stats .stat-num {
    font-size: 32px;
  }

  .admin-boards {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 24px;
  }

  .admin-board {
    padding: 20px 16px;
  }

  .admin-list {
    padding: 20px 14px;
    border-radius: 18px;
  }

  .admin-list-head {
    flex-direction: column;
    gap: 14px;
  }

  .admin-tabs {
    width: 100%;
  }

  .admin-tabs .tab-btn {
    flex: 1;
    text-align: center;
    padding: 8px 10px;
    font-size: 12px;
  }

  .admin-actions {
    width: 100%;
  }

  .admin-actions .btn {
    flex: 1;
    justify-content: center;
    padding: 10px;
    font-size: 12.5px;
  }

  .admin-table-wrap {
    border-radius: 12px;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 16px;
  }

  .admin-table {
    font-size: 12px;
  }

  .admin-table th,
  .admin-table td {
    padding: 10px 12px;
  }

  .modal-card {
    padding: 24px 18px;
    border-radius: 20px;
  }

  .modal-actions {
    flex-direction: column-reverse;
    gap: 8px;
    width: 100%;
  }

  .modal-actions .btn {
    width: 100%;
    padding: 13px;
  }
}

/* 스마트폰 일반 (480px 이하) */
@media (max-width: 480px) {
  .hero-ref-title {
    font-size: 25px;
  }

  .hero-metrics-pill {
    padding: 10px 14px;
    gap: 8px 14px;
  }

  .archetypes-ref-grid {
    grid-template-columns: 1fr;
  }

  .archetype-ref-card {
    padding: 20px 16px;
  }

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

  .bc-nickname {
    font-size: 23px;
  }

  .bc-avatar {
    max-width: 145px;
    height: 145px;
  }

  .bc-radar {
    max-width: 240px;
  }

  .metric-name,
  .metric-score {
    font-size: 12px;
  }

  .metric-level {
    font-size: 11px;
  }

  .bc-headline {
    font-size: 14.5px;
  }

  .bc-desc {
    font-size: 12.5px;
  }

  .quiz-question {
    font-size: 17px;
  }

  .form-card {
    padding: 20px 14px;
  }

  .success-card {
    padding: 22px 14px;
  }
}

/* ==========================================================================
   HOME EXPERIENCE — 풀스크린 스냅 스크롤 · 3D 네온 스트링 · 터미널 타이핑 히어로
   (body.page-home 스코프 — 다른 페이지에는 영향 없음)
   ========================================================================== */

:root {
  --sy: 0;
  --hero-p: 0;
  --vh-unit: 100vh;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

@supports (height: 100svh) {
  :root {
    --vh-unit: 100svh;
  }
}

/* --- 루트 스냅 컨테이너 --------------------------------------------------- */
html:has(body.page-home),
html.jv-home {
  scroll-snap-type: y mandatory;
  scroll-padding-top: 0;
}

/* --- 홈 전용 고정 헤더 (히어로 위에서는 투명, 스크롤 후 다크 글래스) ------ */
.page-home .site-header {
  position: fixed;
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background 0.5s var(--ease-soft), border-color 0.5s var(--ease-soft), backdrop-filter 0.5s;
}

.page-home .site-header.is-scrolled {
  background: rgba(8, 9, 20, 0.72);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
}

/* --- 풀스크린 스냅 섹션 ---------------------------------------------------- */
.page-home .snap-sec {
  min-height: var(--vh-unit);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 96px;
  padding-bottom: 96px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.page-home .site-footer {
  scroll-snap-align: end;
}

/* --- 히어로 ----------------------------------------------------------------- */
.page-home .hero-ref {
  padding: 96px 24px 72px;
  background:
    radial-gradient(ellipse 70% 55% at 50% 110%, rgba(39, 56, 245, 0.28) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 50% 0%, rgba(255, 42, 141, 0.12) 0%, transparent 60%),
    var(--c-dark);
}

.page-home .hero-ref::after {
  /* 하단 페이드: 다음 섹션으로 자연스러운 전환 */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;
  background: linear-gradient(to bottom, transparent, rgba(8, 9, 20, 0.85));
  pointer-events: none;
  z-index: 1;
}

.hero-neon-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  transform: translate3d(0, calc(var(--sy) * 0.38px), 0) scale(calc(1 + var(--hero-p) * 0.08));
  opacity: calc(1 - var(--hero-p) * 1.15);
  will-change: transform, opacity;
}

.hero-neon-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-tube-fallback {
  position: absolute;
  inset: 10% 0 auto;
  width: 100%;
  height: 60%;
  opacity: 0.9;
  filter: drop-shadow(0 20px 40px rgba(255, 42, 141, 0.35));
}

.hero-ref.has-canvas .hero-tube-fallback {
  display: none;
}

.page-home .hero-content {
  margin: 0 auto;
  max-width: 1040px;
  width: 100%;
  transform: translate3d(0, calc(var(--sy) * 0.18px), 0);
  opacity: calc(1 - var(--hero-p) * 1.4);
  will-change: transform, opacity;
}

/* 텍스트 가독성용 소프트 스크림 */
.page-home .hero-content::before {
  content: "";
  position: absolute;
  inset: -10% -20%;
  background: radial-gradient(ellipse 55% 50% at 50% 45%, rgba(8, 9, 20, 0.55), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.page-home .hero-brand-stage-wrap {
  max-width: none;
  margin: 0 auto 28px;
}

.page-home .hero-brand-pretitle {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 18px;
}

.page-home .hero-brand-pretitle .pretitle-hash {
  color: var(--c-cyan);
  opacity: 0.8;
}

/* 터미널 타이핑 타이틀 */
.hero-type {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.18em;
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(40px, 8.3vw, 122px);
  max-width: 100%;
  line-height: 1;
  letter-spacing: -0.045em;
  color: #ffffff;
  white-space: nowrap;
  min-height: 1em;
}

.hero-type-prompt {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.62em;
  color: var(--c-cyan);
  transform: translateY(-0.06em);
  text-shadow: 0 0 18px rgba(0, 210, 255, 0.6);
  opacity: 0.9;
  transition: color 0.4s, text-shadow 0.4s;
}

.hero-type-text {
  display: inline-block;
  min-width: 0.1em;
  text-align: left;
}

.hero-type-text .ch {
  display: inline-block;
  animation: ch-in 0.22s var(--ease-out) both;
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.12);
}

.hero-type-text .ch-space {
  width: 0.28em;
}

/* 백스페이스 잔상 (문서 흐름에서 분리된 고스트) */
.ch-ghost {
  position: absolute;
  pointer-events: none;
  color: var(--c-magenta);
  animation: ch-out 0.24s ease-in forwards;
}

.hero-type-text .ch-bang {
  color: var(--c-magenta);
  -webkit-text-fill-color: currentColor;
}

.hero-type.is-run .hero-type-text .ch-bang {
  -webkit-text-fill-color: transparent;
}

@keyframes ch-in {
  0% {
    opacity: 0;
    transform: translateY(0.12em) scale(1.25);
    filter: blur(6px);
    text-shadow: 0 0 40px rgba(0, 210, 255, 0.8);
  }

  60% {
    text-shadow: 0 0 30px rgba(0, 210, 255, 0.5);
  }

  100% {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

@keyframes ch-out {
  0% {
    opacity: 0.9;
    transform: none;
    filter: blur(0);
  }

  100% {
    opacity: 0;
    transform: translateY(-0.18em) scale(0.6);
    filter: blur(8px);
  }
}

/* 커서 */
.hero-type-caret {
  display: inline-block;
  width: 0.1em;
  height: 0.86em;
  margin-left: 0.04em;
  transform: translateY(0.06em);
  background: var(--c-cyan);
  box-shadow: 0 0 14px rgba(0, 210, 255, 0.85), 0 0 40px rgba(0, 210, 255, 0.4);
  border-radius: 2px;
  animation: caret-blink 1s steps(2, start) infinite;
}

.hero-type.is-typing .hero-type-caret,
.hero-type.is-deleting .hero-type-caret {
  animation: none;
  opacity: 1;
}

.hero-type.is-deleting .hero-type-caret {
  background: var(--c-magenta);
  box-shadow: 0 0 14px rgba(255, 42, 141, 0.85), 0 0 40px rgba(255, 42, 141, 0.4);
}

.hero-type.is-enter .hero-type-caret {
  animation: caret-press 0.14s ease-out both;
}

.hero-type.is-run .hero-type-caret {
  animation: caret-fade 0.6s ease-out 0.5s both;
}

@keyframes caret-blink {
  to {
    opacity: 0;
  }
}

@keyframes caret-press {
  0% {
    transform: translateY(0.06em) scaleY(1);
  }

  50% {
    transform: translateY(0.14em) scaleY(0.7);
    background: #ffffff;
  }

  100% {
    transform: translateY(0.06em) scaleY(1);
  }
}

@keyframes caret-fade {
  to {
    opacity: 0;
    width: 0;
    margin-left: 0;
  }
}

/* Enter → 네온 점등 */
.hero-type.is-run .hero-type-text {
  background: linear-gradient(100deg, #ffffff 0%, #c7d2fe 20%, #f5d0fe 42%, #ffffff 55%, #93c5fd 75%, #ffffff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: neon-on 0.9s var(--ease-out) both, neon-sheen 5s linear 0.9s infinite;
  filter: drop-shadow(0 0 22px rgba(131, 56, 236, 0.55)) drop-shadow(0 8px 40px rgba(39, 56, 245, 0.45));
}

.hero-type.is-run .hero-type-text .ch {
  animation: none;
  text-shadow: none;
}

.hero-type.is-run .hero-type-prompt {
  color: var(--c-magenta);
  text-shadow: 0 0 22px rgba(255, 42, 141, 0.75);
}

.hero-type::after {
  /* 엔터 시 확산되는 광파 */
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 140%;
  height: 160%;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.4);
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.22), rgba(131, 56, 236, 0.18) 35%, transparent 70%);
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}

.hero-type.is-run::after {
  animation: neon-burst 1.1s var(--ease-out) both;
}

@keyframes neon-on {
  0% {
    filter: brightness(2.4) drop-shadow(0 0 40px rgba(255, 255, 255, 0.9));
  }

  35% {
    filter: brightness(1.2) drop-shadow(0 0 30px rgba(0, 210, 255, 0.8));
  }

  100% {
    filter: drop-shadow(0 0 22px rgba(131, 56, 236, 0.55)) drop-shadow(0 8px 40px rgba(39, 56, 245, 0.45));
  }
}

@keyframes neon-sheen {
  0% {
    background-position: 120% 0;
  }

  100% {
    background-position: -120% 0;
  }
}

@keyframes neon-burst {
  0% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(0.35);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.3);
  }
}

/* 히어로 콘텐츠 간격 압축 (1 스크린 안에 수납) */
.page-home .hero-stat-pill {
  margin-bottom: 26px;
}

.page-home .hero-ref-sub {
  margin-bottom: 28px;
  font-size: clamp(15px, 1.6vw, 18px);
}

.page-home .hero-cta-group {
  margin-bottom: 34px;
}

.page-home .hero-partners-bar {
  margin-top: 0;
  padding-top: 26px;
}

.page-home .partners-kicker {
  margin-bottom: 14px;
}

/* 주최 7개 · 후원 9개사가 각각 한 줄에 들어가도록 칩 간격·크기를 줄인다 (줄이 늘면 첫 화면을 넘침) */
.page-home .partners-logo-row {
  gap: 10px 12px;
}

@media (min-width: 769px) {
  .page-home .partner-logo-item {
    font-size: 13px;
    padding: 6px 12px;
  }
}

/* 타이핑 완료(Enter) 전에는 후속 콘텐츠 대기 */
.jv-home .page-home .hero-ref:not(.is-typed) .after-type[data-reveal] {
  opacity: 0 !important;
  transform: translate3d(0, 22px, 0) !important;
}

/* --- 리빌 시스템 ---------------------------------------------------------
   .jv-home은 home.js가 <html>에 붙인다. JS가 없거나 실패하면 리빌 규칙이
   아예 적용되지 않아 모든 콘텐츠가 그대로 보인다. */
.jv-home .page-home [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  transition:
    opacity 0.9s var(--ease-out) var(--d, 0ms),
    transform 0.9s var(--ease-out) var(--d, 0ms),
    filter 0.9s var(--ease-out) var(--d, 0ms);
  will-change: opacity, transform;
}

.jv-home .page-home [data-reveal="scale"] {
  transform: translate3d(0, 24px, 0) scale(0.94);
}

.jv-home .page-home [data-reveal="fade"] {
  transform: none;
}

.jv-home .page-home [data-reveal="mask"] {
  transform: translate3d(0, 40px, 0) scale(1.08);
  filter: blur(14px);
  letter-spacing: 0.02em;
  transition:
    opacity 1.2s var(--ease-out),
    transform 1.2s var(--ease-out),
    filter 1.2s var(--ease-out),
    letter-spacing 1.4s var(--ease-out);
}

.jv-home .page-home .snap-sec.is-active [data-reveal] {
  opacity: 1;
  transform: none;
  filter: none;
}

.jv-home .page-home .snap-sec.is-active [data-reveal="mask"] {
  letter-spacing: -0.05em;
}

/* --- 섹션별 스크롤 연동 효과 (--p: 뷰포트 중앙 기준 -1 … 1) ------------------ */
.page-home .sec-electric-blue .sec-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
  opacity: 0.85;
  will-change: transform;
}

.page-home .sec-orb-a {
  width: 52vw;
  height: 52vw;
  max-width: 720px;
  max-height: 720px;
  left: -14vw;
  top: -18vw;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.45), rgba(0, 210, 255, 0) 65%);
  transform: translate3d(calc(var(--p, 0) * -12vw), calc(var(--p, 0) * 22vh), 0);
}

.page-home .sec-orb-b {
  width: 46vw;
  height: 46vw;
  max-width: 640px;
  max-height: 640px;
  right: -12vw;
  bottom: -20vw;
  background: radial-gradient(circle, rgba(255, 42, 141, 0.5), rgba(131, 56, 236, 0) 65%);
  transform: translate3d(calc(var(--p, 0) * 10vw), calc(var(--p, 0) * -26vh), 0);
}

.page-home .sec-electric-blue>*:not(.sec-orb) {
  position: relative;
  z-index: 1;
}

.page-home .sec-challenge .sec-title-white {
  font-size: clamp(40px, 6vw, 72px);
}

.page-home .sec-dark-mask {
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(131, 56, 236, 0.16), transparent 70%),
    var(--c-dark);
}

.page-home .big-masked-type {
  margin-bottom: 20px;
  /* 가로 패럴랙스는 글자가 잘리지 않도록 아주 작게, 대신 스케일/광량으로 표현 */
  max-width: 100%;
  padding: 0 2vw;
  box-sizing: border-box;
  font-size: clamp(56px, 12.4vw, 160px);
  transform: scale(calc(1 - var(--p, 0) * var(--p, 0) * 0.05));
  transform-origin: 50% 50%;
  transition: transform 0.18s linear;
}

.page-home .sec-dark-mask .sec-title-white {
  margin-bottom: 20px;
}

.page-home .sec-archetypes-stage .sec-heading-center {
  margin-bottom: 28px;
}

.page-home .circle-badges-pair {
  margin: 20px 0 32px;
}

.page-home .archetype-card-ref {
  transform: none;
}

.jv-home .page-home .archetypes-ref-grid [data-reveal] {
  transform: translate3d(0, 36px, 0) rotateX(12deg);
  transform-origin: 50% 100%;
  perspective: 800px;
}

.page-home .sec-cta-banner-stage {
  background:
    radial-gradient(ellipse 60% 60% at 80% 20%, rgba(131, 56, 236, 0.12), transparent 70%),
    var(--c-lavender);
}

.page-home .cta-laptop-mock {
  transform:
    rotate(calc(-6deg + var(--p, 0) * 6deg)) perspective(600px) rotateY(calc(10deg + var(--p, 0) * -14deg)) translateY(calc(var(--p, 0) * -30px));
  transition: transform 0.2s linear;
}

/* 커리큘럼 섹션 — 1 스크린 수납형 컴팩트 보드 */
.page-home .sec-curriculum .sec-title-white {
  margin-bottom: 22px;
  font-size: clamp(28px, 3.8vw, 44px);
}

.page-home .curriculum-board {
  padding: 26px 30px;
  width: 100%;
}

.page-home .curriculum-board-header {
  padding-bottom: 16px;
  margin-bottom: 14px;
}

.page-home .curriculum-item-row {
  padding: 11px 16px;
  margin-bottom: 8px;
}

.page-home .ci-title {
  font-size: 15px;
  margin-bottom: 2px;
}

.page-home .curriculum-board-footer {
  margin-top: 16px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-home .curriculum-board-footer p {
  font-size: 15px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

/* --- 하단 중앙 스크롤 유도 버튼 --------------------------------------------- */
.scroll-cue {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 90;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 14px 8px;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  opacity: 0;
  transition: opacity 0.6s var(--ease-soft), color 0.5s var(--ease-soft), transform 0.4s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

body.is-ready .scroll-cue {
  opacity: 1;
}

.scroll-cue.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(12px);
}

.scroll-cue:hover {
  transform: translateX(-50%) translateY(-3px);
}

.scroll-cue:focus-visible {
  outline: 2px solid var(--c-cyan);
  outline-offset: 4px;
  border-radius: 20px;
}

.scroll-cue-mouse {
  position: relative;
  width: 24px;
  height: 38px;
  border: 1.5px solid currentColor;
  border-radius: 14px;
  opacity: 0.85;
  transition: border-color 0.5s;
}

.scroll-cue-wheel {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 4px;
  height: 7px;
  margin-left: -2px;
  border-radius: 3px;
  background: currentColor;
  animation: cue-wheel 1.9s var(--ease-soft) infinite;
}

.scroll-cue-label {
  opacity: 0.7;
}

.scroll-cue-chevron {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.6;
  animation: cue-chev 1.9s var(--ease-soft) infinite;
}

@keyframes cue-wheel {
  0% {
    opacity: 0;
    transform: translateY(-4px);
  }

  25% {
    opacity: 1;
  }

  70% {
    opacity: 0;
    transform: translateY(12px);
  }

  100% {
    opacity: 0;
    transform: translateY(12px);
  }
}

@keyframes cue-chev {

  0%,
  100% {
    transform: rotate(45deg) translate(0, 0);
    opacity: 0.35;
  }

  50% {
    transform: rotate(45deg) translate(3px, 3px);
    opacity: 0.9;
  }
}

/* 라벤더(밝은) 섹션 위에서는 다크 톤으로 전환 */
body[data-tone="dark"] .scroll-cue {
  color: rgba(15, 23, 42, 0.8);
}

/* --- 우측 섹션 도트 내비게이션 ---------------------------------------------- */
.sec-dots {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  transition: opacity 0.6s var(--ease-soft);
}

body.is-ready .sec-dots {
  opacity: 1;
}

.sec-dot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  background: transparent;
  border: 0;
  padding: 4px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.5s var(--ease-soft);
  -webkit-tap-highlight-color: transparent;
}

.sec-dot-mark {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}

.sec-dot-label {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.3s, transform 0.3s var(--ease-out);
  white-space: nowrap;
}

.sec-dot:hover .sec-dot-label,
.sec-dot:focus-visible .sec-dot-label,
.sec-dot.is-current .sec-dot-label {
  opacity: 0.9;
  transform: none;
}

.sec-dot.is-current {
  color: #ffffff;
}

.sec-dot.is-current .sec-dot-mark {
  transform: scale(1.6);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.14), 0 0 18px rgba(0, 210, 255, 0.6);
}

.sec-dot:focus-visible {
  outline: 2px solid var(--c-cyan);
  outline-offset: 2px;
  border-radius: 12px;
}

body[data-tone="dark"] .sec-dot {
  color: rgba(15, 23, 42, 0.45);
}

body[data-tone="dark"] .sec-dot.is-current {
  color: var(--c-text-dark);
}

body[data-tone="dark"] .sec-dot.is-current .sec-dot-mark {
  box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.1), 0 0 18px rgba(131, 56, 236, 0.45);
}

/* --- 반응형 / 접근성 --------------------------------------------------------- */
@media (max-height: 700px) and (min-width: 769px) {
  .page-home .snap-sec {
    padding-top: 80px;
    padding-bottom: 72px;
  }

  .hero-type {
    font-size: clamp(36px, 7.2vw, 94px);
  }

  .page-home .hero-partners-bar {
    display: none;
  }
}

/* 주최·후원 두 줄 파트너 바가 첫 화면에 들어오도록, 낮은 데스크톱 화면에서는 로고를 화면 높이에 맞춰 줄인다 */
@media (min-width: 769px) and (min-height: 701px) and (max-height: 1000px) {
  .hero-type {
    font-size: clamp(40px, min(8.3vw, 10.5vh), 122px);
  }
}

/* 화면 아래 고정된 스크롤 안내가 파트너 바를 가리지 않게, 높이가 낮으면 숨긴다 */
@media (min-width: 769px) and (max-height: 920px) {
  .scroll-cue {
    display: none;
  }
}

@media (max-width: 1024px) {
  .page-home .curriculum-board {
    padding: 22px 18px;
  }
}

@media (max-width: 768px) {

  html:has(body.page-home),
  html.jv-home {
    scroll-snap-type: y proximity;
  }

  .page-home .snap-sec {
    min-height: 0;
    padding-top: 84px;
    padding-bottom: 80px;
    scroll-snap-stop: normal;
  }

  .page-home .hero-ref {
    min-height: var(--vh-unit);
    padding: 84px 20px 88px;
  }

  .hero-type {
    font-size: clamp(30px, 8.6vw, 60px);
    gap: 0.12em;
  }

  .page-home .hero-ref-sub br {
    display: none;
  }

  .page-home .hero-partners-bar {
    padding-top: 18px;
  }

  .page-home .partners-logo-row {
    gap: 8px;
  }

  .page-home .partner-logo-item {
    font-size: 12px;
    padding: 5px 10px;
  }

  .page-home .partner-logo-item.is-logo {
    padding: 0;
  }

  .page-home .partner-logo-item.is-logo img {
    height: 27px;
  }

  .sec-dots {
    display: none;
  }

  .scroll-cue {
    bottom: 16px;
    padding: 8px 12px 6px;
  }

  .scroll-cue-label {
    display: none;
  }

  .page-home .big-masked-type {
    transform: none;
    font-size: clamp(48px, 15vw, 92px);
    padding: 0;
  }

  .page-home .curriculum-board-footer {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .hero-type {
    font-size: clamp(26px, 8.2vw, 44px);
    letter-spacing: -0.04em;
  }

  .page-home .hero-cta-group {
    flex-direction: column;
    gap: 10px;
  }

  .page-home .hero-cta-group .btn {
    width: 100%;
    max-width: 320px;
  }
}

@media (prefers-reduced-motion: reduce) {

  html:has(body.page-home),
  html.jv-home {
    scroll-snap-type: y proximity;
  }

  .jv-home .page-home [data-reveal],
  .jv-home .page-home .hero-ref:not(.is-typed) .after-type[data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }

  .hero-neon-stage,
  .page-home .hero-content {
    transform: none;
    opacity: 1;
  }

  .hero-type-text .ch,
  .ch-ghost,
  .hero-type.is-run .hero-type-text,
  .hero-type.is-run::after,
  .scroll-cue-wheel,
  .scroll-cue-chevron,
  .hero-type-caret {
    animation: none !important;
  }

  .page-home .big-masked-type,
  .page-home .cta-laptop-mock,
  .page-home .sec-orb {
    transform: none;
  }
}

/* ==========================================================================
   CTA 배너 — 좌측 카피 + 카드 밖으로 걸쳐 나온 대형 티켓 레이어
   ========================================================================== */

/* 티켓이 섹션 경계를 넘어갈 수 있도록 이 섹션만 클리핑 해제 */
.page-home .sec-cta-banner-stage {
  overflow: visible;
}

.page-home .cta-banner-box {
  position: relative;
  overflow: visible;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 10px 20px;
  align-items: center;
  padding: clamp(52px, 6vh, 78px) clamp(28px, 4vw, 60px);
  background:
    radial-gradient(ellipse 80% 100% at 0% 0%, rgba(131, 56, 236, 0.5), transparent 62%),
    linear-gradient(120deg, #1e2ce2 0%, var(--c-blue) 58%, #3948ff 100%);
  box-shadow:
    0 44px 100px rgba(39, 56, 245, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.page-home .cta-banner-text {
  position: relative;
  z-index: 3;
  max-width: 520px;
}

.page-home .cta-banner-visual {
  position: relative;
  align-self: stretch;
  min-height: 240px;
  perspective: 1500px;
  pointer-events: none;
  overflow: visible;
}

/* 티켓 뒤 광원 */
.cta-ticket-glow {
  position: absolute;
  left: 37%;
  top: 52%;
  width: 126%;
  aspect-ratio: 2 / 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(0, 210, 255, 0.2), rgba(131, 56, 236, 0.14) 46%, transparent 72%);
  filter: blur(52px);
}

/* 카드 우측·하단 경계를 넘어 걸쳐 놓인 대형 티켓 */
.cta-ticket {
  position: absolute;
  left: 37%;
  top: 52%;
  width: clamp(370px, 126%, 720px);
  transform-style: preserve-3d;
  transform:
    translate(-50%, -50%) rotateY(calc(-14deg + var(--p, 0) * 7deg)) rotateX(calc(8deg + var(--p, 0) * -6deg)) rotateZ(calc(-4deg + var(--p, 0) * 2deg)) translate3d(0, calc(var(--p, 0) * -30px), 0);
  transition: transform 0.4s var(--ease-out);
  animation: ticket-float 7.5s ease-in-out infinite;
  will-change: transform;
}

.cta-ticket-img {
  display: block;
  width: 100%;
  height: auto;
  /* 알파 실루엣을 그대로 따르는 실제 그림자 */
  filter:
    drop-shadow(0 26px 40px rgba(5, 8, 40, 0.24)) drop-shadow(0 8px 14px rgba(5, 8, 40, 0.14));
}

/* 티켓 실루엣에만 걸리는 광택 스윕 */
.cta-ticket-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(104deg,
      transparent 38%,
      rgba(255, 255, 255, 0.32) 47%,
      rgba(255, 255, 255, 0.05) 55%,
      transparent 62%);
  background-size: 260% 100%;
  background-position: 150% 0;
  -webkit-mask-image: url("../img/ticket.png");
  mask-image: url("../img/ticket.png");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  mix-blend-mode: screen;
  opacity: 0;
}

.page-home .snap-sec.is-active .cta-ticket-sheen {
  animation: ticket-sheen 5.2s var(--ease-soft) 0.8s infinite;
}

@keyframes ticket-float {

  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -12px;
  }
}

@keyframes ticket-sheen {
  0% {
    background-position: 150% 0;
    opacity: 0;
  }

  8% {
    opacity: 1;
  }

  38% {
    background-position: -60% 0;
    opacity: 0;
  }

  100% {
    background-position: -60% 0;
    opacity: 0;
  }
}

@media (max-width: 1024px) {
  .page-home .cta-banner-box {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 44px 28px 0;
    text-align: center;
  }

  .page-home .cta-banner-text {
    max-width: none;
    margin: 0 auto;
  }

  .page-home .cta-banner-visual {
    min-height: 0;
    margin-top: 24px;
    aspect-ratio: 12 / 5;
    perspective: none;
  }

  .cta-ticket {
    left: 50%;
    top: 52%;
    width: clamp(400px, 110%, 800px);
    transform: translate(-50%, -50%) rotateZ(-3deg);
    animation-duration: 8.5s;
  }

  .cta-ticket-glow {
    left: 50%;
    top: 50%;
    width: 118%;
  }
}

@media (max-width: 480px) {
  .page-home .cta-banner-box {
    padding: 34px 20px 0;
  }

  .cta-ticket {
    width: 120%;
  }

  .cta-ticket-img {
    filter: drop-shadow(0 14px 22px rgba(5, 8, 40, 0.22));
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta-ticket {
    animation: none;
    transform: translate(-50%, -50%) rotateZ(-3deg);
  }

  .cta-ticket-sheen {
    animation: none !important;
    opacity: 0;
  }
}

/* CTA 카드 상단 화이트 타이틀 */
.cta-banner-kicker {
  grid-column: 1 / -1;
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(4px, 0.8vh, 10px);
  font-family: var(--display);
  font-size: clamp(15px, 1.5vw, 20px);
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 2px 18px rgba(5, 8, 40, 0.45);
}

.cta-banner-kicker::after {
  content: "";
  width: clamp(40px, 7vw, 96px);
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.75), transparent);
}

@media (max-width: 1024px) {
  .cta-banner-kicker {
    justify-content: center;
    margin-bottom: 6px;
  }

  .cta-banner-kicker::after {
    display: none;
  }
}

/* 커커와 제목 사이 여백 정리 */
.page-home .cta-banner-text h2 {
  margin-top: 0;
}

/* CTA 제목과 버튼 사이 간격 (설명 문단 제거에 따른 보정) */
.page-home .cta-banner-text h2 {
  margin-bottom: clamp(22px, 3vh, 32px);
}

/* ==========================================================================
   참여 신청 CTA — 롤오버 시 그라디언트 흐름 + 네온 글로우 + 광택 스윕
   (/apply 로 가는 모든 버튼에 자동 적용, 마크업 변경 불필요)
   ========================================================================== */

a.btn[href="/apply"] {
  position: relative;
  overflow: hidden;
  /* 음수 z-index 의사요소가 조상 뒤로 빠지지 않도록 스택 컨텍스트를 만든다 */
  isolation: isolate;
  transition:
    transform 0.34s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.34s ease,
    color 0.22s ease,
    letter-spacing 0.34s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 흐르는 그라디언트 — 버튼 배경 위, 글자 아래에 깔린다 */
a.btn[href="/apply"]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(100deg,
      #2738f5 0%,
      #8338ec 20%,
      #ff2a8d 42%,
      #ff6ec4 54%,
      #00d2ff 74%,
      #2738f5 96%);
  background-size: 280% 100%;
  background-position: 0% 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* 표면을 훑고 지나가는 광택 */
a.btn[href="/apply"]::after {
  content: "";
  position: absolute;
  top: -70%;
  bottom: -70%;
  left: -34%;
  width: 24%;
  z-index: -1;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  opacity: 0;
  pointer-events: none;
}

a.btn[href="/apply"]:hover,
a.btn[href="/apply"]:focus-visible {
  color: #ffffff !important;
  transform: translateY(-3px) scale(1.04);
  letter-spacing: 0.005em;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.35),
    0 12px 30px rgba(131, 56, 236, 0.52),
    0 6px 52px rgba(255, 42, 141, 0.42),
    0 0 78px rgba(0, 210, 255, 0.3);
}

a.btn[href="/apply"]:hover::before,
a.btn[href="/apply"]:focus-visible::before {
  opacity: 1;
  animation: cta-flow 2.8s linear infinite;
}

a.btn[href="/apply"]:hover::after,
a.btn[href="/apply"]:focus-visible::after {
  opacity: 1;
  animation: cta-shine 1.5s cubic-bezier(0.3, 0, 0.2, 1) 0.08s infinite;
}

a.btn[href="/apply"]:active {
  transform: translateY(-1px) scale(1.01);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.4),
    0 6px 18px rgba(131, 56, 236, 0.5);
}

@keyframes cta-flow {
  to {
    background-position: 280% 50%;
  }
}

@keyframes cta-shine {
  0% {
    left: -34%;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  55% {
    left: 118%;
    opacity: 0;
  }

  100% {
    left: 118%;
    opacity: 0;
  }
}

/* 헤더의 작은 신청 버튼은 과하지 않게 */
a.btn-pill-nav[href="/apply"]:hover,
a.btn-pill-nav[href="/apply"]:focus-visible {
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.35),
    0 8px 22px rgba(131, 56, 236, 0.5),
    0 4px 34px rgba(255, 42, 141, 0.36);
}

@media (prefers-reduced-motion: reduce) {

  a.btn[href="/apply"]:hover::before,
  a.btn[href="/apply"]:focus-visible::before {
    animation: none;
    background-position: 40% 50%;
  }

  a.btn[href="/apply"]::after {
    display: none;
  }

  a.btn[href="/apply"]:hover,
  a.btn[href="/apply"]:focus-visible {
    transform: none;
    letter-spacing: normal;
  }
}

/* ==========================================================================
   행사 포스터 모달 — 글래스모피즘 + 입체 등장 애니메이션
   ========================================================================== */

.poster-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  perspective: 1600px;
}

.poster-modal[hidden] {
  display: none;
}

/* 뒤 배경: 어둡게 깔고 블러 */
.pm-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(39, 56, 245, 0.22), transparent 70%),
    rgba(6, 7, 16, 0.62);
  backdrop-filter: blur(0px) saturate(1);
  -webkit-backdrop-filter: blur(0px) saturate(1);
  opacity: 0;
  transition: opacity 0.42s var(--ease-soft), backdrop-filter 0.52s var(--ease-soft);
  cursor: pointer;
}

.poster-modal.is-open .pm-backdrop {
  opacity: 1;
  backdrop-filter: blur(20px) saturate(1.35);
  -webkit-backdrop-filter: blur(20px) saturate(1.35);
}

/* 유리 패널 */
.pm-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 94vw;
  padding: 16px 16px 18px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05) 46%, rgba(255, 255, 255, 0.1));
  backdrop-filter: blur(26px) saturate(1.5);
  -webkit-backdrop-filter: blur(26px) saturate(1.5);
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 1px 0 rgba(255, 255, 255, 0.35) inset;
  opacity: 0;
  transform: translateY(34px) scale(0.93) rotateX(9deg);
  transform-origin: 50% 100%;
  transition:
    opacity 0.5s var(--ease-out),
    transform 0.62s var(--ease-out);
}

.poster-modal.is-open .pm-panel {
  opacity: 1;
  transform: none;
}

/* 패널 테두리를 따라 도는 은은한 네온 */
.pm-panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg,
      rgba(0, 210, 255, 0.55),
      rgba(131, 56, 236, 0.35) 40%,
      rgba(255, 42, 141, 0.5) 70%,
      rgba(0, 210, 255, 0.4));
  background-size: 220% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.6s ease 0.2s;
  pointer-events: none;
}

.poster-modal.is-open .pm-panel::before {
  opacity: 1;
  animation: pm-edge 7s linear infinite;
}

@keyframes pm-edge {
  to {
    background-position: 220% 0;
  }
}

/* 상단 바 */
.pm-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 2px 4px 0;
}

.pm-title {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.72);
}

.pm-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pm-link {
  font-family: var(--display);
  font-size: 12.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
}

.pm-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
}

.pm-close {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pm-close:hover {
  background: var(--c-magenta);
  border-color: var(--c-magenta);
  transform: rotate(90deg);
  box-shadow: 0 0 22px rgba(255, 42, 141, 0.6);
}

.pm-close:focus-visible,
.pm-link:focus-visible {
  outline: 2px solid var(--c-cyan);
  outline-offset: 3px;
}

/* 포스터 무대 */
.pm-stage {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #0b0d1a;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  /* A3 세로 비율 */
  aspect-ratio: 297 / 420;
  height: min(78vh, 1180px);
  max-width: 88vw;
}

.pm-frame {
  position: absolute;
  left: 0;
  top: 0;
  border: 0;
  transform-origin: top left;
  background: #1b1d2a;
}

.pm-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 11px;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.5);
  transition: opacity 0.4s ease;
}

.pm-loading.is-done {
  opacity: 0;
}

body.pm-locked {
  overflow: hidden;
}

@media (max-width: 760px) {
  .poster-modal {
    padding: 12px;
  }

  .pm-panel {
    padding: 12px 12px 14px;
    border-radius: 20px;
    gap: 10px;
  }

  .pm-stage {
    height: min(72vh, 900px);
    max-width: 92vw;
  }

  .pm-title {
    display: none;
  }

  .pm-bar {
    justify-content: flex-end;
  }
}

@media (prefers-reduced-motion: reduce) {

  .pm-backdrop,
  .pm-panel {
    transition: opacity 0.2s ease;
  }

  .pm-panel {
    transform: none;
  }

  .poster-modal.is-open .pm-panel::before {
    animation: none;
  }

  .pm-close:hover {
    transform: none;
  }
}

/* ==========================================================================
   결과 페이지 '홈으로' 버튼 — 글래스 필 + 그라디언트 글로우
   ========================================================================== */

.btn-home {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 26px 12px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  isolation: isolate;
  transition:
    color 0.24s ease,
    border-color 0.3s ease,
    transform 0.34s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.34s ease;
}

/* 호버 시 차오르는 그라디언트 */
.btn-home::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(120deg, #2738f5 0%, #8338ec 46%, #00d2ff 100%);
  opacity: 0;
  transform: translateY(62%);
  transition: opacity 0.32s ease, transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-home-ico {
  width: 17px;
  height: 17px;
  flex: none;
  color: var(--c-cyan);
  transition: color 0.24s ease, transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-home:hover,
.btn-home:focus-visible {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.42);
  transform: translateY(-3px);
  box-shadow:
    0 12px 28px rgba(39, 56, 245, 0.42),
    0 4px 40px rgba(0, 210, 255, 0.26);
}

.btn-home:hover::before,
.btn-home:focus-visible::before {
  opacity: 1;
  transform: translateY(0);
}

.btn-home:hover .btn-home-ico,
.btn-home:focus-visible .btn-home-ico {
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-home:focus-visible {
  outline: 2px solid var(--c-cyan);
  outline-offset: 3px;
}

.btn-home:active {
  transform: translateY(-1px);
}

/* 홈으로 버튼이 들어간 결과 하단 영역 여백 정리 */
.result-again {
  margin-top: 28px;
}

@media (prefers-reduced-motion: reduce) {

  .btn-home,
  .btn-home::before,
  .btn-home-ico {
    transition: none;
  }

  .btn-home:hover,
  .btn-home:focus-visible {
    transform: none;
  }

  .btn-home:hover::before,
  .btn-home:focus-visible::before {
    transform: none;
  }
}

/* ==========================================================================
   사전연수 커리큘럼 — 모바일 최적화 (가로 한 줄 → 세로 카드형)
   ========================================================================== */

@media (max-width: 768px) {

  .page-home .sec-curriculum .sec-title-white {
    font-size: clamp(22px, 6vw, 30px);
    margin-bottom: 18px;
  }

  .curriculum-board,
  .page-home .curriculum-board {
    padding: 16px 14px 18px;
    border-radius: var(--radius-md);
  }

  /* 상단 정보(일정·시간·장소)는 라벨 + 값 세로 스택 */
  .curriculum-board-header,
  .page-home .curriculum-board-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding-bottom: 14px;
    margin-bottom: 14px;
  }

  .cb-info-item {
    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: baseline;
    gap: 10px;
  }

  .cb-info-label {
    font-size: 10px;
    letter-spacing: 0.08em;
  }

  .cb-info-val {
    font-size: 13.5px;
    line-height: 1.4;
    word-break: keep-all;
  }

  /* 각 회차를 카드로: [번호 · 날짜 · 소속] / [제목] / [강사] */
  .curriculum-item-row,
  .page-home .curriculum-item-row {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "num meta"
      "body body";
    align-items: center;
    gap: 8px 10px;
    padding: 13px 14px;
    margin-bottom: 8px;
    border-radius: 14px;
  }

  .curriculum-item-row:hover {
    transform: none;
  }

  .ci-num {
    grid-area: num;
    min-width: 0;
    font-size: 13px;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    background: rgba(0, 210, 255, 0.14);
    border: 1px solid rgba(0, 210, 255, 0.3);
  }

  .ci-badges {
    grid-area: meta;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
  }

  .ci-chip-date,
  .ci-chip-org {
    font-size: 11px;
    padding: 3px 9px;
  }

  .ci-title-wrap {
    grid-area: body;
    min-width: 0;
  }

  .ci-title,
  .page-home .ci-title {
    font-size: 14.5px;
    line-height: 1.45;
    margin: 0 0 5px;
    word-break: keep-all;
  }

  .ci-speaker {
    display: block;
    font-size: 12.5px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.68);
    word-break: keep-all;
  }
}

@media (max-width: 420px) {

  .curriculum-item-row,
  .page-home .curriculum-item-row {
    padding: 12px;
  }

  .cb-info-item {
    grid-template-columns: 38px 1fr;
    gap: 8px;
  }

  .cb-info-val {
    font-size: 12.5px;
  }

  .ci-title,
  .page-home .ci-title {
    font-size: 13.8px;
  }

  .ci-chip-org {
    font-size: 10.5px;
  }
}

/* ==========================================================================
   히어로 브랜드 로고 록업 — 엔터 이후 타이핑 텍스트와 교체
   (V 배지 심볼 + 필기체 워드마크, 인쇄까지 고려한 단순 구성)
   ========================================================================== */

.hero-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -46%) scale(0.88);
  filter: blur(6px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.95s var(--ease-out),
    filter 0.7s var(--ease-out);
}

.hero-type.is-logo .hero-logo {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  filter: blur(0);
}

/* 로고가 나오면 타이핑 글자는 빛과 함께 사라진다 */
.hero-type.is-logo .hero-type-text,
.hero-type.is-logo .hero-type-prompt,
.hero-type.is-logo .hero-type-caret {
  opacity: 0;
  transform: scale(0.94);
  filter: blur(10px);
  transition: opacity 0.5s ease, transform 0.7s var(--ease-out), filter 0.5s ease;
}

/* 심볼 */
.hero-logo-mark {
  width: 0.84em;
  height: 0.84em;
  flex: none;
  filter: drop-shadow(0 6px 22px rgba(39, 56, 245, 0.5));
}

.hl-tube,
.hl-halo,
.hl-shine {
  fill: none;
}

/* 엔터 직후 V 곡선이 그려지듯 나타난다 */
.hero-type.is-logo .hl-tube,
.hero-type.is-logo .hl-shine {
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  animation: hl-draw 1.05s var(--ease-out) 0.18s forwards;
}

.hero-type.is-logo .hl-shine {
  animation-delay: 0.34s;
}

.hero-type.is-logo .hl-spark {
  animation: hl-spark 2.6s ease-in-out 1s infinite;
}

@keyframes hl-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes hl-spark {

  0%,
  100% {
    opacity: 0.55;
  }

  50% {
    opacity: 1;
  }
}

/* 워드마크 */
.hero-logo-word {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

/* 공식 로고 이미지 (img/logo-justvuild.png) — 타이핑 글자 크기(em)에 맞춰 커진다 */
.hero-logo-img {
  display: block;
  height: 1.6em;
  width: auto;
  max-width: 92vw;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(131, 56, 236, 0.45)) drop-shadow(0 8px 34px rgba(39, 56, 245, 0.35));
}

.hlw-tag {
  font-family: var(--mono);
  font-size: 0.082em;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.42em;
}

/* 인쇄: 글로우와 그라디언트 문자를 단색으로 단순화 */
@media print {
  .hero-logo {
    opacity: 1;
    transform: none;
    filter: none;
  }

  /* 흰 로고는 종이에서 보이지 않으므로 단색으로 */
  .hero-logo-img {
    filter: brightness(0);
  }

  .hlw-tag {
    color: #4a5568;
  }

  .hero-logo-mark {
    filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {

  .hero-logo,
  .hero-type.is-logo .hero-type-text,
  .hero-type.is-logo .hero-type-prompt,
  .hero-type.is-logo .hero-type-caret {
    transition: opacity 0.25s ease;
    filter: none;
  }

  .hero-type.is-logo .hero-logo {
    transform: translate(-50%, -50%);
  }

  .hero-type.is-logo .hl-tube,
  .hero-type.is-logo .hl-shine,
  .hero-type.is-logo .hl-spark {
    animation: none;
    stroke-dashoffset: 0;
  }
}

/* 타이핑 애니메이션 없이 로고를 바로 보여 준다 — 절대 배치 대신 흐름 안에 둬 제목 크기가 로고를 따른다 */
.hero-type.is-static .hero-logo {
  position: static;
  opacity: 1;
  transform: none;
  filter: none;
  transition: none;
}

.page-home .hero-type.is-static {
  padding-block: 0.1em;
}

/* 히어로 타이틀·로고 상하 여백 (필기체 어센더·디센더 여유 포함) */
.page-home .hero-type {
  /* 패딩은 위아래 대칭이라 타이핑 글자와 로고의 중심이 어긋나지 않는다 */
  padding-block: 0.4em;
}

.page-home .hero-brand-pretitle {
  margin-bottom: 24px;
}

.page-home .hero-brand-stage-wrap {
  margin: 0 auto 46px;
}

@media (max-height: 760px) and (min-width: 769px) {
  .page-home .hero-type {
    padding-block: 0.24em;
  }

  .page-home .hero-brand-stage-wrap {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-home .hero-type {
    padding-block: 0.3em;
  }

  .page-home .hero-brand-stage-wrap {
    margin-bottom: 34px;
  }
}


/* ==========================================================================
   신청서 서술형 문항 · 슬라이더 조작 전 비활성 상태
   ========================================================================== */

.field textarea {
  display: block;
  width: 100%;
  min-height: 120px;
  resize: vertical;
  /* 공용 입력칸 규칙의 overflow:hidden 을 풀어 긴 글도 스크롤되게 */
  overflow: auto;
  text-overflow: clip;
  font-family: inherit;
  line-height: 1.6;
  word-break: keep-all;
}

.field-counter {
  text-align: right;
}

/* 조작 전 슬라이더: 흐리고 무채색 */
.slider-wrap input[type="range"].is-untouched {
  accent-color: #64748b;
  opacity: 0.5;
  filter: grayscale(1);
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.slider-wrap input[type="range"].is-untouched:hover,
.slider-wrap input[type="range"].is-untouched:focus-visible {
  opacity: 0.8;
}

.quiz-hint {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-cyan);
  margin: 4px 0 0;
  animation: quiz-hint-pulse 1.8s ease-in-out infinite;
}

@keyframes quiz-hint-pulse {

  0%,
  100% {
    opacity: 0.55;
  }

  50% {
    opacity: 1;
  }
}

.quiz-nav .btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
  filter: grayscale(0.4);
}

/* 관리자 명단의 서술형 응답 */
.admin-problem {
  min-width: 220px;
  max-width: 320px;
  white-space: normal;
  word-break: keep-all;
  line-height: 1.5;
  font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
  .quiz-hint {
    animation: none;
  }
}
/* ==========================================================================
   이용 약관 · 개인정보 처리방침 — 푸터 링크 & 글래스 모달
   ========================================================================== */

.footer-legal-links {
  align-items: center;
  flex-wrap: wrap;
}

.legal-link,
.legal-inline {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: #94a3b8;
  cursor: pointer;
  transition: color 0.2s ease;
}

.legal-link:hover,
.legal-link:focus-visible,
.legal-inline:hover,
.legal-inline:focus-visible {
  color: var(--c-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-link-strong {
  font-weight: 700;
  color: var(--c-text-dark);
}

.legal-link:focus-visible,
.legal-inline:focus-visible {
  outline: 2px solid var(--c-cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.consent-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  font-size: 13px;
  color: #64748b;
}

.consent-links .legal-inline {
  color: var(--c-cyan);
  font-weight: 700;
}

html.legal-locked,
html.legal-locked body {
  overflow: hidden;
}

dialog.legal-modal {
  width: min(760px, calc(100vw - 32px));
  max-width: none;
  max-height: min(86vh, 920px);
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  overflow: visible;
}

dialog.legal-modal::backdrop {
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(39, 56, 245, 0.2), transparent 70%),
    rgba(6, 7, 16, 0.64);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  animation: legal-fade 0.34s ease both;
}

.legal-panel {
  display: flex;
  flex-direction: column;
  max-height: min(86vh, 920px);
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(150deg, rgba(26, 30, 58, 0.94), rgba(10, 12, 28, 0.96));
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  font-family: var(--sans);
}

dialog.legal-modal[open] .legal-panel {
  animation: legal-rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

dialog.legal-modal.is-closing .legal-panel {
  animation: legal-fall 0.22s ease-in both;
}

dialog.legal-modal.is-closing::backdrop {
  animation: legal-fade-out 0.22s ease-in both;
}

.legal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--c-cyan);
  margin: 0 0 6px;
}

.legal-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0;
  color: #ffffff;
}

.legal-meta {
  font-size: 12px;
  color: #94a3b8;
  margin: 6px 0 0;
  word-break: keep-all;
}

.legal-close {
  flex: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.legal-close:hover {
  background: var(--c-magenta);
  border-color: var(--c-magenta);
  transform: rotate(90deg);
  box-shadow: 0 0 22px rgba(255, 42, 141, 0.6);
}

.legal-close:focus-visible,
.legal-body:focus-visible {
  outline: 2px solid var(--c-cyan);
  outline-offset: 2px;
}

.legal-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px 24px 24px;
  font-size: 14.5px;
  line-height: 1.78;
  color: rgba(255, 255, 255, 0.86);
  word-break: keep-all;
}

.legal-body h3 {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 15.5px;
  font-weight: 800;
  color: #ffffff;
  margin: 26px 0 8px;
}

.legal-body h3 .no {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--c-cyan);
}

.legal-body p {
  margin: 0 0 10px;
}

.legal-body ul {
  margin: 0 0 10px;
  padding-left: 20px;
}

.legal-body li {
  margin: 4px 0;
}

.legal-body li::marker {
  color: var(--c-cyan);
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 6px 0 10px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
}

.legal-table th,
.legal-table td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-table tr:last-child th,
.legal-table tr:last-child td {
  border-bottom: 0;
}

.legal-table th {
  width: 32%;
  font-weight: 700;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.legal-note {
  font-size: 13px;
  color: #94a3b8;
}

.legal-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-foot .btn {
  padding: 10px 20px;
  font-size: 14px;
}

@keyframes legal-rise {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes legal-fall {
  to {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
}

@keyframes legal-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes legal-fade-out {
  to {
    opacity: 0;
  }
}

@media (max-width: 600px) {
  dialog.legal-modal {
    width: calc(100vw - 20px);
    max-height: 90vh;
  }

  .legal-panel {
    max-height: 90vh;
    border-radius: 18px;
  }

  .legal-head {
    padding: 18px 18px 12px;
  }

  .legal-title {
    font-size: 19px;
  }

  .legal-body {
    padding: 4px 18px 18px;
    font-size: 14px;
  }

  .legal-table th {
    width: 38%;
  }

  .legal-foot {
    flex-direction: column-reverse;
    padding: 12px 18px;
  }

  .legal-foot .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {

  dialog.legal-modal[open] .legal-panel,
  dialog.legal-modal.is-closing .legal-panel,
  dialog.legal-modal::backdrop,
  dialog.legal-modal.is-closing::backdrop {
    animation: none;
  }

  .legal-close:hover {
    transform: none;
  }
}

/* ==========================================================================
   그라디언트 글자 잉크 잘림 보정
   background-clip:text 는 요소 상자 안에서만 칠해진다. 필기체 꼬리나 음수 자간 때문에
   상자 밖으로 나온 글자 잉크는 투명하게 잘리므로, 패딩으로 칠할 영역을 넓히고
   같은 크기의 음수 마진으로 되돌려 배치와 가운데 정렬은 그대로 둔다.
   ========================================================================== */

.hero-type.is-run .hero-type-text {
  padding-right: 0.1em;
  margin-right: -0.1em;
}

@media (max-width: 768px) {
  .page-home .big-masked-type {
    padding: 0 0.08em;
  }
}

.legal-mail {
  color: var(--c-cyan);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-mail:hover {
  color: #ffffff;
}

/* --- VUILDERS 참가 여정 (온보딩 → 팀 빌딩 → 해커톤) --------------------------- */
.page-home .vuild-journey {
  width: 100%;
  max-width: 1040px;
  margin: 44px auto 0;
}

.page-home .vj-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  counter-reset: vj;
  position: relative;
}

.page-home .vj-step {
  counter-increment: vj;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  --vj-pad: 22px;
  padding: var(--vj-pad);
  text-align: left;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  border: 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  word-break: keep-all;
}

.page-home .vj-step::before {
  content: counter(vj, decimal-leading-zero);
  position: absolute;
  top: var(--vj-pad);
  left: var(--vj-pad);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(168, 85, 247, 0.32);
  border: 0;
}

.page-home .vj-when {
  display: flex;
  align-items: center;
  min-height: 32px;
  padding-left: 44px;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #c4b5fd;
}

.page-home .vj-title {
  font-size: clamp(20px, 1.9vw, 26px);
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}

.page-home .vj-desc {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

.page-home .vj-desc em {
  font-style: normal;
  font-weight: 700;
  color: #fff;
}

.page-home .vj-step--main {
  background:
    linear-gradient(135deg, rgba(255, 42, 141, 0.2), rgba(39, 56, 245, 0.2)),
    rgba(255, 255, 255, 0.04);
  box-shadow: 0 18px 50px rgba(131, 56, 236, 0.28);
}

.page-home .vj-step--main::before {
  background: linear-gradient(135deg, #ff2a8d, #2738f5);
}

/* 하단 스크롤 버튼이 카드와 겹치지 않도록 여유 확보 */
@media (min-width: 769px) {
  .page-home #about.snap-sec {
    padding-top: 80px;
    padding-bottom: 150px;
  }
}

@media (max-height: 880px) and (min-width: 769px) {
  .page-home #about.snap-sec {
    padding-top: 70px;
    padding-bottom: 96px;
  }

  .page-home .sec-dark-mask .big-masked-type {
    font-size: clamp(44px, 7vw, 92px);
    margin-bottom: 12px;
  }

  .page-home .sec-dark-mask .sec-title-white {
    margin-bottom: 12px;
  }

  .page-home #about .sec-desc-white {
    margin-bottom: 22px !important;
  }

  .page-home .vuild-journey {
    margin-top: 24px;
  }

  .page-home .vj-step {
    --vj-pad: 18px;
  }
}

@media (max-width: 768px) {
  .page-home .vuild-journey {
    margin-top: 36px;
  }

  .page-home .vj-steps {
    grid-template-columns: 1fr;
    gap: 14px;
    max-width: 440px;
    margin: 0 auto;
  }

  .page-home .vj-step {
    --vj-pad: 18px;
  }
}

@media (max-height: 780px) and (min-width: 769px) {
  .page-home #about.snap-sec {
    padding-top: 60px;
    padding-bottom: 124px;
  }

  .page-home #about .sec-title-white {
    font-size: clamp(22px, 2.6vw, 30px);
  }

  .page-home #about .btn-lg {
    padding-top: 12px;
    padding-bottom: 12px;
  }
}


/* --- 소속 단체 선택 팝업 ------------------------------------------------------
   네이티브 <select> 목록은 윈도우 브라우저에서 흰 배경에 흰 글자로 그려져
   단체명이 보이지 않는 경우가 있어, 신청서의 단체 선택은 모달로 제공한다. */
.org-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 15px;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.org-trigger:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
}

.org-trigger:focus-visible,
.org-trigger[aria-expanded="true"] {
  outline: none;
  border-color: var(--c-blue);
  box-shadow: 0 0 0 3px rgba(39, 56, 245, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.org-trigger-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.org-trigger-text.is-placeholder {
  color: #94a3b8;
}

.org-trigger-ico {
  flex: none;
  width: 18px;
  height: 18px;
  color: #94a3b8;
}

html.org-locked,
html.org-locked body {
  overflow: hidden;
}

dialog.org-modal {
  width: min(480px, calc(100vw - 32px));
  max-width: none;
  max-height: min(80vh, 640px);
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  overflow: visible;
}

dialog.org-modal::backdrop {
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(39, 56, 245, 0.2), transparent 70%),
    rgba(6, 7, 16, 0.64);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  animation: legal-fade 0.34s ease both;
}

dialog.org-modal .org-panel {
  max-height: min(80vh, 640px);
}

dialog.org-modal[open] .org-panel {
  animation: legal-rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

dialog.org-modal.is-closing .org-panel {
  animation: legal-fall 0.22s ease-in both;
}

dialog.org-modal.is-closing::backdrop {
  animation: legal-fade-out 0.22s ease-in both;
}

.org-list {
  list-style: none;
  margin: 0;
  padding: 12px 14px 16px;
  display: grid;
  gap: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.org-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  word-break: keep-all;
  cursor: pointer;
  transition: background 0.15s ease;
}

.org-option:hover {
  background: rgba(255, 255, 255, 0.11);
}

.org-option:focus-visible {
  outline: 2px solid var(--c-cyan);
  outline-offset: -2px;
}

.org-option[aria-pressed="true"] {
  background: linear-gradient(135deg, rgba(39, 56, 245, 0.6), rgba(168, 85, 247, 0.5));
}

.org-option-check {
  flex: none;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  color: var(--c-blue);
  background: #ffffff;
  opacity: 0;
}

.org-option[aria-pressed="true"] .org-option-check {
  opacity: 1;
}

/* 남은 네이티브 선택 목록(학교급·성별)도 윈도우에서 글자가 보이도록 */
.field select option {
  color: #111827;
  background: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
  dialog.org-modal[open] .org-panel,
  dialog.org-modal.is-closing .org-panel,
  dialog.org-modal::backdrop,
  dialog.org-modal.is-closing::backdrop {
    animation: none;
  }
}


/* --- 관리자 신청 수정 ---------------------------------------------------------
   입력칸은 참여 신청서(_application_fields.html)와 같은 마크업·스타일을 쓴다. */
.admin-edit {
  color: #c7d2fe !important;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-color: rgba(129, 140, 248, 0.35);
}

.admin-edit:hover {
  background: rgba(99, 102, 241, 0.18);
  border-color: #818cf8;
}

.admin-modal.admin-edit-modal {
  max-width: 640px;
}

.admin-edit-modal .edit-card {
  display: flex;
  flex-direction: column;
  max-height: min(90vh, 920px);
  padding: 0;
  text-align: left;
  border-color: rgba(129, 140, 248, 0.35);
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.8), 0 0 40px rgba(99, 102, 241, 0.2);
}

.admin-edit-modal .edit-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-edit-modal .modal-title {
  margin: 0 0 4px;
}

.admin-edit-modal .modal-desc {
  margin: 0;
  font-size: 13px;
  color: #94a3b8;
}

.admin-edit-modal .edit-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 24px 4px;
}

.admin-edit-modal .edit-body .field[hidden] {
  display: none;
}

.admin-edit-modal .form-error {
  padding: 0 24px;
  margin: 8px 0 0;
  text-align: left;
}

.admin-edit-modal .modal-actions {
  margin-top: 10px;
  padding: 14px 24px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .admin-edit-modal .edit-head {
    padding: 18px 18px 12px;
  }

  .admin-edit-modal .edit-body {
    padding: 14px 18px 4px;
  }

  .admin-edit-modal .form-error {
    padding: 0 18px;
  }

  .admin-edit-modal .modal-actions {
    padding: 12px 18px 16px;
  }
}


/* --- 참여 신청 접수 여부(관리자에서 전환) ------------------------------------- */
.btn.is-closed {
  cursor: not-allowed;
  opacity: 0.55;
  pointer-events: none;
  transform: none !important;
  box-shadow: none !important;
}

.admin-settings {
  margin-bottom: 24px;
}

.admin-settings-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.admin-settings h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
}

.admin-settings .admin-note {
  margin: 0;
  word-break: keep-all;
}

.admin-settings-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.apply-state-badge {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.apply-state-badge.is-on {
  color: #86efac;
  background: rgba(34, 197, 94, 0.16);
  border-color: rgba(34, 197, 94, 0.45);
}

.apply-state-badge.is-off {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.45);
}

.admin-settings .form-error {
  margin: 10px 0 0;
  text-align: left;
}

@media (max-width: 768px) {
  .admin-settings-actions {
    width: 100%;
    justify-content: space-between;
  }
}


/* --- 홈 공지 모달 -------------------------------------------------------------
   내용은 관리자 페이지에서 설정하고, 본문의 http 주소는 자동으로 링크가 된다. */
dialog.notice-modal {
  width: min(560px, calc(100vw - 32px));
  max-width: none;
  max-height: min(80vh, 720px);
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  overflow: visible;
}

dialog.notice-modal::backdrop {
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(39, 56, 245, 0.2), transparent 70%),
    rgba(6, 7, 16, 0.64);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  animation: legal-fade 0.34s ease both;
}

dialog.notice-modal .notice-panel {
  max-height: min(80vh, 720px);
  animation: legal-rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.notice-body {
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.notice-link {
  color: var(--c-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.notice-link:hover {
  color: #ffffff;
}

.notice-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 24px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.notice-hide-today {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #cbd5e1;
  cursor: pointer;
}

/* 관리자: 공지 설정 */
.admin-notice .notice-form {
  margin-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 18px;
}

.admin-notice .notice-enable {
  margin-bottom: 16px;
}

.admin-notice .field {
  margin-bottom: 14px;
}

.notice-form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.notice-saved {
  font-size: 13px;
  font-weight: 700;
  color: #86efac;
}

@media (max-width: 768px) {
  .notice-foot {
    padding: 12px 18px 16px;
  }

  .notice-form-actions .btn {
    flex: 1;
  }
}


/* --- VUILDERS 섹션 버튼 줄 + 퍼실리테이터 확인 모달 ---------------------------- */
.vuilders-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.vuilders-actions .btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

dialog.facil-modal {
  width: min(460px, calc(100vw - 32px));
  max-width: none;
  max-height: min(86vh, 760px);
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  overflow: visible;
}

dialog.facil-modal::backdrop {
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(39, 56, 245, 0.2), transparent 70%),
    rgba(6, 7, 16, 0.64);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  animation: legal-fade 0.34s ease both;
}

dialog.facil-modal .facil-panel {
  max-height: min(86vh, 760px);
  animation: legal-rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.facil-form,
.facil-result {
  padding: 20px 24px 24px;
  overflow-y: auto;
}

.facil-form .field {
  margin-bottom: 14px;
  text-align: left;
}

.facil-form .btn-block {
  margin-top: 6px;
}

.facil-form .form-error {
  margin: 12px 0 0;
  text-align: left;
  word-break: keep-all;
}

.facil-result {
  text-align: center;
}

.facil-result-badge {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--c-cyan);
  margin: 0 0 10px;
}

.facil-result-text {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.5;
  color: #ffffff;
  margin: 0 0 8px;
  word-break: keep-all;
}

.facil-result-sub {
  font-size: 14px;
  color: #cbd5e1;
  margin: 0 0 18px;
}

.facil-result-url {
  font-size: 12px;
  color: #94a3b8;
  margin: 10px 0 14px;
  overflow-wrap: anywhere;
}

@media (max-width: 768px) {
  .vuilders-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .vuilders-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .facil-form,
  .facil-result {
    padding: 16px 18px 20px;
  }
}

/* ==========================================================================
   본선 심사 — 입력(/judge) · 결과 집계(/judge/results) · 문서 모음(/docs)
   ========================================================================== */

.page-judge .judge-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 14px;
  font-size: 14px;
}

.page-judge .judge-links a {
  color: var(--c-cyan);
  font-weight: 700;
}

.judge-wrap {
  max-width: 920px;
  margin: 0 auto 90px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.judge-wrap-wide {
  max-width: 1180px;
}

.judge-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.judge-form[hidden] {
  display: none;
}

.judge-card {
  background: var(--c-dark-surface);
  border: 1px solid var(--c-dark-border);
  padding: 26px 28px;
}

.judge-h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
}

.judge-step {
  font-size: 13px;
  color: var(--c-cyan);
}

.judge-opt {
  font-size: 12px;
  font-weight: 600;
  color: var(--c-text-light-muted);
}

.judge-orgs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.judge-org {
  padding: 18px 16px;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  cursor: pointer;
  transition: all 0.2s ease;
}

.judge-org:hover,
.judge-org:focus-visible {
  border-color: var(--c-blue);
  background: rgba(39, 56, 245, 0.18);
  outline: none;
}

.judge-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.judge-meta-top .judge-h2 {
  margin-bottom: 16px;
}

.judge-change {
  padding: 8px 16px;
  font-size: 13px;
}

.judge-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.judge-legend li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--c-text-light-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.judge-legend li b {
  color: #ffffff;
  font-weight: 700;
}

.judge-legend li span {
  color: var(--c-cyan);
  font-weight: 700;
}

.judge-legend li.is-total {
  border-color: rgba(0, 210, 255, 0.4);
}

.judge-teams {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.judge-team {
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: var(--c-dark-surface);
  border: 1px solid var(--c-dark-border);
  border-left: 4px solid rgba(255, 255, 255, 0.18);
  transition: border-color 0.2s ease;
}

.judge-team.is-complete {
  border-left-color: var(--c-blue);
}

.jt-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}

.jt-no {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-cyan);
}

.jt-name {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
}

.jt-total {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--c-text-light-muted);
}

.jt-total b {
  font-size: 20px;
  color: #ffffff;
}

.judge-team.is-complete .jt-total b {
  color: var(--c-cyan);
}

.judge-team.is-empty {
  border-left-color: rgba(255, 255, 255, 0.1);
}

.judge-team.is-empty .jt-sliders {
  opacity: 0.66;
  transition: opacity 0.2s ease;
}

.judge-team.is-empty:hover .jt-sliders,
.judge-team.is-empty:focus-within .jt-sliders {
  opacity: 1;
}

.jt-state {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  color: var(--c-text-light-muted);
  background: rgba(255, 255, 255, 0.06);
}

.judge-team:not(.is-empty) .jt-state {
  color: #c4a5ff;
  background: rgba(131, 56, 236, 0.18);
}

.judge-team.is-complete .jt-state {
  color: var(--c-cyan);
  background: rgba(0, 210, 255, 0.1);
}

.jt-meter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: -4px 0 16px;
}

.jt-meter {
  flex: 1;
  height: 6px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
}

.jt-meter i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--c-blue), var(--c-cyan));
  transition: width 0.25s ease;
}

.jt-vs {
  min-width: 7.5em;
  font-size: 12px;
  text-align: right;
  color: var(--c-text-light-muted);
}

.jt-sliders {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

/* 드래그 점수 막대 — 기준표 3단계(하·중·상) 구간을 바탕에 깔고, 기본 점수 눈금을 표시 */
.jr {
  --lv: #8b95ab;
  --lv-soft: rgba(139, 149, 171, 0.16);
  padding: 12px 14px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.jr.lv-1 {
  --lv: #a77bff;
  --lv-soft: rgba(167, 123, 255, 0.2);
}

.jr.lv-2 {
  --lv: #00d2ff;
  --lv-soft: rgba(0, 210, 255, 0.18);
}

.jr-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.jr-label {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.jr-level {
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  color: var(--lv);
  background: var(--lv-soft);
}

.jr.is-empty .jr-level {
  color: var(--c-text-light-muted);
  background: rgba(255, 255, 255, 0.06);
}

.jr-out {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-left: auto;
}

.jr-value {
  min-width: 1.4em;
  font-size: 22px;
  text-align: right;
  color: #ffffff;
  transform-origin: right center;
  transition: color 0.15s ease, transform 0.15s ease;
}

.jr.is-dragging .jr-value {
  color: var(--lv);
  transform: scale(1.18);
}

.jr.is-empty .jr-value {
  color: var(--c-text-light-muted);
}

.jr-out small {
  font-size: 12px;
  color: var(--c-text-light-muted);
}

.jr-control {
  display: flex;
  align-items: center;
  gap: 4px;
}

.jr-step {
  flex: none;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.jr-step:hover {
  border-color: var(--c-blue);
  background: rgba(39, 56, 245, 0.22);
}

.jr-step:active {
  transform: scale(0.94);
}

.jr-track {
  flex: 1;
  position: relative;
  padding: 20px 13px;
  border-radius: 12px;
  outline: none;
  cursor: pointer;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

.jr-track:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(0, 210, 255, 0.6);
}

.jr-rail {
  position: relative;
  height: 8px;
  border-radius: var(--radius-pill);
  background-color: rgba(255, 255, 255, 0.06);
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0 1px, transparent 1px var(--step));
}

.jr-zone {
  position: absolute;
  top: 0;
  bottom: 0;
}

.jr-zone.lv-0 {
  border-radius: var(--radius-pill) 0 0 var(--radius-pill);
  background: rgba(139, 149, 171, 0.1);
}

.jr-zone.lv-1 {
  background: rgba(167, 123, 255, 0.13);
}

.jr-zone.lv-2 {
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
  background: rgba(0, 210, 255, 0.13);
}

.jr-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  border-radius: var(--radius-pill);
  background: var(--lv);
  transition: width 0.12s ease-out, background-color 0.2s ease;
}

.jr-base {
  position: absolute;
  top: -6px;
  bottom: -6px;
  width: 2px;
  margin-left: -1px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.5);
}

.jr-thumb {
  position: absolute;
  top: 50%;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 4px var(--lv-soft), 0 4px 12px rgba(0, 0, 0, 0.45);
  transition: left 0.12s ease-out, transform 0.15s ease;
}

.jr.is-empty .jr-thumb {
  background: rgba(255, 255, 255, 0.18);
  border: 2px dashed rgba(255, 255, 255, 0.55);
  box-shadow: none;
}

.jr.is-dragging .jr-thumb {
  transform: scale(1.15);
  transition: transform 0.15s ease;
}

.jr.is-dragging .jr-fill {
  transition: background-color 0.2s ease;
}

.jr-desc {
  display: flex;
  gap: 8px;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--c-text-light-muted);
}

.jr-range {
  flex: none;
  font-weight: 700;
  color: var(--lv);
}

.jr.is-empty .jr-desc {
  opacity: 0.7;
}

.jt-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.jt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.jt-actions .btn {
  padding: 9px 16px;
  font-size: 13px;
}

.jt-actions .btn[hidden] {
  display: none;
}

.judge-howto {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 14px 16px;
  list-style: none;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--c-text-light-muted);
  background: rgba(0, 210, 255, 0.05);
  border: 1px solid rgba(0, 210, 255, 0.18);
}

.judge-howto b {
  margin-right: 6px;
  color: #ffffff;
}

.jt-memo {
  flex: 1 1 260px;
  min-width: 0;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.jt-memo:focus {
  outline: none;
  border-color: var(--c-blue);
}

.judge-savebar {
  position: sticky;
  bottom: 14px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: rgba(15, 18, 34, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.judge-savebar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.judge-savebar-row .btn {
  padding: 10px 24px;
}

.judge-jump {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.judge-jump::-webkit-scrollbar {
  display: none;
}

.judge-jump-item {
  flex: 1 0 64px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 10px;
  font: inherit;
  color: var(--c-text-light-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.judge-jump-item span {
  font-size: 11px;
}

.judge-jump-item b {
  font-size: 15px;
  color: #ffffff;
}

.judge-jump-item.is-partial {
  border-color: rgba(167, 123, 255, 0.6);
}

.judge-jump-item.is-done {
  border-color: rgba(0, 210, 255, 0.55);
}

.judge-jump-item.is-done b {
  color: var(--c-cyan);
}

.judge-jump-item.is-current,
.judge-jump-item:hover {
  background: rgba(39, 56, 245, 0.28);
  border-color: var(--c-blue);
}

.judge-status {
  margin: 0;
  font-size: 14px;
  color: var(--c-text-light-muted);
}

.judge-status.is-error {
  color: var(--c-magenta);
  font-weight: 700;
}

/* 결과 집계 */
.judge-updated {
  font-size: 12px;
  color: var(--c-text-light-muted);
  margin-bottom: 16px;
}

.judge-org-status {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.judge-org-chip {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid rgba(255, 255, 255, 0.2);
}

.judge-org-chip.is-partial {
  border-top-color: var(--c-purple);
}

.judge-org-chip.is-done {
  border-top-color: var(--c-cyan);
}

.judge-org-chip b {
  font-size: 14px;
  color: #ffffff;
}

.judge-org-chip span {
  font-size: 12px;
  color: var(--c-text-light-muted);
}

.judge-org-chip.is-done span {
  color: var(--c-cyan);
}

.judge-org-chip small {
  font-size: 12px;
  color: var(--c-text-light-muted);
}

.judge-table-wrap {
  overflow-x: auto;
}

.judge-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  color: #ffffff;
}

.judge-table th {
  padding: 10px 10px;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
  color: var(--c-text-light-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.judge-table td {
  padding: 12px 10px;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.judge-table .is-criterion {
  color: var(--c-text-light-muted);
  text-align: right;
}

.judge-table th.is-criterion {
  text-align: right;
}

.judge-table .team b {
  font-weight: 700;
}

.judge-table .team-no {
  margin-right: 8px;
  font-size: 12px;
  color: var(--c-text-light-muted);
}

.judge-table .rank {
  font-weight: 700;
  color: var(--c-text-light-muted);
}

.judge-table .total {
  font-size: 16px;
  font-weight: 800;
}

.judge-table tr.is-top .rank {
  color: var(--c-cyan);
}

.judge-table tr.rank-1 td {
  background: rgba(39, 56, 245, 0.16);
}

.judge-table tr.rank-1 .rank,
.judge-table tr.rank-1 .total {
  color: #ffffff;
}

.judge-matrix td:not(.team) {
  text-align: right;
}

.judge-matrix th:not(:first-child) {
  text-align: right;
}

.judge-note {
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--c-text-light-muted);
}

/* 관리자 도구 */
.judge-admin summary {
  margin: 0;
  cursor: pointer;
  list-style: none;
}

.judge-admin summary::-webkit-details-marker {
  display: none;
}

.judge-admin summary::after {
  content: "열기 ▾";
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-text-light-muted);
}

.judge-admin[open] summary::after {
  content: "닫기 ▴";
}

.judge-admin-unlock {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-top: 18px;
}

.judge-admin-unlock .field {
  flex: 1;
  min-width: 220px;
  margin: 0;
}

.judge-admin-unlock .field-error {
  flex-basis: 100%;
}

.judge-admin-block {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.judge-admin-block h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
}

.judge-team-names {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 12px;
  margin-top: 14px;
}

.judge-team-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.judge-team-name span {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-cyan);
}

.judge-team-name input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.judge-reset-orgs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.judge-reset-org {
  padding: 8px 14px;
  font-size: 13px;
}

.judge-admin-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.judge-danger {
  color: #ffffff;
  background: rgba(255, 42, 141, 0.18);
  border: 1px solid rgba(255, 42, 141, 0.6);
}

.judge-danger:hover {
  background: var(--c-magenta);
}

#admin-lock {
  margin-top: 22px;
}

/* 문서 모음 */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.docs-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 22px 22px 18px;
  background: var(--c-dark-surface);
  border: 1px solid var(--c-dark-border);
  transition: all 0.2s ease;
}

.docs-item:hover {
  border-color: var(--c-blue);
  transform: translateY(-2px);
}

.docs-audience {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  color: var(--c-cyan);
  background: rgba(0, 210, 255, 0.1);
}

.docs-item strong {
  font-size: 17px;
  color: #ffffff;
}

.docs-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--c-text-light-muted);
}

.docs-open {
  margin-top: auto;
  padding-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #8ea0ff;
}

@media (max-width: 860px) {
  .jt-sliders {
    grid-template-columns: 1fr;
  }

  .judge-team-names {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .judge-card {
    padding: 20px 18px;
  }

  .judge-team {
    padding: 16px;
  }

  .jr {
    padding: 10px 10px 8px;
  }

  .jr-step {
    width: 38px;
    height: 38px;
  }

  .judge-savebar-row {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}

/* ==========================================================================
   실시간 심사 전광판(/judge/board) — 프로젝터·대형 화면용 전체 화면 레이아웃
   ========================================================================== */

.page-board {
  /* 단체 색은 고정 순서로 단체를 따라간다(순위로 바뀌지 않음).
     막대 바탕 #0f1222 기준 색각 이상 시뮬레이션·대비 검증 통과 */
  --org-1: #3987e5;
  --org-2: #d95926;
  --org-3: #199e70;
  --org-4: #c98500;
  --org-5: #d55181;
  --org-6: #008300;
  --org-7: #9085e9;
  --org-8: #e66767;
  --board-surface: #0f1222;
  --board-ink: #f8fafc;
  --board-ink-2: #c3cad8;
  --board-muted: #8a94aa;
  --board-hair: rgba(255, 255, 255, 0.08);
  --board-pad: clamp(12px, 1.4vw, 22px);
  min-height: 100vh;
  line-height: 1.4;
  word-break: keep-all;
  color: var(--board-ink);
  background:
    radial-gradient(ellipse 70% 60% at 85% -10%, rgba(131, 56, 236, 0.2), transparent 60%),
    radial-gradient(ellipse 60% 70% at 0% 110%, rgba(39, 56, 245, 0.22), transparent 65%),
    var(--c-dark);
}

.board {
  --cols: clamp(52px, 5vw, 96px) minmax(140px, 17vw) minmax(0, 1fr) clamp(120px, 11vw, 210px) clamp(96px, 9vw, 160px);
  --col-gap: clamp(10px, 1.4vw, 24px);
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.6vh, 20px);
  max-width: 2200px;
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(14px, 2.4vh, 32px) clamp(16px, 2.6vw, 48px);
}

@media (min-width: 901px) and (min-height: 640px) {
  .board {
    height: 100vh;
  }
}

.board-head {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 32px);
}

.board-logo {
  flex: none;
  width: auto;
  height: clamp(34px, 5.4vh, 64px);
}

.board-title p {
  margin: 0;
  font-size: clamp(11px, 1.3vh, 15px);
  letter-spacing: 0.1em;
  color: var(--c-cyan);
}

.board-title h1 {
  margin: 2px 0 0;
  font-size: clamp(22px, 3.6vh, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.board-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.board-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: clamp(12px, 1.5vh, 16px);
  font-weight: 800;
  letter-spacing: 0.08em;
  white-space: nowrap;
  color: #ffffff;
  background: rgba(255, 42, 141, 0.16);
  border: 1px solid rgba(255, 42, 141, 0.5);
}

.board-live i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-magenta);
  animation: board-pulse 1.6s ease-out infinite;
}

.board-live.is-offline {
  color: var(--board-muted);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

.board-live.is-offline i {
  background: var(--board-muted);
  animation: none;
}

@keyframes board-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 42, 141, 0.6);
  }

  70%,
  100% {
    box-shadow: 0 0 0 10px rgba(255, 42, 141, 0);
  }
}

.board-clock {
  font-size: clamp(16px, 2.4vh, 28px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--board-ink-2);
}

.board-btn {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--board-ink-2);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

.board-btn:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
}

html:fullscreen .board-btn {
  opacity: 0.3;
}

/* 범례(단체) · 채점 진행 */
.board-legend {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  padding: clamp(10px, 1.4vh, 16px) var(--board-pad);
  border-radius: var(--radius-md);
  background: var(--board-surface);
  border: 1px solid var(--board-hair);
}

.board-progress {
  flex: none;
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 4px 10px;
  font-size: clamp(12px, 1.4vh, 15px);
  color: var(--board-muted);
}

.board-progress b {
  font-size: clamp(16px, 2.2vh, 24px);
  color: #ffffff;
}

.board-progress-bar {
  grid-column: 1 / -1;
  display: block;
  width: clamp(120px, 12vw, 200px);
  height: 6px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
}

.board-progress-bar i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--c-blue), var(--c-cyan));
  transition: width 0.6s ease;
}

.board-orgs {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.board-org {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: clamp(12px, 1.5vh, 16px);
  color: var(--board-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--board-hair);
  transition: border-color 0.3s ease;
}

.board-org b {
  font-weight: 700;
  color: var(--board-ink-2);
}

.board-org span {
  font-size: 0.85em;
}

.board-org.is-active b,
.board-org.is-done span {
  color: #ffffff;
}

.board-org.is-done {
  border-color: rgba(255, 255, 255, 0.3);
}

.board-swatch {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--c);
}

/* 눈금 · 순위 행 — 같은 열 정의를 써서 막대와 눈금이 맞는다 */
.board-axis,
.board-row-in {
  display: grid;
  grid-template-columns: var(--cols);
  column-gap: var(--col-gap);
  align-items: center;
}

.board-axis {
  margin-bottom: -6px;
  padding: 0 calc(var(--board-pad) + 1px);
  font-size: clamp(11px, 1.3vh, 14px);
  color: var(--board-muted);
}

.board-ticks {
  position: relative;
  height: 1.4em;
}

.board-ticks span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
}

.board-ticks span.is-first {
  transform: none;
}

.board-ticks span.is-last {
  transform: translateX(-100%);
}

.board-axis-total {
  text-align: right;
}

.board-rows {
  position: relative;
  flex: 1;
  min-height: calc(var(--rows, 8) * 64px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.board-row {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: calc(100% / var(--rows, 8));
  padding-bottom: clamp(4px, 0.8vh, 10px);
  transform: translateY(calc(var(--pos, 0) * 100%));
  transition: transform 0.9s cubic-bezier(0.22, 0.9, 0.24, 1);
}

.board-row-in {
  height: 100%;
  padding: 0 var(--board-pad);
  border-radius: clamp(12px, 1.4vh, 18px);
  background: var(--board-surface);
  border: 1px solid var(--board-hair);
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.board-row.is-top .board-row-in {
  border-color: rgba(0, 210, 255, 0.22);
}

.board-row.is-first .board-row-in {
  background: linear-gradient(90deg, rgba(39, 56, 245, 0.3), var(--board-surface) 30%);
  border-color: rgba(0, 210, 255, 0.5);
  box-shadow: 0 0 32px rgba(39, 56, 245, 0.25);
}

.board-row.is-bump .board-row-in {
  box-shadow: 0 0 0 2px rgba(0, 210, 255, 0.55), 0 0 30px rgba(0, 210, 255, 0.22);
}

.board-row.is-waiting .br-rank,
.board-row.is-waiting .br-team {
  opacity: 0.5;
}

.br-rank {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  column-gap: 2px;
  line-height: 1;
}

.br-rank b {
  font-size: clamp(24px, 4.4vh, 52px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--board-ink-2);
}

.board-row.is-top .br-rank b {
  color: #ffffff;
}

.board-row.is-first .br-rank b {
  color: var(--c-cyan);
}

.br-unit {
  font-size: clamp(12px, 1.6vh, 18px);
  font-weight: 700;
  color: var(--board-muted);
}

.br-tie {
  flex-basis: 100%;
  margin-bottom: 4px;
  font-size: clamp(10px, 1.2vh, 13px);
  font-weight: 700;
  text-align: center;
  color: var(--board-muted);
}

.br-tie:empty {
  display: none;
}

.br-team {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.br-team span {
  flex: none;
  font-size: clamp(12px, 1.5vh, 16px);
  color: var(--board-muted);
}

.br-team b {
  min-width: 0;
  overflow: hidden;
  font-size: clamp(16px, 2.6vh, 30px);
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.br-bar {
  min-width: 0;
}

/* 0~700 트랙 · 단체 100점마다 가는 눈금선 */
.br-track {
  display: flex;
  height: clamp(14px, 2.4vh, 24px);
  border-radius: 0 4px 4px 0;
  background-color: rgba(255, 255, 255, 0.035);
  background-image: repeating-linear-gradient(90deg,
      transparent 0,
      transparent calc(100% / var(--orgs, 7) - 1px),
      rgba(255, 255, 255, 0.09) calc(100% / var(--orgs, 7) - 1px),
      rgba(255, 255, 255, 0.09) calc(100% / var(--orgs, 7)));
}

.br-seg {
  flex: none;
  width: 0;
  height: 100%;
  background-color: var(--c);
  transition: width 0.9s cubic-bezier(0.22, 0.9, 0.24, 1), margin 0.9s ease, opacity 0.25s ease;
}

.br-seg.is-end {
  border-radius: 0 4px 4px 0;
}

/* 일부 항목만 채점된 단체 점수는 빗금으로 구분 */
.br-seg.is-partial {
  background-image: repeating-linear-gradient(45deg, rgba(8, 9, 20, 0.45) 0 3px, transparent 3px 7px);
}

.br-seg.is-dim {
  opacity: 0.18;
}

.br-total {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.br-total b {
  font-size: clamp(26px, 4.6vh, 56px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
}

.board-row.is-waiting .br-total b {
  font-weight: 600;
  color: var(--board-muted);
}

.br-delta {
  order: -1;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: clamp(12px, 1.6vh, 18px);
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

.br-delta.is-up {
  color: #04121a;
  background: var(--c-cyan);
}

.br-delta.is-down {
  color: #ffffff;
  background: var(--c-magenta);
}

.br-delta.is-show {
  animation: board-delta 2.6s ease forwards;
}

@keyframes board-delta {
  0% {
    opacity: 0;
    transform: translateX(10px);
  }

  12%,
  75% {
    opacity: 1;
    transform: none;
  }

  100% {
    opacity: 0;
    transform: translateX(-6px);
  }
}

.br-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.br-dots {
  display: flex;
  gap: 4px;
}

.br-dots i {
  width: clamp(8px, 1.1vh, 12px);
  height: clamp(8px, 1.1vh, 12px);
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
}

.br-dots i.is-partial {
  border-color: var(--c);
}

.br-dots i.is-done {
  background: var(--c);
  border-color: var(--c);
}

.br-meta small {
  font-size: clamp(11px, 1.3vh, 14px);
  color: var(--board-muted);
}

/* 최근 반영 소식 */
.board-foot {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: clamp(36px, 4.6vh, 52px);
}

.board-feed {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.board-feed-title {
  flex: none;
  font-size: clamp(11px, 1.3vh, 14px);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--c-cyan);
}

.board-feed-list {
  display: flex;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
  mask-image: linear-gradient(90deg, #000 85%, transparent);
}

.board-feed-list li {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: clamp(12px, 1.45vh, 15px);
  white-space: nowrap;
  color: var(--board-ink-2);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--board-hair);
}

.board-feed-list li.is-latest {
  background: rgba(0, 210, 255, 0.08);
  border-color: rgba(0, 210, 255, 0.45);
  animation: board-feed-in 0.5s ease;
}

.board-feed-list b,
.board-feed-list strong {
  color: #ffffff;
}

.board-feed-list small,
.board-feed-time {
  color: var(--board-muted);
}

.board-feed-list li.board-feed-empty {
  padding-left: 0;
  color: var(--board-muted);
  background: none;
  border: 0;
}

@keyframes board-feed-in {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }
}

.board-note {
  flex: none;
  margin: 0;
  font-size: clamp(11px, 1.3vh, 14px);
  color: var(--board-muted);
}

.board-note a {
  margin-left: 8px;
  font-weight: 700;
  color: var(--c-cyan);
}

.board-tip {
  position: fixed;
  z-index: 20;
  padding: 7px 11px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  color: #0a0e17;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  transform: translate(12px, -130%);
}

.board-tip[hidden] {
  display: none;
}

@media (max-width: 900px) {
  .board-legend,
  .board-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .board-axis,
  .br-meta {
    display: none;
  }

  .board-rows {
    min-height: calc(var(--rows, 8) * 84px);
  }

  .board-row-in {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    grid-template-areas:
      "rank team total"
      "rank bar total";
    row-gap: 6px;
    align-content: center;
  }

  .br-rank {
    grid-area: rank;
  }

  .br-team {
    grid-area: team;
  }

  .br-bar {
    grid-area: bar;
  }

  .br-total {
    grid-area: total;
  }

  .br-total b {
    font-size: 28px;
  }
}

@media (max-width: 520px) {
  .board-logo,
  .board-clock,
  .board-btn {
    display: none;
  }

  .board-title h1 {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .board-row,
  .br-seg,
  .jr-thumb,
  .jr-fill {
    transition: none;
  }

  .board-live i,
  .br-delta.is-show,
  .board-feed-list li.is-latest {
    animation: none;
  }

  .br-delta.is-show {
    opacity: 1;
  }
}

/* ==========================================================================
   온보딩 연수 다시 보기
   ========================================================================== */
.site-nav .nav-link,
.header-actions .btn-pill-nav {
  white-space: nowrap;
}

@media (min-width: 769px) and (max-width: 1000px) {
  .site-nav {
    gap: 16px;
  }

  .site-nav .nav-link {
    font-size: 13.5px;
  }
}

.nav-replay-mobile {
  display: none;
}

.replay-gate {
  max-width: 480px;
}

.replay-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.replay-steps li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--c-text-light-muted);
  background: var(--c-dark-surface);
  border: 1px solid var(--c-dark-border);
  border-radius: 14px;
}

.replay-steps b {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  font-size: 12px;
  color: #080914;
  background: var(--c-cyan);
  border-radius: 50%;
}

.replay-steps strong {
  color: #ffffff;
}

.replay-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.replay-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 280px;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
}

.replay-no {
  font-size: 20px;
  font-weight: 800;
  color: var(--c-cyan);
}

.replay-info h2 {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.4;
  color: #ffffff;
  word-break: keep-all;
}

.replay-info p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--c-text-light-muted);
}

.replay-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.replay-pass {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--c-dark-border);
  border-radius: 10px;
}

.replay-pass-label {
  flex: none;
  font-size: 12px;
  color: var(--c-text-light-muted);
}

.replay-code {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  background: none;
  user-select: all;
}

.replay-copy {
  flex: none;
  padding: 5px 12px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  border: 0;
  border-radius: 7px;
}

.replay-copy:hover {
  background: rgba(255, 255, 255, 0.18);
}

.replay-open {
  justify-content: center;
  width: 100%;
  padding: 11px 14px;
  font-size: 14px;
}

.replay-status {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--c-cyan);
}

.replay-status:empty {
  display: none;
}

.replay-note,
.replay-empty {
  margin: 0;
  font-size: 13.5px;
  text-align: center;
  color: var(--c-text-light-muted);
}

.replay-logout {
  align-self: center;
}

@media (max-width: 768px) {
  .header-actions .nav-replay-mobile {
    display: inline-flex;
    margin-right: 8px;
    color: #ffffff !important;
    background: transparent;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  }

  .replay-steps {
    grid-template-columns: 1fr;
  }

  .replay-item {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 14px 10px;
    padding: 18px;
  }

  .replay-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 360px) {
  .nav-replay-prefix {
    display: none;
  }

  .header-actions .btn-pill-nav {
    padding: 6px 10px;
    font-size: 12px;
  }

  .header-actions .nav-replay-mobile {
    margin-right: 6px;
  }
}

/* ==========================================================================
   행사 종료 페이지 (templates/closing.html)
   ========================================================================== */
@font-face {
  font-family: "Paperlogy";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-4Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Paperlogy";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-6SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Paperlogy";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-7Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

/* 제목: 사이트 초기 로고·포스터 제목과 같은 Kaushan Script 워드마크 + 페이퍼로지 한 줄 */
.closing-title {
  margin: 0;
  font-weight: 400;
  word-break: keep-all;
}

.closing-title-script {
  display: block;
  /* 필기체 획이 글자 상자 밖으로 나가도 그라디언트에서 잘리지 않게 칠할 영역만 넓히고, 음수 마진으로 배치는 유지한다 */
  margin: -0.22em -0.2em -0.26em;
  padding: 0.22em 0.2em 0.26em;
  font-family: "Kaushan Script", "Apple Chancery", cursive;
  font-size: clamp(44px, 13.6vw, 136px);
  line-height: 1.1;
  color: #ffffff;
  background: linear-gradient(100deg, #ffffff 0%, #c7d2fe 24%, #f5d0fe 46%, #ffffff 60%, #93c5fd 82%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(131, 56, 236, 0.5)) drop-shadow(0 8px 34px rgba(39, 56, 245, 0.4));
}

.closing-title-part {
  display: inline-block;
}

.closing-title-kr {
  display: block;
  margin-top: 0.4em;
  font-family: "Paperlogy", var(--sans);
  font-weight: 700;
  font-size: clamp(30px, 4.6vw, 60px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.closing-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  font-size: 15px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

.closing-badge-date {
  color: var(--c-cyan);
  font-weight: 700;
}

/* 제목을 뺀 히어로 글씨는 모두 페이퍼로지 — 작은 글씨까지 필기체면 읽기 어렵다 */
.page-closing .hero-content :not(.closing-title, .closing-title *) {
  font-family: "Paperlogy", var(--sans);
  letter-spacing: 0;
}

.page-closing .hero-brand-pretitle {
  font-size: 15px;
  font-weight: 600;
}

.page-closing .partners-kicker {
  font-size: 13px;
}

.page-closing .partners-row-label {
  font-size: 12.5px;
}

.site-nav.is-event-closed {
  margin-left: auto;
}

.page-closing .hero-ref {
  padding-bottom: 44px;
}

/* 페이퍼로지는 폭이 넓어 주최·후원 칩이 한 줄에 들어가도록 줄인다 */
.page-closing .hero-content {
  max-width: 1120px;
}

.page-closing .partners-logo-row {
  gap: 8px;
}

@media (min-width: 769px) {
  .page-closing .partner-logo-item {
    font-size: 12.5px;
    padding: 6px 10px;
  }
}

.page-closing .hero-ref-sub {
  word-break: keep-all;
  color: rgba(255, 255, 255, 0.82);
}

/* 1366×768 같은 낮은 노트북 화면에서도 후원사 줄까지 첫 화면에 들어오게 줄인다 */
@media (min-width: 769px) and (max-height: 820px) {
  .page-closing .hero-ref {
    padding-top: 76px;
    padding-bottom: 28px;
  }

  .closing-title-script {
    font-size: min(13.6vw, 15vh);
  }

  .closing-title-kr {
    font-size: min(4.6vw, 6.6vh);
  }

  .page-closing .hero-brand-stage-wrap {
    margin-bottom: 18px;
  }

  .page-closing .closing-badge {
    margin-bottom: 14px;
  }

  .page-closing .hero-ref-sub {
    margin-bottom: 18px;
  }

  .page-closing .hero-cta-group {
    margin-bottom: 16px;
  }

  .page-closing .hero-partners-bar {
    padding-top: 18px;
  }

  .page-closing .partners-kicker {
    margin-bottom: 10px;
  }
}

@media (max-width: 360px) {
  .page-closing .hero-brand-pretitle {
    font-size: 12.5px;
  }
}
