/**
 * =============================================
 *  포토부스 스타일시트
 *  다크 테마 / 키오스크 최적화 (1920x1080)
 * =============================================
 */

/* ── Google Fonts ─────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700;900&display=swap');

/* ── CSS 변수 (브랜드 컬러) ───────────────── */
:root {
  --brand-color: #667eea;
  --brand-color-2: #764ba2;
  --brand-gradient: linear-gradient(135deg, var(--brand-color), var(--brand-color-2));
  --bg-dark: #0a0a0f;
  --bg-card: rgba(255, 255, 255, 0.04);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.65);
  --text-muted: rgba(255, 255, 255, 0.35);
  --border: rgba(255, 255, 255, 0.1);
  --shadow-glow: 0 0 60px rgba(102, 126, 234, 0.3);
  --radius-video: 20px;
  --radius-btn: 50px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── 리셋 & 기본 ──────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: var(--bg-dark);
  font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', -apple-system, sans-serif;
  color: var(--text-primary);
  user-select: none;
  -webkit-user-select: none;
}

/* ── 앱 컨테이너 ──────────────────────────── */
#app {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

/* ── 배경 그라데이션 레이어 ───────────────── */
#app::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(102, 126, 234, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 110%, rgba(118, 75, 162, 0.15) 0%, transparent 50%),
    linear-gradient(180deg, #0a0a0f 0%, #0d0d18 50%, #0a0a0f 100%);
  pointer-events: none;
  z-index: 0;
}

/* ── 화면 (Screen) 공통 ───────────────────── */
.screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  z-index: 1;
}

.screen.active {
  opacity: 1;
  visibility: visible;
}

.screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

/* ── 브랜드 로고 (공통 헤더) ─────────────── */
.brand-header {
  position: absolute;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.brand-logo {
  height: 56px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 12px rgba(102, 126, 234, 0.4));
}

.brand-logo-placeholder {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo-icon {
  width: 48px;
  height: 48px;
  background: var(--brand-gradient);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.5);
}

.brand-name {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
}

/* ════════════════════════════════════════════
   ① 대기 화면 (Idle)
   ════════════════════════════════════════════ */
#screen-idle {
  gap: 0;
}

.idle-layout {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 60px 40px;
  gap: 32px;
}

/* 비디오 컨테이너 */
.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 960px;
  flex: 1;
  min-height: 0;
}

.video-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-video);
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px var(--border),
    var(--shadow-glow);
}

#video-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scaleX(-1); /* 거울 모드 */
  background: #0a0a0f;
}

/* 비디오 프레임 장식 */
.video-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-video);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.06) 0%,
    transparent 40%,
    transparent 60%,
    rgba(255, 255, 255, 0.03) 100%
  );
  pointer-events: none;
  z-index: 2;
}

/* 코너 장식 */
.video-corners {
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius-video) + 1px);
  pointer-events: none;
  z-index: 3;
}

.video-corners::before,
.video-corners::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  border-color: var(--brand-color);
  border-style: solid;
  opacity: 0.7;
}

.video-corners::before {
  top: 16px;
  left: 16px;
  border-width: 3px 0 0 3px;
  border-radius: 6px 0 0 0;
}

.video-corners::after {
  bottom: 16px;
  right: 16px;
  border-width: 0 3px 3px 0;
  border-radius: 0 0 6px 0;
}

.video-corner-tr,
.video-corner-bl {
  position: absolute;
  width: 40px;
  height: 40px;
  border-color: var(--brand-color);
  border-style: solid;
  opacity: 0.7;
}

.video-corner-tr {
  top: 16px;
  right: 16px;
  border-width: 3px 3px 0 0;
  border-radius: 0 6px 0 0;
}

.video-corner-bl {
  bottom: 16px;
  left: 16px;
  border-width: 0 0 3px 3px;
  border-radius: 0 0 0 6px;
}

/* 카메라 없음 오버레이 */
.no-camera-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-radius: var(--radius-video);
  z-index: 10;
}

.no-camera-overlay.hidden { display: none; }

.no-camera-icon {
  font-size: 64px;
  opacity: 0.5;
}

.no-camera-text {
  font-size: 1.2rem;
  color: var(--text-secondary);
  text-align: center;
}

/* 하단 영역 */
.idle-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 480px;
}

.idle-hint {
  font-size: 1rem;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  text-align: center;
}

/* ── 촬영 시작 버튼 ───────────────────────── */
.btn-start {
  width: 100%;
  max-width: 400px;
  padding: 22px 48px;
  background: var(--brand-gradient);
  color: #fff;
  border: none;
  border-radius: var(--radius-btn);
  font-size: 1.5rem;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: var(--transition);
  box-shadow:
    0 8px 32px rgba(102, 126, 234, 0.45),
    0 2px 8px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-start::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-start:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 16px 48px rgba(102, 126, 234, 0.6),
    0 4px 16px rgba(0, 0, 0, 0.4);
}

