/* ===== 크리스마스 테마 · 클래식 카드 =====
   <html class="s-xmas"> 일 때만 적용돼요. 언제 적용할지는 season.js 에서 정해요.
   크림색 카드 종이 + 짙은 초록 · 와인 레드 · 금색, 눈 · 꼬마전구 (season-xmas.js) */
.s-xmas {
  --ink: #1c211b;
  --accent: #b3121f;
  --paper: #f7f1e5;
  --card: #fffdf8;
  --line: #ebe1cf;
  --muted: #7a6f60;
  --x-green: #1d5b3a;
  --x-gold: #c9a227;
  --x-wire: #143f29;
}
.s-xmas body {
  background-color: var(--paper);
  background-image: radial-gradient(circle at 1px 1px, rgba(201, 162, 39, .28) 1px, transparent 1.6px);
  background-size: 22px 22px;
}
/* 맨 위 리본 띠 */
.s-xmas body::before {
  inset: 0 0 auto 0; height: 8px; opacity: 1;
  background: repeating-linear-gradient(90deg, var(--accent) 0 28px, var(--x-gold) 28px 34px, var(--x-green) 34px 62px, var(--x-gold) 62px 68px);
}
.s-xmas .logo::after { content: "🎄"; font-size: 14px; margin-left: 2px; }
.s-xmas .logo-mark i { background: var(--x-green); }
.s-xmas .logo-mark i:nth-child(2) { background: var(--accent); }
.s-xmas .logo-mark i:nth-child(3) { background: var(--x-gold); }
.xmas-snow { position: fixed; inset: 0; z-index: 3; pointer-events: none; }
.admin .xmas-snow { z-index: 0; }

/* ---------- 편성표 ---------- */
.s-xmas .hero-main { padding-top: 56px; }
.s-xmas .hero-nav { margin-top: 64px; }
.s-xmas .hero-art > .ghost {
  font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 400;
  text-transform: none; color: rgba(201, 162, 39, .2); opacity: 1;
}
.s-xmas .month-en {
  font-family: Georgia, "Times New Roman", "Batang", serif; font-style: italic; font-weight: 700;
  text-transform: none; letter-spacing: -.035em; color: var(--accent);
}
.s-xmas .year { font-family: var(--display); font-style: normal; font-size: .28em; letter-spacing: .14em; color: var(--x-green); }
.s-xmas .ko { color: var(--x-green); }
.s-xmas .hero-side .ko::after {
  content: "✦ MERRY CHRISTMAS ✦"; display: block; margin-top: 8px;
  font-family: var(--display); font-size: 12px; letter-spacing: .2em; color: var(--x-gold);
}

.s-xmas .btn-arrow { background: var(--x-green); }
.s-xmas .btn-arrow:hover:not(:disabled) { background: var(--accent); }
.s-xmas .btn-today { color: var(--x-green); }
.s-xmas .big-arrow { color: var(--accent); }

