/* DayO 크리스마스 장식
   - 2026-11-24 주인님 결정(다른 채팅): 헤더 아래 꼬마전구 · '대화 시작' 버튼 반짝임 · 메인 맨 위 띠 배너. 눈 내리는 효과는 뺌(속도).
   - 2026-11-24 주인님 추가 결정: 전구에 빨강 추가, 카드 위에 눈 쌓인 모양(움직임 없는 그림이라 가벼움).
   - html.dayo-holiday 일 때만 보임. 켜고 끄기는 holiday-decor.js가 날짜로 정함(한국 시간). */

/* 꼬마전구 줄 — 빨강·버터·초록 전구, 버터 전구만 반짝임 */
.dayo-holiday-garland {
  position: fixed; left: 0; right: 0; top: var(--dayo-holiday-top, 76px);
  /* 본문(.page, z-index 2) 바로 위, 화면 UI(헤더 220 · 모바일 메뉴 250 · 계정 메뉴 · 창)보다 아래.
     2026-11-25: 221이라 로그인 계정 메뉴 첫 줄을 전구가 가렸음 → 3으로 낮춤. */
  height: 26px; pointer-events: none; z-index: var(--dayo-holiday-z, 3);
}
.dayo-holiday-garland::before,
.dayo-holiday-garland::after {
  content: ""; position: absolute; inset: 0;
  background-repeat: repeat-x; background-size: 120px 26px;
}
.dayo-holiday-garland::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='26'%3E%3Cpath d='M0 1 Q30 15 60 1 Q90 15 120 1' fill='none' stroke='%235F7D63' stroke-width='1.6'/%3E%3Crect x='13' y='5' width='4' height='3.4' rx='.8' fill='%235F7D63'/%3E%3Cellipse cx='15' cy='13.5' rx='4.4' ry='5.8' fill='%23D64545' stroke='%23A83232' stroke-width='.9'/%3E%3Cellipse cx='13.6' cy='11.6' rx='1.2' ry='1.8' fill='%23FFFFFF' opacity='.7'/%3E%3Crect x='103' y='5' width='4' height='3.4' rx='.8' fill='%235F7D63'/%3E%3Cellipse cx='105' cy='13.5' rx='4.4' ry='5.8' fill='%2381A886' stroke='%234B6650' stroke-width='.9'/%3E%3Cellipse cx='103.6' cy='11.6' rx='1.2' ry='1.8' fill='%23FFFFFF' opacity='.7'/%3E%3C/svg%3E");
}
.dayo-holiday-garland::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='26'%3E%3Crect x='43' y='7' width='4' height='3.4' rx='.8' fill='%235F7D63'/%3E%3Cellipse cx='45' cy='15.5' rx='4.4' ry='5.8' fill='%23FFE08A' stroke='%23D9B451' stroke-width='.9'/%3E%3Cellipse cx='43.6' cy='13.6' rx='1.2' ry='1.8' fill='%23FFFBF4' opacity='.85'/%3E%3Crect x='73' y='7' width='4' height='3.4' rx='.8' fill='%235F7D63'/%3E%3Cellipse cx='75' cy='15.5' rx='4.4' ry='5.8' fill='%23D64545' stroke='%23A83232' stroke-width='.9'/%3E%3Cellipse cx='73.6' cy='13.6' rx='1.2' ry='1.8' fill='%23FFFFFF' opacity='.7'/%3E%3C/svg%3E");
  animation: dayo-holiday-twinkle 2.4s ease-in-out infinite;
}
@keyframes dayo-holiday-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* 버튼 반짝임 — 누르거나 마우스를 올리면 작은 별이 톡 튐 (버튼 자체는 그대로) */
.dayo-holiday-sparkles { position: fixed; inset: 0; pointer-events: none; z-index: 2147483000; overflow: hidden; }
.dayo-holiday-sparkle {
  position: absolute; width: 0; height: 0; font-size: 17px; line-height: 0;
  color: #F2CB4C; text-shadow: 0 0 6px #FFEAA7;
  animation: dayo-holiday-pop .7s ease-out forwards;
}
.dayo-holiday-sparkle.is-sage { color: #5F7D63; text-shadow: none; font-size: 12px; }
.dayo-holiday-sparkle.is-red { color: #D64545; text-shadow: none; font-size: 12px; }
@keyframes dayo-holiday-pop {
  0% { transform: translate(0, 0) scale(.4); opacity: 0; }
  25% { opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(1); opacity: 0; }
}

/* 메인 맨 위 띠 배너 (누르면 기존 예약 창) */
.dayo-holiday-banner {
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 4px 10px;
  width: 100%; box-sizing: border-box; margin: 0; padding: 30px 16px 10px;
  border: 0; border-bottom: 1px solid #F1E3A6; background: #FFF4CC;
  color: #40362F; font: 700 14px/1.4 inherit; font-family: inherit;
  text-align: center; cursor: pointer;
}
.dayo-holiday-banner:hover .dayo-holiday-banner__cta { text-decoration: underline; }
.dayo-holiday-banner__cta { color: #5F7D63; font-weight: 800; white-space: nowrap; }
.dayo-holiday-banner:focus-visible { outline: 2px solid #5F7D63; outline-offset: -3px; }
@media (max-width: 767px) {
  .dayo-holiday-banner { font-size: 13px; padding: 30px 12px 9px; }
}

/* 카드 위에 소복이 쌓인 눈 (움직임 없음) */
html.dayo-holiday .hv2-worry,
html.dayo-holiday .lv-partner,
html.dayo-holiday .tt-magazine .ttm-card { position: relative; }
html.dayo-holiday .hv2-worry::before,
html.dayo-holiday .hv2-chip::before,
html.dayo-holiday .lv-partner::before,
html.dayo-holiday .tt-magazine .ttm-card::before {
  content: ""; position: absolute; left: 10px; right: 10px; top: -10px; height: 18px; z-index: 1; pointer-events: none;
  background:
    radial-gradient(circle at 50% 80%, #FFFFFF 0 8px, transparent 8.6px) 0 0 / 19px 18px repeat-x,
    radial-gradient(circle at 50% 90%, #FFFFFF 0 6px, transparent 6.6px) 9px 3px / 19px 16px repeat-x,
    linear-gradient(#FFFFFF, #FFFFFF) 0 12px / 100% 6px no-repeat;
  border-radius: 8px 8px 4px 4px;
  filter: drop-shadow(0 1px 2px rgba(64, 54, 47, .22));
}
html.dayo-holiday body[data-customer-page="landing"] .lv-partner-list,
html.dayo-holiday .tt-magazine .ttm-track { padding-top: 14px; }

@media (prefers-reduced-motion: reduce) {
  .dayo-holiday-garland::after { animation: none; }
  .dayo-holiday-sparkles { display: none; }
}