.btn-start:hover::before { opacity: 1; }

.btn-start:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

/* 버튼 펄스 애니메이션 */
@keyframes btnPulse {
  0%, 100% { box-shadow: 0 8px 32px rgba(102, 126, 234, 0.45), 0 2px 8px rgba(0,0,0,0.3); }
  50% { box-shadow: 0 8px 48px rgba(102, 126, 234, 0.7), 0 2px 8px rgba(0,0,0,0.3); }
}

.btn-start {
  animation: btnPulse 3s ease-in-out infinite;
}

.btn-start:hover { animation: none; }

/* ════════════════════════════════════════════
   ② 카운트다운 (Countdown)
   ════════════════════════════════════════════ */
#screen-countdown {
  background: transparent;
}

.countdown-layout {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 카운트다운 중 비디오 프리뷰 (배경) */
.countdown-video-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 60px 40px;
}

.countdown-video-bg .video-wrapper {
  max-width: 960px;
}

/* 카운트다운 오버레이 */
.countdown-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  z-index: 5;
}

.countdown-number {
  font-size: 22vw;
  font-weight: 900;
  line-height: 1;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 40px rgba(102, 126, 234, 0.8));
  text-shadow: none;
}

@keyframes countPulse {
  0% { transform: scale(0.5); opacity: 0; }
  40% { transform: scale(1.1); opacity: 1; }
  70% { transform: scale(0.95); }
  85% { transform: scale(1.02); }
  100% { transform: scale(1); opacity: 1; }
}

.countdown-number.animate {
  animation: countPulse 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes countFadeOut {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.4); }
}

.countdown-number.fade-out {
  animation: countFadeOut 0.3s ease forwards;
}

.countdown-label {
  font-size: 1.4rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.3em;
  margin-top: 20px;
  text-transform: uppercase;
}

/* ════════════════════════════════════════════
   ③ 녹화 중 (Recording)
   ════════════════════════════════════════════ */
#screen-recording {
  background: transparent;
}

.recording-layout {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 60px 40px;
  gap: 24px;
}

/* REC 표시 */
.rec-badge {
  position: absolute;
  top: 36px;
  left: 60px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 50, 50, 0.4);
  border-radius: 100px;
  z-index: 20;
}

.rec-dot {
  width: 12px;
  height: 12px;
  background: #ff3b30;
  border-radius: 50%;
  box-shadow: 0 0 8px #ff3b30;
}

@keyframes recBlink {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px #ff3b30; }
  50% { opacity: 0.2; box-shadow: 0 0 2px #ff3b30; }
}

.rec-dot { animation: recBlink 1s ease-in-out infinite; }

.rec-text {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ff3b30;
  letter-spacing: 0.25em;
}

/* 녹화 중 비디오 */
.recording-video-wrapper {
  width: 100%;
  max-width: 960px;
  flex: 1;
  min-height: 0;
  position: relative;
}

/* 남은 시간 표시 */
.recording-timer {
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,0.8);
  z-index: 10;
  font-variant-numeric: tabular-nums;
}

/* 프로그레스 바 */
.progress-container {
  width: 100%;
  max-width: 960px;
  padding: 0;
}

.progress-bar-wrapper {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-color), #ff6b6b);
  border-radius: 100px;
  transition: width 0.1s linear;
  position: relative;
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
  margin-right: -8px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.progress-label span {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ════════════════════════════════════════════
   ④ 처리 중 (Processing)
   ════════════════════════════════════════════ */
#screen-processing {
  gap: 40px;
}

.processing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 60px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  backdrop-filter: blur(20px);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* 로딩 스피너 */
.spinner-container {
  position: relative;
  width: 100px;
  height: 100px;
}

.spinner-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
}

.spinner-ring:nth-child(1) {
  border-top-color: var(--brand-color);
  animation: spin 1s linear infinite;
}

.spinner-ring:nth-child(2) {
  inset: 10px;
  border-right-color: var(--brand-color-2);
  animation: spin 1.4s linear infinite reverse;
}

.spinner-ring:nth-child(3) {
  inset: 22px;
  border-bottom-color: rgba(102, 126, 234, 0.6);
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.processing-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

.processing-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.6;
}

/* 처리 단계 표시 */
.processing-steps {
  display: flex;
  gap: 40px;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.35;
  transition: opacity 0.4s;
}

.process-step.active { opacity: 1; }
.process-step.done { opacity: 0.7; }

.step-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: var(--transition);
}

.process-step.active .step-icon {
  background: var(--brand-gradient);
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.5);
}

.process-step.done .step-icon {
  background: rgba(52, 199, 89, 0.2);
  border-color: rgba(52, 199, 89, 0.4);
}

.step-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* ════════════════════════════════════════════
   ⑤ QR 코드 화면 (Complete)
   ════════════════════════════════════════════ */