.s-xmas .pf { background: var(--card); color: var(--x-green); box-shadow: inset 0 0 0 1.5px var(--x-green); }
.s-xmas .pf:hover { background: #f3ead6; }
.s-xmas .pf[aria-pressed="true"] { background: var(--x-green); color: #fff; }
.s-xmas .notice { background: var(--card); box-shadow: inset 0 0 0 1.5px var(--x-green); }

/* 캘린더: 금색 테두리, 위에 꼬마전구가 걸리도록 */
.s-xmas .calendar {
  --cal-r: 26px; position: relative; overflow: visible; margin-top: 20px; border-radius: var(--cal-r);
  background: var(--card); border: 2px solid var(--x-green);
  box-shadow: 0 0 0 5px var(--card), 0 0 0 7px var(--x-gold), 0 22px 44px rgba(60, 40, 10, .14);
}
.s-xmas .calendar > .weekdays { border-radius: calc(var(--cal-r) - 3px) calc(var(--cal-r) - 3px) 0 0; }
.s-xmas .calendar > .grid { border-radius: 0 0 calc(var(--cal-r) - 3px) calc(var(--cal-r) - 3px); overflow: hidden; }
.s-xmas .weekdays { background: var(--x-green); color: #f3e3a6; }
.s-xmas .weekdays div:first-child { color: #ffb3a8; }
.s-xmas .day:hover { background: #faf2e1; }
.s-xmas .day.sun:not(.today) .num { color: var(--accent); }
.s-xmas .day.today { background: var(--accent); }
.s-xmas .day.today:hover { background: #8f0e19; }
.s-xmas .day[data-key$="-12-25"]:not(.other):not(.today) { background: repeating-linear-gradient(135deg, #fffdf8 0 10px, #fbefe9 10px 20px); }
.s-xmas .day[data-key$="-12-25"]:not(.other):not(.today) .num { color: var(--accent); }
/* 24·25일 선물 */
.s-xmas .day[data-key$="-12-24"]:not(.other) .num::before,
.s-xmas .day[data-key$="-12-25"]:not(.other) .num::before { content: "🎁"; font-size: 13px; margin-right: 3px; vertical-align: 3px; }
.s-xmas .day[data-key$="-12-24"]:not(.other) .num,
.s-xmas .day[data-key$="-12-25"]:not(.other) .num { white-space: nowrap; }

/* 꼬마전구 */
.xmas-lights {
  position: absolute; left: 18px; right: 18px; top: -10px; height: 26px; z-index: 2;
  display: flex; justify-content: space-between; pointer-events: none;
}
.xmas-lights::before {
  content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 10px;
  border-bottom: 2px solid var(--x-wire); border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
.xmas-lights i {
  position: relative; top: 12px; width: 9px; height: 14px; border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  background: var(--b); box-shadow: 0 0 10px 2px var(--b);
  animation: xmas-twinkle 1.6s ease-in-out infinite; animation-delay: var(--d);
}
.xmas-lights i::before { content: ""; position: absolute; top: -4px; left: 2px; width: 5px; height: 5px; background: var(--x-wire); border-radius: 1px; }
@keyframes xmas-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .35; box-shadow: none; } }

.s-xmas dialog { border-color: var(--x-green); background: var(--card); }
.s-xmas .dlg-head { background: var(--x-green); }
.s-xmas .dlg-head::after { content: "✦"; position: absolute; right: 74px; top: 10px; font-size: 56px; color: rgba(243, 227, 166, .25); }
.s-xmas .report-fab { background: var(--accent); box-shadow: 0 10px 28px rgba(179, 18, 31, .3); }
.s-xmas .report-fab:hover { background: var(--x-green); }
.s-xmas .report-fab::before { content: "🎅"; font-size: 18px; margin-right: -2px; }
.s-xmas .report-fab svg { display: none; }
.s-xmas .memo-tape { background: repeating-linear-gradient(90deg, var(--accent) 0 12px, var(--x-gold) 12px 16px, var(--x-green) 16px 28px, var(--x-gold) 28px 32px); }

/* ---------- 관리자 ---------- */
.s-xmas .page-title { font-family: Georgia, "Times New Roman", serif; font-style: italic; text-transform: none; letter-spacing: -.035em; color: var(--x-green); }
.s-xmas .page-title span { color: var(--accent); }
.s-xmas .page-title::after { content: "✦ MERRY CHRISTMAS ✦"; display: block; margin-top: 14px; font-family: var(--display); font-style: normal; font-size: 12px; letter-spacing: .2em; color: var(--x-gold); }
.s-xmas .tab { background: var(--card); color: var(--x-green); box-shadow: inset 0 0 0 1.5px var(--x-green); }
.s-xmas .tab[aria-selected="true"] { background: var(--x-green); color: #fff; }
.s-xmas .card { background: var(--card); border-color: var(--x-green); }
.s-xmas .list-card { box-shadow: 0 0 0 5px var(--card), 0 0 0 7px var(--x-gold), 0 22px 44px rgba(60, 40, 10, .12); }

@media (max-width: 720px) {
  .s-xmas .calendar { --cal-r: 20px; }
  .s-xmas .hero-main { padding-top: 32px; }
  .s-xmas .hero-nav { margin-top: 40px; }
  .xmas-lights { left: 10px; right: 10px; }
  .xmas-lights i:nth-child(even) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .xmas-lights i { animation: none; }
  .xmas-snow { display: none; }
}
