/* ===== 파스텔 색 6가지: html[data-color] =====
   --tint(가장 연함) · --tint-mid · --accent · --accent-deep(작은 강조) · --dot(배경 물방울)
   면 · 틴트 · 체크 · 테이프 · 진행바 · 오늘 테두리 · 꽃가루에만 쓰이고 글자색에는 안 씀.
   pink는 styles.css :root 기본값과 같음 */
html[data-color="pink"] {
  --tint: #FBE7EE; --tint-mid: #F6D3E0; --accent: #F2B8C9; --accent-deep: #E3A6B6;
  --dot: rgba(242, 184, 201, 0.35); --glow: rgba(242, 184, 201, 0.35); --wash: #FFFBFC;
  --shade: rgba(227, 166, 182, 0.10); --shade-2: rgba(227, 166, 182, 0.16);
}
html[data-color="butter"] {
  --tint: #FFF6D6; --tint-mid: #FFEDB3; --accent: #F5DC8C; --accent-deep: #E2C462;
  --dot: rgba(245, 220, 140, 0.45); --glow: rgba(245, 220, 140, 0.40); --wash: #FFFDF5;
  --shade: rgba(226, 196, 98, 0.10); --shade-2: rgba(226, 196, 98, 0.16);
}
html[data-color="mint"] {
  --tint: #EAF6E4; --tint-mid: #D6EECB; --accent: #BCE2A9; --accent-deep: #9CCF86;
  --dot: rgba(188, 226, 169, 0.40); --glow: rgba(188, 226, 169, 0.38); --wash: #FAFDF8;
  --shade: rgba(156, 207, 134, 0.10); --shade-2: rgba(156, 207, 134, 0.16);
}
html[data-color="sky"] {
  --tint: #E6F2FB; --tint-mid: #CFE6F7; --accent: #ACD4F0; --accent-deep: #8CC0E5;
  --dot: rgba(172, 212, 240, 0.40); --glow: rgba(172, 212, 240, 0.38); --wash: #F9FCFE;
  --shade: rgba(140, 192, 229, 0.10); --shade-2: rgba(140, 192, 229, 0.16);
}
html[data-color="gray"] {
  --tint: #F2F2F4; --tint-mid: #E5E5E9; --accent: #CFCFD7; --accent-deep: #B3B3BD;
  --dot: rgba(207, 207, 215, 0.45); --glow: rgba(207, 207, 215, 0.40); --wash: #FBFBFC;
  --shade: rgba(179, 179, 189, 0.10); --shade-2: rgba(179, 179, 189, 0.16);
}
html[data-color="lavender"] {
  --tint: #F1EBF9; --tint-mid: #E3D8F4; --accent: #CBB8EC; --accent-deep: #B39AE0;
  --dot: rgba(203, 184, 236, 0.38); --glow: rgba(203, 184, 236, 0.35); --wash: #FCFAFE;
  --shade: rgba(179, 154, 224, 0.10); --shade-2: rgba(179, 154, 224, 0.16);
}

/* ===== 시즌: html[data-season]. 켜지면 위 색 팔레트를 덮어쓰고 장식이 추가됨 =====
   (색 규칙보다 뒤에 있어야 이김) */

/* 할로윈: 연보라 한 단계 진하게 + 보조 주황 (테이프 · 체크 · 오늘 테두리에 번갈아) */
html[data-season="halloween"] {
  --bg: #FBF6FD;
  --surface: #FFFFFF;
  --tint: #F3E6F7;
  --tint-mid: #E6CFF0;
  --accent: #C89BE0;
  --accent-deep: #A873CF;
  --accent-2: #FFB36B;
  --line: #EEE4F1;
  --wash: #FDFAFE;
  --glow: rgba(200, 155, 224, 0.35);
  --shade: rgba(168, 115, 207, 0.10);
  --shade-2: rgba(168, 115, 207, 0.18);
  --dot: rgba(200, 155, 224, 0.38);
  --ph-line: #C89BE0;
  --tape-1: #E6CFF0;
  --tape-2: #FFB36B;
  --tape-3: #C89BE0;
  --spark-1: #FFB36B;
  --spark-2: #C89BE0;
  --confetti-1: #C89BE0;
  --confetti-2: #FFB36B;
  --confetti-3: #E6CFF0;
}
html[data-season="halloween"] .goal:nth-child(2n) .chk-dot { border-color: var(--accent-2); }
html[data-season="halloween"] .goal.done:nth-child(2n) .chk-dot { background: var(--accent-2); border-color: var(--accent-2); }
html[data-season="halloween"] .mission .chk-dot { border-color: var(--accent-2); }
html[data-season="halloween"] .mission.done .chk-dot { background: var(--accent-2); border-color: var(--accent-2); }
html[data-season="halloween"] .day.today .door,
html[data-season="halloween"] .day.today .inside { animation: glow 2.8s ease-in-out infinite, ring-h 5.6s steps(1) infinite; }
@keyframes ring-h { 0% { border-color: #A873CF; } 50% { border-color: #FFB36B; } }

/* 크리스마스: 연한 레드 한 단계 진하게 + 세이지 · 골드 (테이프 · 체크 · 진행바에 번갈아) */
html[data-season="christmas"] {
  --bg: #FFF7F5;
  --surface: #FFFFFF;
  --tint: #FDE8EA;
  --tint-mid: #F8CDD2;
  --accent: #EE9AA5;
  --accent-deep: #D9707F;
  --accent-2: #8FBF9F;
  --accent-3: #E8C170;
  --line: #F0E6E4;
  --wash: #FFFBFB;
  --glow: rgba(238, 154, 165, 0.32);
  --shade: rgba(217, 112, 127, 0.10);
  --shade-2: rgba(217, 112, 127, 0.16);
  --dot: rgba(143, 191, 159, 0.32);
  --sun: #B8586A;
  --mark: #8FBF9F;
  --note-bg: #FDE8EA;
  --ph-line: #EE9AA5;
  --tape-1: #F8CDD2;
  --tape-2: #8FBF9F;
  --tape-3: #E8C170;
  --spark-1: #E8C170;
  --spark-2: #8FBF9F;
  --confetti-1: #EE9AA5;
  --confetti-2: #8FBF9F;
  --confetti-3: #E8C170;
}
html[data-season="christmas"] .day.alt:not(.locked) .door { background: #EAF4EE; }
html[data-season="christmas"] .goal:nth-child(2n) .chk-dot { border-color: var(--accent-3); }
html[data-season="christmas"] .goal.done:nth-child(2n) .chk-dot { background: var(--accent-3); border-color: var(--accent-3); }
html[data-season="christmas"] .mission.done .chk-dot { background: var(--accent-3); border-color: var(--accent-3); }
html[data-season="christmas"] .bar span {
  background: repeating-linear-gradient(90deg, #EE9AA5 0 14px, #8FBF9F 14px 28px, #E8C170 28px 42px);
}

/* 시즌 떨어지는 그림이 지나가도 헤더 · 디데이 글자가 읽히게 */
html:not([data-season="none"]) .hero,
html:not([data-season="none"]) .brand { text-shadow: 0 0 4px var(--bg), 0 0 10px var(--bg), 0 0 16px var(--bg); }
