/* 앱(exhibition_v2) 시안과 같은 팔레트: 검정 바탕 + 라벤더 */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");

:root {
  --black: #000;
  --lavender: #c8a7fc;
  --paper: #f2f2f2;
  --muted: #a9a9b2;
  --line: #2a2a30;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--paper);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  line-height: 1.6;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

/* 화면 가운데에 제목과 버튼만 놓는다. */
.stage {
  width: 100%;
  max-width: 520px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.title {
  margin: 0 0 32px;
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

/* 알약 버튼 (앱의 "시작하기 →"와 같은 모양) */
.pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 64px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--lavender);
  color: var(--black);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.pill svg {
  width: 24px;
  height: 24px;
  flex: none;
}

.pill:hover {
  background: #d6bcff;
}

.pill:active {
  transform: scale(0.98);
}

.pill:focus-visible {
  outline: 3px solid var(--paper);
  outline-offset: 4px;
}

/* ---------- download ---------- */
.status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 20px;
  font-size: 16px;
  font-weight: 500;
}

.spinner {
  flex: none;
  width: 20px;
  height: 20px;
  border: 3px solid var(--line);
  border-top-color: var(--lavender);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.status.done .spinner {
  border-color: var(--lavender);
  background: var(--lavender);
  animation: none;
}

.note {
  margin: 14px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

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