#screen-complete {
  gap: 0;
}

.complete-layout {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 60px 40px;
  gap: 32px;
}

.complete-title {
  font-size: 2.8rem;
  font-weight: 900;
  text-align: center;
  line-height: 1.2;
}

.complete-title span {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.complete-content {
  display: flex;
  align-items: center;
  gap: 60px;
  flex: 1;
  min-height: 0;
}

/* QR 코드 카드 */
.qr-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 28px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  position: relative;
}

.qr-card::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 27px;
  background: var(--brand-gradient);
  z-index: -1;
  opacity: 0.6;
}

#qr-image {
  width: 280px;
  height: 280px;
  display: block;
  border-radius: 8px;
}

.qr-hint {
  font-size: 0.8rem;
  color: #555;
  text-align: center;
  font-weight: 500;
}

/* 설명 영역 */
.complete-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 460px;
  min-width: 340px;
}

/* ★ QR 화면 영상 미리보기 */
.complete-video-wrap {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 8px 40px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.08);
  position: relative;
}

.complete-video-wrap video {
  width: 100%;
  display: block;
  max-height: 220px;
  object-fit: cover;
  border-radius: 16px;
}

.complete-video-label {
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  padding: 8px 0 4px;
  letter-spacing: 0.05em;
}

.scan-instruction {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.instruction-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.instruction-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.instruction-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* 자동 리셋 카운트다운 */
.auto-reset-container {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 100px;
}

.auto-reset-icon { font-size: 1rem; }

.auto-reset-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.auto-reset-count {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-color);
  font-variant-numeric: tabular-nums;
  min-width: 2ch;
  text-align: right;
}

/* 처음으로 버튼 */
.btn-reset {
  padding: 14px 36px;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.05em;
}

.btn-reset:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

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

/* ── 에러 토스트 ───────────────────────────── */
.error-toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: rgba(255, 59, 48, 0.15);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 59, 48, 0.4);
  border-radius: 16px;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 9999;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 80vw;
}

.error-toast.show {
  transform: translateX(-50%) translateY(0);
}

.error-toast-icon { font-size: 1.2rem; }
.error-toast-text {
  font-size: 1rem;
  color: #ff6b6b;
  font-weight: 500;
}

/* ── 파티클 배경 효과 ──────────────────────── */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: floatUp var(--duration) ease-in forwards;
}

@keyframes floatUp {
  0% { transform: translateY(0) scale(0); opacity: 0; }
  10% { opacity: 0.6; transform: scale(1); }
  90% { opacity: 0.2; }
  100% { transform: translateY(-100vh) scale(0.5); opacity: 0; }
}

/* ── QR 스캔 애니메이션 ────────────────────── */
@keyframes qrScanLine {
  0% { top: 0; }
  100% { top: 100%; }
}

.qr-scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-color), transparent);
  animation: qrScanLine 2s ease-in-out infinite alternate;
  opacity: 0.7;
}

/* ── 완료 체크 애니메이션 ─────────────────── */
@keyframes checkmarkDraw {
  0% { stroke-dashoffset: 100; }
  100% { stroke-dashoffset: 0; }
}

/* ════════════════════════════════════════════
   세로 모니터 대응 (Portrait)
   ════════════════════════════════════════════ */
@media (orientation: portrait) {
  .idle-layout {
    padding: 90px 30px 30px;
    gap: 20px;
  }

  .video-wrapper { max-width: 100%; }

  .btn-start {
    font-size: 1.3rem;
    padding: 18px 40px;
  }

  .complete-content {
    flex-direction: column;
    gap: 30px;
  }

  .complete-title {
    font-size: 2rem;
  }

  #qr-image {
    width: 220px;
    height: 220px;
  }

  .processing-steps { gap: 20px; }
  .processing-card { padding: 40px; }
}

/* ════════════════════════════════════════════
   소형 화면 대응
   ════════════════════════════════════════════ */
@media (max-width: 1280px) {
  .complete-content { gap: 40px; }
  .complete-title { font-size: 2.2rem; }
  #qr-image { width: 240px; height: 240px; }
}

/* ── 터치 피드백 ───────────────────────────── */
@media (hover: none) {
  .btn-start:hover {
    transform: none;
    animation: btnPulse 3s ease-in-out infinite;
  }

  .btn-start:active {
    transform: scale(0.96);
  }
}

/* ── 로딩 화면 (초기) ──────────────────────── */
.init-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  gap: 24px;
  transition: opacity 0.5s ease;
}

.init-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.init-spinner {
  width: 56px;
  height: 56px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--brand-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.init-text {
  font-size: 1rem;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
}

/* ── 반짝임 효과 (complete) ────────────────── */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.shimmer-text {
  background: linear-gradient(
    90deg,
    var(--brand-color) 0%,
    #fff 40%,
    var(--brand-color-2) 60%,
    var(--brand-color) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}
