/* base.css | 색상/글자/간격의 "기준값". 디자인을 바꾸고 싶으면 이 파일의 :root 값만 고치면 됩니다. */
/* 둥근 글꼴(번들, 외부 서비스 없음): 제목=Baloo 2, 본문=Nunito. 한글/일본어/중국어는 기기 글꼴로 자동 대체됩니다 */
@font-face { font-family: 'Baloo 2'; font-weight: 600; font-display: swap; src: url('vendor/baloo-2-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Baloo 2'; font-weight: 700 800; font-display: swap; src: url('vendor/baloo-2-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Nunito'; font-weight: 200 1000; font-display: swap; src: url('vendor/nunito-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* 국기 글꼴: Windows PC 에서도 국기 이모지가 그림으로 보이게 (국기 문자가 나올 때만 내려받음) */
@font-face {
  font-family: 'Twemoji Country Flags';
  unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E007F;
  src: url('vendor/TwemojiCountryFlags.woff2') format('woff2');
  font-display: swap;
}
:root {
  --bg: #fdfbff;
  --surface: #ffffff;
  --surface-2: #f6f1ff;      /* 보조 배경 (연한 라벤더) */
  --text: #2c2f5e;           /* 짙은 남색 글자 */
  --muted: #6b6f93;
  --border: #e9e2f7;

  --primary: #7459d9;        /* 메인 보라 (흰 글씨 대비 5:1) */
  --primary-hover: #5f44c4;
  --primary-soft: #f0eafe;
  --sea: #9a85ea;            /* 포커스/포인트 */
  --sun: #ffd972;            /* 파스텔 옐로 */
  --mint: #d5f3e6;           /* 파스텔 민트 */
  --coral: #ee5f82;          /* 좋아요/강조 (핑크 코랄) */
  --coral-soft: #ffeef2;
  --pink: #ffd6e2;
  --good: #15803d;
  --bad: #c2271d;
  --bad-soft: #fdeceb;
  --warn-soft: #fff4d6;
  --warn: #8a5a00;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 4px 18px rgba(110, 80, 200, 0.09);
  --shadow-lg: 0 16px 44px rgba(110, 80, 200, 0.20);
  --header-h: 64px;
  --nav-h: 64px;
  --maxw: 1120px;

  --font-head: 'Baloo 2', 'Nunito', 'Pretendard', system-ui, -apple-system, 'Segoe UI', 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --font: 'Nunito', 'Pretendard', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic',
    'Noto Sans JP', 'Hiragino Sans', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100dvh; background: var(--bg) radial-gradient(900px 420px at 0% -5%, #f3ebff 0%, transparent 70%), radial-gradient(700px 380px at 100% 0%, #ffeaf1 0%, transparent 70%) no-repeat; color: var(--text);
  font: 16px/1.55 var(--font); -webkit-tap-highlight-color: transparent;
  overflow-wrap: anywhere;
}
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; font-weight: 700; font-family: var(--font-head); letter-spacing: -.01em; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .75em; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1rem 0; width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #c3b6f5; outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.pad { padding: 1.5rem 0; }
.spacer { flex: 1; }
.danger { color: var(--bad) !important; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--primary); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: 0; }
.noscript { padding: 2rem; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* 시작 화면(스플래시): 1080x1920 이미지를 화면 크기에 맞춰 덮음 (가로/세로, 폰/PC 모두) */
.boot-splash { pointer-events: none; position: fixed; inset: 0; z-index: 9999; background: #f6f2ff url('../icons/splash-1080x1920.png') center / cover no-repeat; transition: opacity .35s ease; }
.boot-splash.hide { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .boot-splash { transition: none; } }
