/* =========================================================
   🎄 크리스마스 시즌 테마 (season.css)
   - 이 파일과 images/ 폴더만 고치면 됩니다.
   - 확정되면 이 파일 + season.js + images/ 를 그대로 실서버에 적용합니다.
   - 모든 규칙은 body.season-christmas 아래에서만 동작합니다 (season.js 가 body 에 이 클래스를 붙임).
     메인 화면 전용 규칙은 body.season-christmas.xm-page-main 아래.
   - 이미지는 반드시 images/파일명 으로 참조 (상대경로)
   - 장식은 전부 pointer-events:none (아래 버튼 클릭을 막지 않음)
   ========================================================= */

body.season-christmas {
  --xm-night: #001735;   /* 페이지 바탕 (배경 그림 맨 아래 색과 같음) */
  --xm-head:  #061a3a;   /* 스크롤했을 때 헤더 단색 */
  --xm-red:   #d8303c;
  --xm-green: #1f8a4c;
  --xm-gold:  #f6c453;
  /* 눈 쌓임 띠 (300×30 무늬를 가로로 이어 붙임. 흰 눈 + 아래 옅은 그림자) */
  --xm-cap: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 30' preserveAspectRatio='none'%3E%3Cpath fill='%23c9dcf2' d='M0,6 C30,2 60,3 90,5 C130,8 170,2 210,4 C245,6 275,3 300,6 L300,15 C292,15 289,23 280,23 C270,23 270,15 258,15 C245,15 246,28 232,28 C219,28 220,15 205,15 C192,15 192,21 181,21 C170,21 170,14 156,14 C141,14 143,26 128,26 C114,26 116,15 100,15 C87,15 87,20 76,20 C64,20 64,14 50,14 C36,14 36,24 23,24 C12,24 10,15 0,15 Z' transform='translate%280,2%29'/%3E%3Cpath fill='%23fff' d='M0,6 C30,2 60,3 90,5 C130,8 170,2 210,4 C245,6 275,3 300,6 L300,15 C292,15 289,23 280,23 C270,23 270,15 258,15 C245,15 246,28 232,28 C219,28 220,15 205,15 C192,15 192,21 181,21 C170,21 170,14 156,14 C141,14 143,26 128,26 C114,26 116,15 100,15 C87,15 87,20 76,20 C64,20 64,14 50,14 C36,14 36,24 23,24 C12,24 10,15 0,15 Z'/%3E%3C/svg%3E");
}

/* ── 1. 메인 배경 그림 (images/bg_main_pc.jpg, 1920×900) ──
   밤하늘 + 양옆 눈 덮인 마을(1920 화면의 양옆 빈 공간 376px 안에 들어오게 그림을 배치). 가운데는 컨텐츠에 가려짐
   그림 아래는 #001735 단색으로 이어짐. 페이지와 함께 스크롤. 1920 보다 넓은 화면은 폭에 맞춰 확대
   흰 배경을 깔던 바깥 상자 2개를 투명하게 해서 배경이 보이게 함 (카드·박스의 흰 바탕은 그대로) */
body.season-christmas.xm-page-main {
  background: var(--xm-night) url("images/bg_main_pc.jpg") center top / 1920px auto no-repeat;
}
@media (min-width: 1921px) {
  body.season-christmas.xm-page-main { background-size: 100% auto; }
}
body.season-christmas.xm-page-main > div.bg-white:not(.fixed),
body.season-christmas.xm-page-main > div.bg-white:not(.fixed) > div.min-h-screen.bg-white {
  background: transparent;   /* :not(.fixed) — 모바일 하단 메뉴(body 바로 아래 고정 상자)의 흰 바탕은 그대로 */
}
/* 모바일: 헤더(64px) 바로 아래에 마을 띠 (images/bg_main_mo.jpg, 780×250 → 화면 폭에 맞춰 390×125) */
@media (max-width: 767px) {
  body.season-christmas.xm-page-main {
    background: var(--xm-night) url("images/bg_main_mo.jpg") center 64px / 100% auto no-repeat;
  }
}

/* ── 2. 눈 내림 캔버스 (season.js 가 body 맨 앞에 붙임) ──
   z-index:-1 → 배경 그림 위, 모든 컨텐츠 아래. 흰 박스 뒤로 지나가서 글 읽는 데 방해되지 않음 */
body.season-christmas .xm-snow {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* ── 3. 상단 헤더: 흰 바탕 없애고 밤하늘이 비치게 (스크롤하면 단색) ──
   헤더 = 화면 위에 고정된 바깥 상자(div.fixed.w-full.top-0) + 안쪽 PC/모바일 상자(각각 bg-white)
   로고는 원래 주황 그대로(남색 위에서 잘 보임) + 산타 모자. 메뉴 글자는 흰색 */
body.season-christmas.xm-page-main div.fixed.w-full.top-0.z-50 {
  background: transparent;
  transition: background-color .25s ease;
}
body.season-christmas.xm-page-main div.fixed.w-full.top-0.z-50 > div.bg-white {
  background: transparent;
}
body.season-christmas.xm-page-main.xm-scrolled div.fixed.w-full.top-0.z-50 {
  background-color: var(--xm-head);
}
@media (max-width: 767px) {
  body.season-christmas.xm-page-main div.fixed.w-full.top-0.z-50,
  body.season-christmas.xm-page-main.xm-scrolled div.fixed.w-full.top-0.z-50 {
    background-color: var(--xm-head);
  }
}
body.season-christmas.xm-page-main div.fixed.w-full.top-0.z-50 div.justify-between.gap-4.h-16 > div:last-child > a:not(.bg-primary) {
  color: #fff !important;   /* '✨ 프리미엄' 은 글자색이 인라인이라 !important */
}
body.season-christmas.xm-page-main div.fixed.w-full.top-0.z-50 div.justify-between.gap-4.h-16 > div:last-child > a[href*="premium_hall"] {
  color: #f6d48a !important;
}
body.season-christmas.xm-page-main div.fixed.w-full.top-0.z-50 div.justify-between.gap-4.h-16 > div:last-child > a:not(.bg-primary):hover {
  background-color: rgba(255, 255, 255, .12);
}
body.season-christmas.xm-page-main div.fixed.w-full.top-0.z-50 div.md\:hidden button {
  color: #fff;
}
/* 로고 산타 모자 (images/icon_hat.png) — season.js 가 로고 링크에 xm-logo 를 붙임 */
body.season-christmas .xm-logo {
  position: relative;
  display: inline-block;
}
/* 로고 그림(3012×594) 안에서 봉투는 x 351~902 · y 56~516 → PC(100×20)에선 x 12~30 · y 2~17, 모바일(120×24)에선 x 14~36 · y 2~21
   모자를 봉투 왼쪽 위 모서리에 비스듬히 얹음 (봉투를 가리지 않게 작게) */
body.season-christmas .xm-logo::after {
  content: "";
  position: absolute;
  left: 3px;
  top: -8px;
  width: 17px;
  height: 17px;
  background: url("images/icon_hat.png") center / contain no-repeat;
  transform: rotate(-24deg);
  pointer-events: none;
}
@media (max-width: 767px) {
  body.season-christmas .xm-logo::after { left: 4px; top: -9px; width: 20px; height: 20px; }
}
/* 모바일 헤더: 로고를 감싼 상자(overflow-hidden)가 모자 윗부분을 잘라내므로 위쪽으로만 여유를 줌
   (위 여백을 늘린 만큼 바깥 여백을 줄여 로고 위치는 그대로. 넘침 자르기 자체는 유지) */
body.season-christmas .xm-logo-clip {
  padding-top: 14px;
  margin-top: -14px;
}

/* ── 4. 꼬마전구 줄 (season.js 가 고정 헤더 아래에 붙임) ──
   전선 = SVG 곡선, 전구 = .xm-bulb (소켓 ::before + 유리 i + 빛 번짐 b). 색 4가지: c1 빨강 · c2 노랑 · c3 초록 · c4 파랑
   반짝임: 유리는 흐림↔밝음(opacity), 빛 번짐은 꺼짐↔켜짐. 패턴은 줄(.xm-lights)의 p1~p4 가 시작 시점(--dl)·주기(--du)를 정함
   p1 흐르기(차례로) · p2 번갈아(홀짝) · p3 제각각 · p4 색깔별로 */
body.season-christmas .xm-lights {
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 0;
  pointer-events: none;
}
/* 모바일: season.js 가 전구 줄을 헤더가 아니라 페이지(문서 맨 위)에 붙이고 xm-lights-page 를 붙임
   → 스크롤하면 페이지와 함께 올라가 헤더 뒤로 사라짐 (스크롤 중에 배너·카드를 덮지 않음). top 은 season.js 가 헤더 높이로 넣음
   높이를 주고 넘치는 부분을 잘라 가로 스크롤이 생기지 않게 함 (맨 끝 전구의 빛 번짐이 화면 밖으로 1~2px 나감) */
body.season-christmas .xm-lights.xm-lights-page {
  top: 64px;
  height: 48px;
  overflow: hidden;
  z-index: 6;
}
body.season-christmas .xm-lights svg {
  position: absolute;
  left: 0;
  top: -1px;
  overflow: visible;
}
body.season-christmas .xm-lights path {
  fill: none;
  stroke: #1c4a36;
  stroke-width: 1.6;
}
body.season-christmas .xm-bulb {
  position: absolute;
  width: 10px;
  height: 16px;
  margin: -2px 0 0 -5px;
  transform: rotate(var(--r, 0deg));
  transform-origin: 50% 0;
}
body.season-christmas .xm-bulb::before {
  content: "";
  position: absolute;
  left: 2.5px;
  top: 0;
  width: 5px;
  height: 4.5px;
  border-radius: 1.5px 1.5px 0 0;
  background: #2a5a45;
}
body.season-christmas .xm-bulb i {
  position: absolute;
  left: 0;
  top: 3.5px;
  width: 10px;
  height: 12.5px;
  border-radius: 50% 50% 50% 50% / 36% 36% 64% 64%;
  background: radial-gradient(circle at 34% 28%, #fff 0, var(--c) 40%, var(--c2) 100%);
  animation: xm-lit var(--du, 1.6s) ease-in-out var(--dl, 0s) infinite;
}
body.season-christmas .xm-bulb b {
  position: absolute;
  left: 50%;
  top: 10px;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  background: radial-gradient(closest-side, var(--g) 0, transparent 100%);
  animation: xm-glow var(--du, 1.6s) ease-in-out var(--dl, 0s) infinite;
}
body.season-christmas .xm-bulb.c1 { --c: #ff5b4f; --c2: #c9202c; --g: rgba(255, 96, 82, .8); }
body.season-christmas .xm-bulb.c2 { --c: #ffd95e; --c2: #e9a31c; --g: rgba(255, 210, 96, .85); }
body.season-christmas .xm-bulb.c3 { --c: #4fe38e; --c2: #159b53; --g: rgba(84, 228, 144, .75); }
body.season-christmas .xm-bulb.c4 { --c: #72c7ff; --c2: #2487e2; --g: rgba(116, 200, 255, .8); }
body.season-christmas .xm-lights.p1 .xm-bulb { --dl: calc(var(--i) * -.17s);  --du: 1.36s; }
body.season-christmas .xm-lights.p2 .xm-bulb { --dl: calc(var(--ph) * -.8s);  --du: 1.6s; }
body.season-christmas .xm-lights.p3 .xm-bulb { --dl: var(--rd);               --du: var(--rt); }
body.season-christmas .xm-lights.p4 .xm-bulb { --dl: calc(var(--ci) * -.62s); --du: 2.48s; }
@keyframes xm-lit {
  0%, 100% { opacity: .4; }
  42%, 58% { opacity: 1; }
}
@keyframes xm-glow {
  0%, 100% { opacity: 0; transform: scale(.55); }
  42%, 58% { opacity: 1; transform: scale(1); }
}
@media (max-width: 767px) {
  body.season-christmas .xm-bulb { width: 8px; height: 13px; margin-left: -4px; }
  body.season-christmas .xm-bulb::before { left: 2px; width: 4px; height: 4px; }
  body.season-christmas .xm-bulb i { top: 3px; width: 8px; height: 10px; }
  body.season-christmas .xm-bulb b { top: 8px; width: 28px; height: 28px; margin: -14px 0 0 -14px; }
}

/* ── 5. 하늘 띠 (season.js 가 메인 배너 바로 위에 끼워 넣음) ──
   헤더와 배너 사이 빈 띠: PC 76px / 모바일 100px. 가운데 "Merry Christmas" 글씨(images/deco_merry.webp, 560×117) + 반짝이는 별
   모바일은 띠 아래쪽으로 배경의 마을 그림이 보임 */
body.season-christmas .xm-band {
  position: relative;
  height: 76px;
  margin-bottom: -48px;   /* 띠와 배너 사이에 섹션 간격(gap-12 = 48px)이 한 번 더 들어가는 것 상쇄 */
  pointer-events: none;
}
body.season-christmas .xm-merry {
  position: absolute;
  left: 50%;
  top: 49px;
  width: 208px;
  aspect-ratio: 560 / 117;
  transform: translate(-50%, -50%);
  background: url("images/deco_merry.webp") center / contain no-repeat;
  filter: drop-shadow(0 2px 6px rgba(0, 10, 30, .6));
}
/* 반짝이는 별 (네 갈래 빛 — 가운데 빛 + 가로·세로 빛살) */
body.season-christmas .xm-star {
  position: absolute;
  width: 14px;
  height: 14px;
  background:
    radial-gradient(closest-side, #fffdf4 0, rgba(255, 236, 190, .9) 16%, rgba(255, 214, 140, .35) 40%, transparent 72%),
    linear-gradient(90deg, transparent, rgba(255, 244, 215, .95) 50%, transparent) center / 100% 9% no-repeat,
    linear-gradient(0deg, transparent, rgba(255, 244, 215, .95) 50%, transparent) center / 9% 100% no-repeat;
  opacity: 0;
  animation: xm-twinkle 3.2s ease-in-out infinite;
}
body.season-christmas .xm-star-1 { left: 6%;  top: 34%; animation-delay: -.2s; }
body.season-christmas .xm-star-2 { left: 17%; top: 62%; width: 10px; height: 10px; animation-delay: -1.4s; animation-duration: 2.6s; }
body.season-christmas .xm-star-3 { left: 29%; top: 30%; width: 11px; height: 11px; animation-delay: -2.3s; }
body.season-christmas .xm-star-4 { left: 36%; top: 70%; width: 9px;  height: 9px;  animation-delay: -.9s; animation-duration: 3.8s; }
body.season-christmas .xm-star-5 { left: 64%; top: 66%; width: 10px; height: 10px; animation-delay: -1.9s; animation-duration: 2.9s; }
body.season-christmas .xm-star-6 { left: 72%; top: 32%; animation-delay: -.5s; }
body.season-christmas .xm-star-7 { left: 84%; top: 60%; width: 11px; height: 11px; animation-delay: -2.7s; animation-duration: 3.5s; }
body.season-christmas .xm-star-8 { left: 94%; top: 36%; width: 9px;  height: 9px;  animation-delay: -1.1s; }
@keyframes xm-twinkle {
  0%, 100% { opacity: 0; transform: scale(.3) rotate(0deg); }
  45%      { opacity: 1; transform: scale(1) rotate(20deg); }
  65%      { opacity: .5; transform: scale(.8) rotate(32deg); }
}
@media (max-width: 767px) {
  body.season-christmas .xm-band { height: 100px; }
  body.season-christmas .xm-merry { top: 47px; width: 150px; }
  body.season-christmas .xm-star-2,
  body.season-christmas .xm-star-4,
  body.season-christmas .xm-star-5,
  body.season-christmas .xm-star-7 { display: none; }
  body.season-christmas .xm-star-1 { left: 30%; top: 46%; }
  body.season-christmas .xm-star-3 { left: 44%; top: 8%; }
  body.season-christmas .xm-star-6 { left: 60%; top: 48%; }
  body.season-christmas .xm-star-8 { left: 70%; top: 10%; }
}

/* ── 6. 썰매 (images/deco_sleigh.webp, 560×234) — season.js 가 body 끝에 .xm-sky 를 붙임 ──
   .xm-sky = 문서 맨 위 하늘 구역(화면 폭 전체, 넘치는 부분은 잘라 가로 스크롤 안 생김)
   44초마다 한 번, 약 13초 동안 왼쪽 → 오른쪽으로 살짝 올라가며 지나감. 안쪽 i 는 위아래 둥실 */
body.season-christmas .xm-sky {
  position: absolute;
  left: 0;
  top: 58px;
  width: 100%;
  height: 150px;
  overflow: hidden;
  pointer-events: none;
  z-index: 5;
}
body.season-christmas .xm-sleigh {
  position: absolute;
  left: 0;
  top: 6px;
  width: 168px;
  aspect-ratio: 560 / 234;
  transform: translate3d(-240px, 0, 0);
  animation: xm-sleigh 44s linear 2.5s infinite;
  will-change: transform;
}
body.season-christmas .xm-sleigh i {
  position: absolute;
  inset: 0;
  background: url("images/deco_sleigh.webp") center / contain no-repeat;
  filter: drop-shadow(0 4px 8px rgba(0, 8, 28, .55));
  animation: xm-bob 1.9s ease-in-out infinite;
}
@keyframes xm-sleigh {
  0%          { transform: translate3d(-240px, 20px, 0) rotate(-4deg); }
  30%         { transform: translate3d(calc(100vw + 40px), -8px, 0) rotate(-4deg); }
  30.01%, 100% { transform: translate3d(-240px, 20px, 0) rotate(-4deg); }
}
@keyframes xm-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@media (max-width: 767px) {
  body.season-christmas .xm-sky { top: 62px; height: 110px; }
  body.season-christmas .xm-sleigh { top: 12px; width: 118px; animation-duration: 34s; }
  @keyframes xm-sleigh {
    0%          { transform: translate3d(-150px, 18px, 0) rotate(-4deg); }
    30%         { transform: translate3d(calc(100vw + 20px), -6px, 0) rotate(-4deg); }
    30.01%, 100% { transform: translate3d(-150px, 18px, 0) rotate(-4deg); }
  }
}

/* ── 7. 눈 쌓임: 메인 배너 · 흰 박스 2개 · 모바일 하단 메뉴 위 가장자리 ──
   무늬(--xm-cap)를 가로로 반복. round = 무늬 개수가 폭에 딱 맞게 조금 늘리거나 줄여 이음매 없음 */
body.season-christmas .xm-banner-wrap:not(.xm-banner-in) {
  overflow: visible !important;   /* 눈·솔가지가 배너 밖으로 삐져나오게 (프리미엄 배너는 자체가 둥근 모서리로 잘려 있어 모양은 그대로) */
}
/* 예전 슬라이드 배너(#banner-container)일 때: 상자 밖으로 못 나가므로 장식을 안쪽으로 */
body.season-christmas .xm-banner-in::before { top: -4px; }
body.season-christmas .xm-banner-in .xm-corner { top: -6px; }
body.season-christmas .xm-banner-in .xm-corner-l { left: -6px; }
body.season-christmas .xm-banner-in .xm-corner-r { right: -6px; }
body.season-christmas .xm-banner-wrap::before,
body.season-christmas .xm-box::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: -9px;
  height: 26px;
  background: var(--xm-cap) left top / 260px 100% round;
  z-index: 8;
  pointer-events: none;
}
body.season-christmas .xm-box {
  position: relative;
}
body.season-christmas .xm-box::before {
  z-index: 1;
}
@media (max-width: 767px) {
  body.season-christmas .xm-banner-wrap::before,
  body.season-christmas .xm-box::before {
    left: 6px;
    right: 6px;
    top: -7px;
    height: 20px;
    background-size: 200px 100%;
  }
}
/* 배너 위쪽 두 모서리 솔가지 + 빨간 리본 (images/deco_corner.webp, 380×388. 오른쪽은 좌우 뒤집음) */
body.season-christmas .xm-corner {
  position: absolute;
  top: -20px;
  width: 132px;
  aspect-ratio: 380 / 388;
  background: url("images/deco_corner.webp") center / contain no-repeat;
  z-index: 9;
  pointer-events: none;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .35));
}
body.season-christmas .xm-corner-l { left: -20px; }
body.season-christmas .xm-corner-r { right: -20px; transform: scaleX(-1); }
/* 모바일: 배너가 작아서 솔가지가 배너 안 그림(NEW 배지 · 오른쪽 편지지 카드)을 가리지 않게 작게, 바깥쪽으로 */
@media (max-width: 767px) {
  body.season-christmas .xm-corner { top: -16px; width: 54px; }
  body.season-christmas .xm-corner-l { left: -10px; }
  body.season-christmas .xm-corner-r { right: -10px; }
}
/* ── 7-1. 모바일 하단 고정 메뉴 (홈 · 나의편지 · 편지쓰기 · 로그인 · 상담) ──
   season.js 가 메뉴 상자에 xm-nav, 지금 메뉴 아이콘 상자에 xm-nav-on 을 붙이고 솔가지(.xm-corner) 2개 · 별(.xm-star) 4개를 넣음
   헤더와 같은 남색 바탕 + 위 가장자리 눈 + 두 모서리 솔가지 + 반짝이는 별 + 지금 메뉴 아이콘에 산타 모자
   메뉴 글자·아이콘은 밝은 색으로, 지금 메뉴(주황)와 카카오 아이콘은 그대로. 누르는 동작은 그대로(장식은 전부 pointer-events:none) */
body.season-christmas .xm-nav {
  background: linear-gradient(180deg, #0e2b5e 0%, var(--xm-head) 78%);
  border-top-color: rgba(255, 255, 255, .16);
  box-shadow: 0 -2px 9px rgba(0, 8, 28, .3) !important;   /* 원래 그림자가 인라인이라 !important */
}
body.season-christmas .xm-nav::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: -7px;
  height: 17px;
  background: var(--xm-cap) left top / 170px 100% round;
  pointer-events: none;
  z-index: 1;
}
body.season-christmas .xm-nav a span.text-gray-600 { color: #e6edfb; }
body.season-christmas .xm-nav a svg.text-gray-400 { color: #aebde0; }
body.season-christmas .xm-nav a:active { background-color: rgba(255, 255, 255, .12); }
body.season-christmas .xm-nav > .grid { position: relative; z-index: 2; }   /* 메뉴가 별·눈보다 위 */
/* 지금 메뉴 아이콘(20×20) 왼쪽 위에 산타 모자 */
body.season-christmas .xm-nav-on::after {
  content: "";
  position: absolute;
  left: -6px;
  top: -8px;
  width: 14px;
  height: 14px;
  background: url("images/icon_hat.png") center / contain no-repeat;
  transform: rotate(-24deg);
  pointer-events: none;
}
/* 두 모서리 솔가지 (배너 모서리와 같은 그림을 작게)
   그림 안에서 가로 가지는 위에서 12% 지점, 리본 가운데는 왼쪽에서 22% 지점 → 가로 가지가 눈 쌓인 줄(메뉴 윗선) 위에 얹히게 맞춤 */
body.season-christmas .xm-nav .xm-corner {
  top: -6px;
  width: 44px;
  z-index: 3;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .4));
}
body.season-christmas .xm-nav .xm-corner-l { left: 0; }
body.season-christmas .xm-nav .xm-corner-r { right: 0; }
/* 눈사람 큰 것 · 작은 것: 눈 쌓인 줄 왼쪽(솔가지 옆)에 서 있음 */
body.season-christmas .xm-nav .xm-snowman {
  position: absolute;
  bottom: calc(100% + 1px);
  background: center bottom / contain no-repeat;
  transform-origin: 50% 100%;
  pointer-events: none;
  z-index: 3;
  filter: drop-shadow(0 1px 2px rgba(0, 10, 40, .4));
}
body.season-christmas .xm-nav .xm-snowman-big {
  left: 46px;
  width: 33px;
  aspect-ratio: 196 / 240;
  background-image: url("images/deco_snowman_big.webp");
  animation: xm-sway 5.2s ease-in-out infinite;
}
body.season-christmas .xm-nav .xm-snowman-small {
  left: 80px;
  width: 21px;
  aspect-ratio: 130 / 170;
  background-image: url("images/deco_snowman_small.webp");
  animation: xm-sway 4.2s ease-in-out -1.7s infinite;
}
/* 별: 메뉴 칸 사이 빈 자리 4곳 */
body.season-christmas .xm-nav .xm-star { z-index: 1; }
body.season-christmas .xm-nav-star-1 { left: 19%; top: 58%; width: 9px;  height: 9px;  animation-delay: -.4s; }
body.season-christmas .xm-nav-star-2 { left: 39%; top: 22%; width: 8px;  height: 8px;  animation-delay: -1.7s; animation-duration: 2.7s; }
body.season-christmas .xm-nav-star-3 { left: 59%; top: 60%; width: 8px;  height: 8px;  animation-delay: -2.5s; animation-duration: 3.6s; }
body.season-christmas .xm-nav-star-4 { left: 79%; top: 24%; width: 9px;  height: 9px;  animation-delay: -1.1s; }

/* ── 7-3. 얼음낚시하는 냥이: 모바일 하단 메뉴의 눈 쌓인 줄 오른쪽 (눈사람 맞은편) — season.js addFisher ──
   구조  .xm-fish.is-○○[role=button]      이것만 누를 수 있음 (나중에 방어낚시게임으로 연결 — season.js 의 FISH_GAME_URL)
           i.xm-fs-a                      낚시 중 그림 (ch_fish_idle.webp)
           i.xm-fs-b                      동작 6칸 띠 (ch_fish_act.webp: 낚시 중 · 꾸벅꾸벅 · 입질 · 당기기 · 대방어 · 장화)
           span.xm-fs-zzz · i.xm-fs-bang · i.xm-fs-drop ×3 · i.xm-star ×3 · span.xm-fs-bubble   z · 느낌표 · 물방울 · 반짝이 · 말풍선
   그림 한 칸 = 271×220. 얼음 구멍 가운데가 모든 칸에서 같은 자리(왼쪽에서 19.3% · 아래에서 10.4%) → 칸을 바꿔도 구멍은 안 움직임
   상태: is-idle 낚시 중 → is-doze 꾸벅꾸벅 → is-bite 입질! → is-pull 낑낑 → is-got-bangeo 대방어 자랑 / is-got-boot 장화에 시무룩 */
body.season-christmas .xm-fish {
  position: absolute;
  z-index: 3;
  pointer-events: auto;
  cursor: pointer;
  outline: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}
/* 모바일: 하단 메뉴의 눈 쌓인 줄 오른쪽 */
body.season-christmas .xm-nav .xm-fish {
  right: 40px;
  bottom: calc(100% - 3px);              /* 얼음 구멍 아래쪽이 눈 줄에 살짝 묻히게 */
  width: 70px;
  height: 56.8px;                        /* 70 × 220/271 */
}
/* PC: 카카오톡 상담 버튼 아래 — 작은 눈밭(얼음판) 위에 앉아 낚시 (season.js addPcFisher)
   ① 1536px 이상: 오른쪽 고정 열 안, 카톡 버튼 바로 아래 자리(.xm-fish-slot)
   ② 768~1535px: 화면 오른쪽 아래에 떠 있는 카톡 버튼(right 24px · bottom 128px) 아래에 따로 띄움(.xm-fish-float) */
body.season-christmas .xm-fish-slot {
  position: relative;
  flex: 0 0 auto;
  height: 104px;
  margin-top: 2px;
}
body.season-christmas .xm-fish-float {
  display: none;
  position: fixed;
  right: 8px;
  bottom: 18px;
  width: 108px;
  height: 104px;
  z-index: 40;
  pointer-events: none;
}
@media (min-width: 768px) and (max-width: 1535.98px) {
  body.season-christmas .xm-fish-float { display: block; }
}
body.season-christmas .xm-fish.xm-fish-pc {
  left: 50%;
  bottom: 14px;
  width: 96px;
  height: 78px;                          /* 96 × 220/271 */
  margin-left: -48px;
}
body.season-christmas .xm-fish.xm-fish-pc::before {     /* 발밑 눈밭 */
  content: "";
  position: absolute;
  left: -7%;
  right: -7%;
  bottom: -9%;
  height: 34%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 30%, #ffffff 0%, #eef5ff 55%, #cfe0f8 100%);
  box-shadow: 0 5px 12px rgba(0, 10, 40, .4), inset 0 -3px 5px rgba(150, 180, 225, .5);
}
/* PC 말풍선: 위쪽은 카톡 버튼 글씨라서, 냥이 왼쪽 위로 띄움 (꼬리는 오른쪽) */
body.season-christmas .xm-fish.xm-fish-pc .xm-fs-bubble {
  right: 84%;
  bottom: 44%;
  font-size: 13.5px;
  padding: 7px 12px 8px;
  transform-origin: 100% 70%;
}
body.season-christmas .xm-fish.xm-fish-pc .xm-fs-bubble::after { right: -5px; bottom: auto; top: 58%; margin-top: -5.5px; }
body.season-christmas .xm-fish:focus-visible {
  outline: 2px dashed rgba(255, 255, 255, .9);
  outline-offset: 3px;
  border-radius: 12px;
}
body.season-christmas .xm-fish i,
body.season-christmas .xm-fish b,
body.season-christmas .xm-fish span {
  position: absolute;
  display: block;
  pointer-events: none;
}
body.season-christmas .xm-fish .xm-fs-a,
body.season-christmas .xm-fish .xm-fs-b {
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  transform-origin: 64% 98%;             /* 걸상 자리 — 여기를 축으로 까딱거림 */
  filter: drop-shadow(0 1px 2px rgba(0, 10, 40, .4));
}
body.season-christmas .xm-fish .xm-fs-a {
  background-image: url("images/ch_fish_idle.webp");
  background-size: 100% 100%;
  animation: xm-fs-idle 3.4s ease-in-out infinite;
}
body.season-christmas .xm-fish .xm-fs-b { background-size: 600% 100%; opacity: 0; }
body.season-christmas .xm-fish.xm-fs-load .xm-fs-b { background-image: url("images/ch_fish_act.webp"); }
/* 낚시 중: 살랑살랑 + 가끔 낚싯대를 톡톡 챔 */
@keyframes xm-fs-idle {
  0%, 100% { transform: rotate(0); }
  30%      { transform: rotate(-1.6deg); }
  58%      { transform: rotate(.8deg); }
  70%      { transform: rotate(0); }
  76%      { transform: rotate(2.6deg); }
  82%      { transform: rotate(-.6deg); }
  88%      { transform: rotate(2deg); }
}
body.season-christmas .xm-fish.is-idle.xm-fs-nudge .xm-fs-a { animation: xm-fs-jolt .5s cubic-bezier(.3, 1.6, .5, 1) 1, xm-fs-idle 3.4s ease-in-out .5s infinite; }
/* 상태별 그림 */
body.season-christmas .xm-fish:not(.is-idle) .xm-fs-a { opacity: 0; animation: none; }
body.season-christmas .xm-fish:not(.is-idle) .xm-fs-b { opacity: 1; }
body.season-christmas .xm-fish.is-doze .xm-fs-b { background-position: 20% 0; animation: xm-fs-doze 3.1s ease-in-out infinite; }
body.season-christmas .xm-fish.is-bite .xm-fs-b { background-position: 40% 0; animation: xm-fs-jolt .5s cubic-bezier(.3, 1.6, .5, 1) 1; }
body.season-christmas .xm-fish.is-pull .xm-fs-b { background-position: 60% 0; animation: xm-fs-tug .26s linear infinite; }
body.season-christmas .xm-fish.is-got-bangeo .xm-fs-b {
  background-position: 80% 0;
  animation: xm-fs-hop .75s cubic-bezier(.3, 1.4, .5, 1) 1, xm-fs-proud 1.5s ease-in-out .75s infinite;
}
body.season-christmas .xm-fish.is-got-boot .xm-fs-b { background-position: 100% 0; animation: xm-fs-droop .9s ease-out 1 forwards; }
@keyframes xm-fs-doze {                    /* 꾸벅… 꾸벅… 하다가 움찔 */
  0%, 100% { transform: rotate(0); }
  45%      { transform: rotate(-5deg) translateY(1.5%); }
  52%      { transform: rotate(-6.5deg) translateY(2%); }
  60%      { transform: rotate(-1deg); }
  68%      { transform: rotate(-2.5deg); }
}
@keyframes xm-fs-jolt {                    /* 깜짝! */
  0%   { transform: scale(1.06, .9); }
  45%  { transform: translateY(-9%) scale(.95, 1.08); }
  75%  { transform: translateY(0) scale(1.03, .97); }
  100% { transform: none; }
}
@keyframes xm-fs-tug {                     /* 낑낑: 뒤로 젖혔다 끌려갔다 */
  0%, 100% { transform: translateX(0) rotate(0); }
  25%      { transform: translateX(-2.2%) rotate(-2.2deg); }
  75%      { transform: translateX(2.2%) rotate(2.6deg); }
}
@keyframes xm-fs-hop {
  0%   { transform: scale(1.08, .88); }
  40%  { transform: translateY(-16%) scale(.96, 1.06); }
  70%  { transform: translateY(0) scale(1.04, .95); }
  100% { transform: none; }
}
@keyframes xm-fs-proud {                   /* 으쓱으쓱 */
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50%      { transform: rotate(2deg) translateY(-3%); }
}
@keyframes xm-fs-droop {                   /* 시무룩: 푹 꺼짐 */
  0%   { transform: scale(1.04, .95); }
  35%  { transform: translateY(-4%) scale(.98, 1.03); }
  100% { transform: translateY(1.5%) scale(1.02, .965); }
}
/* z (조는 동안) */
body.season-christmas .xm-fish .xm-fs-zzz {
  left: 74%;
  top: 0;
  width: 0;
  height: 0;
  font-size: 11px;
  font-weight: 800;
  font-style: italic;
  line-height: 1;
  color: #dbe9ff;
  text-shadow: 0 1px 2px rgba(0, 10, 40, .7);
}
body.season-christmas .xm-fish .xm-fs-zzz b { left: 0; top: 0; opacity: 0; }
body.season-christmas .xm-fish.is-doze .xm-fs-zzz b { animation: xm-fs-zzz 2.2s ease-out infinite; }
body.season-christmas .xm-fish.is-doze .xm-fs-zzz b:nth-child(2) { animation-delay: 1.1s; }
@keyframes xm-fs-zzz {
  0%   { opacity: 0; transform: translate(0, 0) scale(.5); }
  20%  { opacity: 1; }
  100% { opacity: 0; transform: translate(1.1em, -2.4em) scale(1.25); }
}
/* 느낌표 (입질) */
body.season-christmas .xm-fish .xm-fs-bang {
  left: 86%;
  top: -14%;
  width: 22%;
  aspect-ratio: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5 14 13h-4z' fill='%23ffd84d' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round'/%3E%3Ccircle cx='12' cy='19' r='2.6' fill='%23ffd84d' stroke='%23fff' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0;
  transform: scale(0);
  transform-origin: 40% 100%;
}
body.season-christmas .xm-fish.is-bite .xm-fs-bang { animation: xm-cp-bang .76s ease-out 1 forwards; }
/* 물방울: 구멍(왼쪽에서 19.3% · 아래에서 10.4%)에서 튀어 오름 */
body.season-christmas .xm-fish .xm-fs-drop {
  left: 19.3%;
  bottom: 12%;
  width: 4px;
  height: 5px;
  margin-left: -2px;
  border-radius: 50% 50% 50% 50% / 62% 62% 40% 40%;
  background: #bfe3ff;
  box-shadow: 0 0 2px rgba(255, 255, 255, .9);
  opacity: 0;
}
body.season-christmas .xm-fish.is-bite .xm-fs-drop,
body.season-christmas .xm-fish.is-pull .xm-fs-drop,
body.season-christmas .xm-fish.is-got-bangeo .xm-fs-drop { animation: xm-fs-drop .62s ease-out infinite; }
body.season-christmas .xm-fish.is-got-bangeo .xm-fs-drop { animation-iteration-count: 2; }
body.season-christmas .xm-fish .xm-fs-drop-1 { --dx: -9px; --dy: -15px; }
body.season-christmas .xm-fish .xm-fs-drop-2 { --dx: 1px;  --dy: -20px; animation-delay: .14s !important; }
body.season-christmas .xm-fish .xm-fs-drop-3 { --dx: 10px; --dy: -13px; animation-delay: .3s !important; }
@keyframes xm-fs-drop {
  0%   { opacity: 0; transform: translate(0, 0) scale(.5); }
  18%  { opacity: 1; }
  60%  { opacity: 1; transform: translate(var(--dx), var(--dy)) scale(1); }
  100% { opacity: 0; transform: translate(calc(var(--dx) * 1.25), calc(var(--dy) * .35)) scale(.7); }
}
/* 반짝이 (대방어 자랑할 때만) */
body.season-christmas .xm-nav .xm-fish .xm-star { display: none; z-index: 2; }
body.season-christmas .xm-nav .xm-fish.is-got-bangeo .xm-star { display: block; }
body.season-christmas .xm-fish .xm-fs-tw1 { left: 4%;  top: 6%;  width: 9px; height: 9px; animation-duration: 1.1s; }
body.season-christmas .xm-fish .xm-fs-tw2 { left: 40%; top: -16%; width: 8px; height: 8px; animation-duration: 1.4s; animation-delay: -.4s; }
body.season-christmas .xm-fish .xm-fs-tw3 { left: 96%; top: 18%; width: 7px; height: 7px; animation-duration: 1.2s; animation-delay: -.8s; }
/* 말풍선: 냥이 머리 위, 오른쪽 끝을 맞춰 왼쪽으로 늘어남 */
body.season-christmas .xm-fish .xm-fs-bubble {
  right: -6px;
  bottom: calc(100% + 9px);
  padding: 6px 10px 7px;
  border-radius: 13px;
  background: #fff;
  color: #1456c8;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.01em;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(0, 10, 40, .4);
  opacity: 0;
  transform: translateY(6px) scale(.85);
  transform-origin: 78% 100%;
  transition: opacity .2s ease, transform .32s cubic-bezier(.3, 1.5, .5, 1);
}
body.season-christmas .xm-fish .xm-fs-bubble::after {
  content: "";
  position: absolute;
  right: 26px;
  bottom: -5px;
  width: 11px;
  height: 11px;
  background: #fff;
  border-radius: 2px;
  transform: rotate(45deg);
}
body.season-christmas .xm-fish.is-got-bangeo .xm-fs-bubble,
body.season-christmas .xm-fish.is-got-boot .xm-fs-bubble { opacity: 1; transform: none; }
body.season-christmas .xm-fish.is-got-boot .xm-fs-bubble { color: #5b6472; }
/* 메인의 '맨 위로' 버튼(#goTopBtn, 모바일 오른쪽 아래 · 스크롤하면 나타남)이 낚시 냥이와 말풍선을 가리지 않게 그 위로 올림 (원래 bottom 72px) */
body.season-christmas.xm-page-main #goTopBtn { bottom: 168px !important; }

/* ── 7-2. 모바일 햄버거 메뉴 (오른쪽에서 열리는 서랍 #mobileMenuDrawer) ──
   season.js 가 서랍에 xm-drawer 를 붙이고 위 띠(.xm-dr-top) · 아래 장면(.xm-dr-foot)을 넣음. 메뉴 항목·닫기 버튼은 그대로(장식은 전부 누를 수 없음)
   위: 밤하늘 마을 그림 + Merry Christmas 글씨 + 반짝이는 별 + 눈 쌓임 / 가운데: 옅은 눈꽃 무늬 바탕(글자는 원래 색 그대로 읽힘)
   아래: 눈밭 위 트리 · 선물 시바 · 눈사람 — 서랍 맨 아래에 항상 붙어 있음(메뉴가 길면 메뉴만 그 위에서 스크롤, 2026-11-21 ljh 지시).
         누를 수 없는 장식이라 그 아래로 지나가는 메뉴 항목은 그대로 눌림. 끝까지 내리면 마지막 항목이 장면 위로 올라옴 */
body.season-christmas.xm-page-main .xm-drawer {
  display: flex;
  flex-direction: column;
  background: #f6f9ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='132' height='132' viewBox='0 0 132 132'%3E%3Cg fill='none' stroke='%23dfe9fa' stroke-width='1.6' stroke-linecap='round'%3E%3Cg transform='translate(30 34)'%3E%3Cpath d='M0-12V12M-10.4-6 10.4 6M-10.4 6 10.4-6M0-7l3-3M0-7l-3-3M0 7l3 3M0 7l-3 3M-6.1-3.5l-4.1.9M-6.1-3.5l-1.2-4M6.1 3.5l4.1-.9M6.1 3.5l1.2 4M-6.1 3.5l-4.1-.9M-6.1 3.5l-1.2 4M6.1-3.5l4.1.9M6.1-3.5l1.2-4'/%3E%3C/g%3E%3Cg transform='translate(98 92) scale(.72)'%3E%3Cpath d='M0-12V12M-10.4-6 10.4 6M-10.4 6 10.4-6M0-7l3-3M0-7l-3-3M0 7l3 3M0 7l-3 3'/%3E%3C/g%3E%3Ccircle cx='92' cy='26' r='1.4' fill='%23dfe9fa' stroke='none'/%3E%3Ccircle cx='24' cy='102' r='1.8' fill='%23dfe9fa' stroke='none'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 132px 132px;
}
body.season-christmas.xm-page-main .xm-drawer > * { flex: 0 0 auto; }
/* 위 띠 */
body.season-christmas .xm-dr-top {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 122px;
  background: #0a214d url("images/bg_main_mo.jpg") center top / auto 156px no-repeat;
  pointer-events: none;
}
body.season-christmas .xm-dr-top::before {            /* 닫기 버튼·글씨가 잘 보이게 위쪽을 살짝 어둡게 */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 100%;
  background: linear-gradient(180deg, rgba(4, 16, 44, .62) 0%, rgba(4, 16, 44, .18) 55%, rgba(4, 16, 44, 0) 100%);
}
body.season-christmas .xm-dr-top::after {             /* 띠 아래 가장자리에 눈 쌓임 */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  height: 22px;
  background: var(--xm-cap) left top / 210px 100% round;
}
body.season-christmas .xm-dr-merry {
  position: absolute;
  left: 16px;
  top: 26px;
  width: 158px;
  aspect-ratio: 560 / 117;
  background: url("images/deco_merry.webp") center / contain no-repeat;
  filter: drop-shadow(0 2px 6px rgba(0, 10, 30, .7));
}
body.season-christmas .xm-dr-top .xm-star { z-index: 1; }
body.season-christmas .xm-dr-star-1 { left: 9%;  top: 74%; width: 9px;  height: 9px;  animation-delay: -.3s; }
body.season-christmas .xm-dr-star-2 { left: 30%; top: 12%; width: 8px;  height: 8px;  animation-delay: -1.6s; animation-duration: 2.7s; }
body.season-christmas .xm-dr-star-3 { left: 52%; top: 70%; width: 10px; height: 10px; animation-delay: -2.4s; }
body.season-christmas .xm-dr-star-4 { left: 71%; top: 46%; width: 8px;  height: 8px;  animation-delay: -1s;   animation-duration: 3.5s; }
body.season-christmas .xm-dr-star-5 { left: 90%; top: 76%; width: 9px;  height: 9px;  animation-delay: -2s; }
/* 닫기 버튼 줄: 위 띠 위에 올라오게 + 띠 높이만큼 아래 내용을 밀어 줌. 버튼은 밝은 색으로 */
body.season-christmas.xm-page-main .xm-drawer > .xm-dr-top + div {
  position: relative;
  z-index: 2;
  margin-bottom: 62px;
}
body.season-christmas.xm-page-main .xm-drawer > .xm-dr-top + div button {
  color: #fff;
  background: rgba(255, 255, 255, .16);
}
body.season-christmas.xm-page-main .xm-drawer > .xm-dr-top + div button:active { background: rgba(255, 255, 255, .3); }
/* 메뉴: 묶음 제목(편지쓰기 · 마이페이지 등) 앞에 선물 아이콘, 누를 때 색은 크리스마스 빨강 톤 */
body.season-christmas.xm-page-main .xm-drawer div.font-semibold.text-primary-black::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  vertical-align: -3px;
  background: url("images/icon_gift.png") center / contain no-repeat;
}
body.season-christmas.xm-page-main .xm-drawer a:active { background-color: #fdecec; }
/* 아래 장면: 눈밭 + 트리 · 선물 시바 · 눈사람 */
body.season-christmas .xm-dr-foot {
  position: -webkit-sticky;
  position: sticky;                      /* 서랍(스크롤 상자)의 아래 끝에 고정 */
  bottom: 0;
  z-index: 3;
  flex: 0 0 136px;
  height: 136px;
  margin-top: auto;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(72% 44px at 20% 100%, #fff 0, #fff 98%, rgba(255, 255, 255, 0) 100%),
    radial-gradient(84% 36px at 76% 100%, #fff 0, #fff 98%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(180deg, rgba(246, 249, 255, 0) 0%, rgba(240, 245, 255, .92) 20%, #dde9fc 50%, #c6dbf8 100%);   /* 위쪽은 스르르 — 지나가는 메뉴 글자가 자연스럽게 가려짐 */
}
@media (max-height: 640px) {             /* 세로가 짧은 화면: 장면을 낮춰 메뉴 볼 자리를 넉넉히 */
  body.season-christmas .xm-dr-foot { flex-basis: 104px; height: 104px; }
  body.season-christmas .xm-dr-foot .xm-dr-tree { height: 74px; bottom: 14px; }
  body.season-christmas .xm-dr-foot .xm-dr-shiba { height: 62px; bottom: 8px; }
  body.season-christmas .xm-dr-foot .xm-dr-sm-big { height: 50px; bottom: 11px; }
  body.season-christmas .xm-dr-foot .xm-dr-sm-small { height: 34px; bottom: 8px; }
}
body.season-christmas .xm-dr-foot i {
  position: absolute;
  display: block;
  background: center bottom / contain no-repeat;
  transform-origin: 50% 100%;
}
body.season-christmas .xm-dr-foot .xm-dr-tree {
  left: 5%;
  bottom: 20px;
  height: 100px;
  aspect-ratio: 201 / 300;
  background-image: url("images/deco_tree.webp");
  animation: xm-cp-tree 6s ease-in-out infinite;
}
body.season-christmas .xm-dr-foot .xm-dr-shiba {
  left: 33%;
  bottom: 12px;
  height: 84px;
  aspect-ratio: 302 / 380;
  background-image: url("images/ch_shiba_gift.webp");
  animation: xm-sway 4.6s ease-in-out infinite;
}
body.season-christmas .xm-dr-foot .xm-dr-sm-big {
  left: 62%;
  bottom: 16px;
  height: 66px;
  aspect-ratio: 196 / 240;
  background-image: url("images/deco_snowman_big.webp");
  animation: xm-sway 5.2s ease-in-out -1s infinite;
}
body.season-christmas .xm-dr-foot .xm-dr-sm-small {
  left: 83%;
  bottom: 12px;
  height: 44px;
  aspect-ratio: 130 / 170;
  background-image: url("images/deco_snowman_small.webp");
  animation: xm-sway 4.2s ease-in-out -2.2s infinite;
}

/* ── 8. 박스 위에 앉은 캐릭터 (프리미엄 편지지 캐릭터) ──
   season.js 가 박스 안에 .xm-char 를 붙임. 박스 위 가장자리(눈 위)에 걸터앉게 bottom:100% 기준으로 조금 내림
   - 어떤 마음을 전할까요?  : 잠자는 시바 (ch_shiba_sleep, 320×172) — 박스 오른쪽. 누르면 깨어남 → 아래 8-1
   - 편지에 마음을 더하다   : 떨고 있는 소녀 + 트리 — 누르면 남자친구가 옴 → 아래 8-2
   - 메인 배너 위 가장자리  : 빼꼼 시바 (ch_shiba_peek, 259×260) + 선물 든 고양이 (ch_cat, 237×260)  ← 박스에서 옮김(2026-11-21)
   - 오른쪽 배너 열(PC)     : 빼꼼 소녀 (ch_girl, 248×240) */
body.season-christmas .xm-char {
  position: absolute;
  background: center bottom / contain no-repeat;
  pointer-events: none;
  z-index: 2;
}
body.season-christmas .xm-char-sleep {
  right: 34px;
  bottom: calc(100% - 9px);
  width: 108px;
  aspect-ratio: 320 / 172;
}
/* 메인 배너 위 가장자리(눈 위): 왼쪽 솔가지 옆에 빼꼼 시바, 오른쪽 솔가지 옆에 선물 든 고양이.
   · 눈 무늬의 '끊기지 않는 흰 띠'는 배너 윗선 기준 -2px ~ +2px (그 아래는 물결 모양이라 사이사이로 배너가 비침)
   · 빼꼼 시바: 눈 더미 뒤에서 쏙 올라왔다 내려감. 상자(넘치는 부분 숨김)의 아래 끝을 흰 띠 안(윗선 +1px)에 두고 그림은 상자 안에서만 움직여서,
     눈 아래(배너 위)로는 몸이 절대 비치지 않음 (z 7 < 눈 8)
   · 선물 든 고양이: 눈 위에 앉음 — 발끝이 흰 띠 안(윗선 +1px)에 살짝 묻힘 (z 9) */
body.season-christmas .xm-char-peek {
  left: 150px;
  bottom: calc(100% - 1px);
  width: 64px;
  aspect-ratio: 259 / 260;
  background: none;
  overflow: hidden;
  z-index: 7;
}
body.season-christmas .xm-char-peek::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: url("images/ch_shiba_peek.webp") center bottom / contain no-repeat;
  transform-origin: 50% 100%;
  animation: xm-peek-up 6s ease-in-out infinite;
}
@keyframes xm-peek-up {                       /* 모자만 보이다가 → 쏙 올라옴 → 잠깐 있다가 → 다시 내려감 */
  0%, 12%, 100% { transform: translateY(62%); }
  24%           { transform: translateY(-3%); }
  29%, 82%      { transform: translateY(0); }
}
body.season-christmas .xm-char-cat {
  right: 150px;
  bottom: calc(100% - 1px);
  width: 62px;
  aspect-ratio: 237 / 260;
  background-image: url("images/ch_cat.webp");
  transform-origin: 50% 100%;
  animation: xm-sway 4.4s ease-in-out infinite;
  z-index: 9;
}
body.season-christmas .xm-rb {
  position: relative;
}
body.season-christmas .xm-char-girl {
  display: none;
  right: 30px;
  bottom: calc(100% - 3px);
  width: 66px;
  aspect-ratio: 248 / 240;
  background-image: url("images/ch_girl.webp");
  transform-origin: 50% 100%;
  animation: xm-peek 6s ease-in-out -2s infinite;
}
@media (min-width: 1024px) {
  body.season-christmas .xm-char-girl { display: block; }
}
@keyframes xm-breathe {
  0%, 100% { transform: scale(1, 1); }
  50%      { transform: scale(1.02, 1.045); }
}
@keyframes xm-peek {
  0%, 16%, 100% { transform: translateY(18%); }
  28%, 82%      { transform: translateY(0); }
}
@keyframes xm-sway {
  0%, 100% { transform: rotate(-3deg); }
  50%      { transform: rotate(3deg); }
}
/* 빼꼼 캐릭터는 위아래로 움직이므로 박스 위 가장자리 아래로 내려간 부분이 안 보이게 잘라 줌 */
body.season-christmas .xm-char-girl {
  clip-path: inset(-40% -10% 0 -10%);
}
@media (max-width: 767px) {
  body.season-christmas .xm-char-sleep { right: 18px; width: 84px; bottom: calc(100% - 7px); }
  body.season-christmas .xm-char-peek  { left: 48px; width: 50px; bottom: calc(100% - 1px); }
  body.season-christmas .xm-char-cat   { right: 46px; width: 48px; bottom: calc(100% - 1px); }
}

/* ── 8-1. 잠자는 시바: zzz 가 올라가고, 누르면(클릭·터치·엔터) 눈을 비비며 일어남 ──
   season.js addSleeper() 가 만드는 구조 (장식 중 이것 하나만 누를 수 있음 — 누르는 범위는 자는 그림 크기 그대로, 박스와 배너 사이 빈 자리)
     .xm-char.xm-char-sleep.is-○○
       i.xm-sh-a      자는 그림 (ch_shiba_sleep.webp)
       i.xm-sh-b      깨는 그림 4칸 띠 (ch_shiba_wake.webp 1296×188, 한 칸 324×188 — 졸린 눈 · 눈 비비기 1 · 눈 비비기 2 · 깬 모습)
                      .xm-sh-load 가 붙어야 그림을 받음 (페이지가 다 뜬 뒤 또는 처음 눌렀을 때 — 첫 화면 용량을 늘리지 않으려고)
       span.xm-zzz    z 글자 3개 (자는 동안만 보임)
       i.xm-sh-heart  깼을 때 톡 튀어 오르는 하트
   상태 (season.js 가 바꿈): is-sleep 자는 중 → is-waking 졸린 눈 → is-rub 눈 비비기 → is-awake 깸 → is-dozing 다시 졸림 → is-sleep
   깨는 그림 칸의 위치·크기 수치는 build_wake.py 가 자는 그림에 맞춰 계산해 출력한 값 */
body.season-christmas .xm-char-sleep {
  pointer-events: auto;
  cursor: pointer;
  background: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
  outline: none;
}
body.season-christmas .xm-char-sleep:focus-visible {
  outline: 2px solid #ffd76a;
  outline-offset: 4px;
  border-radius: 10px;
}
body.season-christmas .xm-char-sleep i,
body.season-christmas .xm-char-sleep span {
  pointer-events: none;
}
body.season-christmas .xm-sh-a {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: url("images/ch_shiba_sleep.webp") center bottom / contain no-repeat;
  transform-origin: 50% 100%;
  animation: xm-breathe 3.6s ease-in-out infinite;
}
body.season-christmas .xm-sh-b {
  position: absolute;
  left: -0.62%;
  bottom: -2.03%;
  width: 101.41%;
  aspect-ratio: 649 / 377;
  background-repeat: no-repeat;
  background-size: 400% 100%;
  background-position: 0 0;
  transform-origin: 50% 100%;
  opacity: 0;
}
body.season-christmas .xm-char-sleep.xm-sh-load .xm-sh-b {
  background-image: url("images/ch_shiba_wake.webp");
}
/* 상태별로 보이는 그림 */
body.season-christmas .xm-char-sleep:not(.is-sleep) .xm-sh-a { opacity: 0; animation: none; }
body.season-christmas .xm-char-sleep:not(.is-sleep) .xm-sh-b { opacity: 1; }
body.season-christmas .xm-char-sleep.is-waking .xm-sh-b {
  background-position: 0 0;
  animation: xm-sh-startle .55s ease-out 1;
}
body.season-christmas .xm-char-sleep.is-rub .xm-sh-b {
  animation: xm-sh-rub .44s step-end infinite, xm-sh-nod .88s ease-in-out infinite;
}
body.season-christmas .xm-char-sleep.is-awake .xm-sh-b {
  background-position: 100% 0;
  animation: xm-sh-hop .5s ease-out 1, xm-sh-happy 1.1s ease-in-out .5s infinite;
}
body.season-christmas .xm-char-sleep.is-dozing .xm-sh-b {
  background-position: 0 0;
  animation: xm-sh-doze 1.3s ease-in 1 forwards;
}
/* 자는 그림을 눌렀는데 깨는 그림을 아직 못 받았을 때: 제자리에서 꿈틀 */
body.season-christmas .xm-char-sleep.is-sleep.xm-sh-nudge .xm-sh-a {
  animation: xm-sh-startle .5s ease-out 1, xm-breathe 3.6s ease-in-out .5s infinite;
}
/* 깬 뒤 다시 누르면 한 번 더 폴짝 */
body.season-christmas .xm-char-sleep.is-awake.xm-sh-again .xm-sh-b {
  animation: xm-sh-hop2 .45s ease-out 1, xm-sh-happy 1.1s ease-in-out .45s infinite;
}
@keyframes xm-sh-startle {
  0%   { transform: scale(1, 1); }
  25%  { transform: scale(1.07, .88); }
  55%  { transform: translateY(-9%) scale(.96, 1.08); }
  80%  { transform: scale(1.02, .97); }
  100% { transform: scale(1, 1); }
}
@keyframes xm-sh-rub {
  0%   { background-position: 33.333% 0; }
  50%  { background-position: 66.667% 0; }
  100% { background-position: 33.333% 0; }
}
@keyframes xm-sh-nod {
  0%, 100% { transform: rotate(0deg); }
  50%      { transform: rotate(-1.6deg) scale(1, .985); }
}
@keyframes xm-sh-hop {
  0%   { transform: scale(1.06, .9); }
  40%  { transform: translateY(-20%) scale(.96, 1.07); }
  70%  { transform: translateY(0) scale(1.05, .93); }
  100% { transform: scale(1, 1); }
}
@keyframes xm-sh-hop2 {
  0%   { transform: scale(1.05, .92); }
  40%  { transform: translateY(-14%) scale(.97, 1.05); }
  70%  { transform: translateY(0) scale(1.04, .95); }
  100% { transform: scale(1, 1); }
}
@keyframes xm-sh-happy {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  50%      { transform: translateY(-3%) scale(.99, 1.025); }
}
@keyframes xm-sh-doze {
  0%   { transform: scale(1, 1); }
  45%  { transform: scale(1.01, .97) rotate(-1.5deg); }
  65%  { transform: scale(1, .99) rotate(0deg); }
  100% { transform: scale(1.03, .9) rotate(-2deg); }
}
/* zzz: 머리 위에서 시작해 오른쪽 위로 커지면서 올라가다 사라짐. 글자 3개가 1.2초 간격으로 줄지어 올라감 */
body.season-christmas .xm-zzz {
  position: absolute;
  left: 43%;
  top: 0;
  width: 0;
  height: 0;
  font-size: 15px;
  font-weight: 800;
  font-style: italic;
  line-height: 1;
  transition: opacity .5s ease .2s;
}
body.season-christmas .xm-zzz b {
  position: absolute;
  left: 0;
  top: -.7em;
  font-weight: inherit;
  color: #fff;
  text-shadow: 0 1px 0 #1d3f86, 1px 0 0 #1d3f86, -1px 0 0 #1d3f86, 0 -1px 0 #1d3f86, 0 0 6px rgba(150, 200, 255, .9);
  opacity: 0;
  transform-origin: 50% 100%;
  animation: xm-zzz 3.6s linear infinite;
}
body.season-christmas .xm-zzz b:nth-child(2) { animation-delay: -1.2s; }
body.season-christmas .xm-zzz b:nth-child(3) { animation-delay: -2.4s; }
body.season-christmas .xm-char-sleep:not(.is-sleep) .xm-zzz {
  opacity: 0;
  transition: opacity .15s ease;
}
@keyframes xm-zzz {
  0%   { transform: translate(0, 0) scale(.5) rotate(-10deg); opacity: 0; }
  10%  { opacity: 1; }
  35%  { transform: translate(.75em, -.9em) scale(.8) rotate(6deg); }
  70%  { transform: translate(1em, -2em) scale(1.12) rotate(-6deg); opacity: .95; }
  100% { transform: translate(1.7em, -3.1em) scale(1.4) rotate(5deg); opacity: 0; }
}
/* 하트: 깼을 때(.xm-sh-pop) 머리 위로 톡 */
body.season-christmas .xm-sh-heart {
  position: absolute;
  left: 22%;
  top: -52%;
  width: 20%;
  aspect-ratio: 24 / 22;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M12 20.4C5.2 15.2 1.6 11.5 1.6 7.4 1.6 4.3 4 2 6.9 2c1.9 0 3.7.9 5.1 2.7C13.4 2.9 15.2 2 17.1 2c2.9 0 5.3 2.3 5.3 5.4 0 4.1-3.6 7.8-10.4 13z' fill='%23ff5d7e' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0;
  transform: scale(0);
  transform-origin: 50% 100%;
}
body.season-christmas .xm-char-sleep.xm-sh-pop .xm-sh-heart {
  animation: xm-sh-heart 1.15s ease-out 1;
}
@keyframes xm-sh-heart {
  0%   { transform: translateY(40%) scale(0) rotate(-12deg); opacity: 0; }
  25%  { transform: translateY(0) scale(1.2) rotate(6deg); opacity: 1; }
  45%  { transform: translateY(-10%) scale(1) rotate(-4deg); opacity: 1; }
  100% { transform: translateY(-90%) scale(.9) rotate(4deg); opacity: 0; }
}
@media (max-width: 767px) {
  body.season-christmas .xm-zzz { font-size: 12px; }
}

/* ── 8-2. 떨고 있는 소녀와 남자친구: 누르면 핫팩 → 둘이 트리로 → 소원 빌기 (season.js addCouple) ──
   '편지에 마음을 더하다' 박스 위 가장자리가 무대. 박스 위쪽에 여유(margin-top)를 조금 더 두어 서 있는 캐릭터·트리가 위 배너를 가리지 않게 함
   구조
     .xm-couple.is-○○                 무대 (박스 폭 전체, 누를 수 없음)
       i.xm-cp-tree                   트리 (deco_tree.webp) + 별 빛(b.xm-cp-glow) + 반짝이(.xm-star 3개)
       div.xm-cp-girl[role=button]    떨고 있는 소녀 — 이것만 누를 수 있음
         i.xm-cp-ga                   떠는 그림 (ch_cp_girl.webp, 올려 주신 원본)
         i.xm-cp-gb                   올려다봄 · 핫팩 든 그림 (동작 띠 1·2번 칸)
         i.xm-cp-shv ×2 · i.xm-cp-puff · i.xm-cp-bang · i.xm-cp-heart   떨림 선 · 입김 · 느낌표 · 하트
       i.xm-cp-boy > i                남자친구 (동작 띠 3~5번 칸: 걷기 2장 · 핫팩 건넴). 바깥은 위치, 안쪽은 그림
       i.xm-cp-pair > i               둘이 함께 (동작 띠 6~9번 칸: 걷기 2장 · 소원 빌기 · 활짝)
       span.xm-cp-bubble              소원 말풍선
       i.xm-cp-spark ×6               소원 빌 때 올라가는 반짝이
   동작 띠 = images/ch_cp_act.webp (2700×252, 9칸 · 칸 300×252 · 칸 안에서 서 있는 소년 키 228px, 발 가운데가 칸 가운데)
   크기는 전부 --b(서 있는 소년 키) 하나로 정함: 칸 높이 = b×252/228, 칸 폭 = b×300/228, 앉은 소녀 = b×0.74, 트리 = b×1.12
   가로 위치(발 가운데 기준): --girl-x 소녀 · --boy-to 남자친구가 멈추는 곳 · --tree-x 트리 · --wish-x 소원 비는 곳 · --boy-from 남자친구가 나타나는 곳
   상태: is-idle 떨고 있음 → is-come 남자친구가 걸어옴(+cp-notice 소녀가 올려다봄) → is-give 핫팩 건넴(+cp-warm 받음)
         → is-walk 둘이 걸어감 → is-wish 눈 감고 소원 → is-happy 활짝 + 말풍선(+cp-again 한 번 더 폴짝) → is-leave 사라짐 → is-idle */
body.season-christmas .xm-box-extras {
  margin-top: 30px;                       /* 무대 높이 여유 (원래 간격 48px + 30px) */
}
body.season-christmas .xm-couple {
  --b: 76px;
  --girl-x: 40px;
  --tree-x: max(214px, min(100% - 46px, 470px));
  --boy-to: calc(var(--girl-x) + var(--b) * .62);
  --wish-x: calc(var(--tree-x) - var(--b) * .92);
  --boy-from: calc(var(--tree-x) - var(--b) * .34);
  --pair-from: calc(var(--girl-x) + var(--b) * .34);
  --cp-come: 2300ms;
  --cp-walk: 2500ms;
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% - 9px);
  height: calc(var(--b) * 1.2);
  pointer-events: none;
  z-index: 2;
}
@media (min-width: 768px) {
  body.season-christmas .xm-box-extras { margin-top: 40px; }
  body.season-christmas .xm-couple {
    --b: 90px;
    --girl-x: 64px;
    --tree-x: max(214px, min(100% - 62px, 600px));
  }
}
body.season-christmas .xm-couple i,
body.season-christmas .xm-couple b,
body.season-christmas .xm-couple span {
  position: absolute;
  display: block;
  pointer-events: none;
}
/* 트리 */
body.season-christmas .xm-cp-tree {
  left: var(--tree-x);
  bottom: 0;
  width: calc(var(--b) * 1.12 * 201 / 300);
  aspect-ratio: 201 / 300;
  margin-left: calc(var(--b) * -1.12 * 201 / 600);
  background: url("images/deco_tree.webp") center bottom / contain no-repeat;
  transform-origin: 50% 100%;
  animation: xm-cp-tree 6s ease-in-out infinite;
}
@keyframes xm-cp-tree {
  0%, 100% { transform: rotate(-1.2deg); }
  50%      { transform: rotate(1.2deg); }
}
body.season-christmas .xm-cp-glow {                 /* 꼭대기 별의 빛 (별 가운데 = 트리 그림의 50.2% · 10.4%) */
  left: 50.2%;
  top: 10.4%;
  width: 62%;
  aspect-ratio: 1;
  margin: -31% 0 0 -31%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 240, 170, .9) 0%, rgba(255, 215, 95, .4) 34%, rgba(255, 215, 95, 0) 68%);
  opacity: .5;
  animation: xm-cp-glow 2.8s ease-in-out infinite;
}
@keyframes xm-cp-glow {
  0%, 100% { opacity: .35; transform: scale(.85); }
  50%      { opacity: .7;  transform: scale(1.08); }
}
body.season-christmas .xm-couple .xm-cp-tw1 { left: -12%; top: 30%; width: 9px;  height: 9px;  animation-delay: -.6s; }
body.season-christmas .xm-couple .xm-cp-tw2 { left: 96%;  top: 44%; width: 8px;  height: 8px;  animation-delay: -1.8s; animation-duration: 2.6s; }
body.season-christmas .xm-couple .xm-cp-tw3 { left: 74%;  top: 2%;  width: 7px;  height: 7px;  animation-delay: -2.6s; animation-duration: 3.4s; }
body.season-christmas .xm-couple.is-wish .xm-cp-glow,
body.season-christmas .xm-couple.is-happy .xm-cp-glow {
  animation: xm-cp-glow-on 1.1s ease-in-out infinite;
}
@keyframes xm-cp-glow-on {
  0%, 100% { opacity: .75; transform: scale(1.25); }
  50%      { opacity: 1;   transform: scale(1.7); }
}

/* 떨고 있는 소녀 (누르는 곳) */
body.season-christmas .xm-cp-girl {
  position: absolute;
  left: var(--girl-x);
  bottom: 0;
  width: calc(var(--b) * .74 * 137 / 190);
  height: calc(var(--b) * .74);
  margin-left: calc(var(--b) * -.74 * 137 / 380);
  pointer-events: auto;
  cursor: pointer;
  outline: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}
body.season-christmas .xm-cp-girl::before {          /* 손가락으로 누르기 좋게 범위를 조금 넓힘 */
  content: "";
  position: absolute;
  left: -9px;
  right: -9px;
  top: -8px;
  bottom: -2px;
}
body.season-christmas .xm-cp-girl:focus-visible {
  outline: 2px dashed rgba(255, 255, 255, .9);
  outline-offset: 4px;
  border-radius: 12px;
}
body.season-christmas .xm-cp-ga {
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: url("images/ch_cp_girl.webp") center bottom / contain no-repeat;
  transform-origin: 50% 100%;
  animation: xm-cp-shiver 1.9s linear infinite;
}
/* 오돌오돌: 1.9초마다 1초쯤 잘게 떨고 잠깐 쉼 */
@keyframes xm-cp-shiver {
  0%, 54%, 100% { transform: translateX(0) rotate(0); }
  4%, 12%, 20%, 28%, 36%, 44% { transform: translateX(-1px) rotate(-1.5deg); }
  8%, 16%, 24%, 32%, 40%, 48% { transform: translateX(1px) rotate(1.5deg); }
}
/* 동작 띠를 쓰는 세 겹(소녀 2칸 · 남자친구 · 둘이): 그림은 누를 때(또는 페이지가 다 뜬 뒤) 받음 */
body.season-christmas .xm-cp-gb,
body.season-christmas .xm-cp-boy,
body.season-christmas .xm-cp-pair {
  bottom: 0;
  width: calc(var(--b) * 300 / 228);
  height: calc(var(--b) * 252 / 228);
  margin-left: calc(var(--b) * -150 / 228);
}
body.season-christmas .xm-cp-gb,
body.season-christmas .xm-cp-boy > i,
body.season-christmas .xm-cp-pair > i {
  background-repeat: no-repeat;
  background-size: 900% 100%;
  transform-origin: 50% 100%;
}
body.season-christmas .xm-couple.xm-cp-load .xm-cp-gb,
body.season-christmas .xm-couple.xm-cp-load .xm-cp-boy > i,
body.season-christmas .xm-couple.xm-cp-load .xm-cp-pair > i {
  background-image: url("images/ch_cp_act.webp");
}
body.season-christmas .xm-cp-gb { left: 50%; background-position: 0 0; opacity: 0; }
body.season-christmas .xm-cp-boy > i,
body.season-christmas .xm-cp-pair > i { left: 0; top: 0; width: 100%; height: 100%; }

/* 떨림 선 · 입김 (떨고 있을 때만) */
body.season-christmas .xm-cp-shv {
  top: 38%;
  width: 16%;
  height: 34%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 26'%3E%3Cpath d='M6 1.5C2 4.5 8.5 7.5 4.5 11S8 17 4 20.5 5.5 24 5 24.5' fill='none' stroke='%23cfe4ff' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: xm-cp-shv 1.9s linear infinite;
}
body.season-christmas .xm-cp-shv-l { left: -20%; }
body.season-christmas .xm-cp-shv-r { right: -20%; transform: scaleX(-1); }
@keyframes xm-cp-shv {
  0%, 2%, 54%, 100% { opacity: 0; }
  6%, 48%           { opacity: .95; }
}
body.season-christmas .xm-cp-puff {
  left: 62%;
  top: 40%;
  width: 22%;
  aspect-ratio: 1.3;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, .85) 0%, rgba(255, 255, 255, .35) 55%, rgba(255, 255, 255, 0) 75%);
  opacity: 0;
  animation: xm-cp-puff 3.8s ease-out infinite;
}
@keyframes xm-cp-puff {
  0%, 55% { opacity: 0; transform: translate(0, 0) scale(.4); }
  62%     { opacity: .9; transform: translate(10%, -10%) scale(.7); }
  100%    { opacity: 0; transform: translate(90%, -110%) scale(1.5); }
}
/* 느낌표(알아봄) · 하트(따뜻해짐) */
body.season-christmas .xm-cp-bang {
  left: 76%;
  top: -24%;
  width: 40%;
  aspect-ratio: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5 14 13h-4z' fill='%23ffd84d' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round'/%3E%3Ccircle cx='12' cy='19' r='2.6' fill='%23ffd84d' stroke='%23fff' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0;
  transform: scale(0);
  transform-origin: 30% 100%;
}
body.season-christmas .xm-cp-heart {
  left: 30%;
  top: -30%;
  width: 34%;
  aspect-ratio: 24 / 22;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M12 20.4C5.2 15.2 1.6 11.5 1.6 7.4 1.6 4.3 4 2 6.9 2c1.9 0 3.7.9 5.1 2.7C13.4 2.9 15.2 2 17.1 2c2.9 0 5.3 2.3 5.3 5.4 0 4.1-3.6 7.8-10.4 13z' fill='%23ff5d7e' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0;
  transform: scale(0);
  transform-origin: 50% 100%;
}

/* 남자친구 · 둘이 함께: 처음엔 안 보임 */
body.season-christmas .xm-cp-boy  { left: var(--boy-from); opacity: 0; }
body.season-christmas .xm-cp-pair { left: var(--pair-from); opacity: 0; }
body.season-christmas .xm-cp-boy > i  { background-position: 25% 0; transform: scaleX(-1); }      /* 왼쪽(소녀 쪽)을 보게 뒤집음 */
body.season-christmas .xm-cp-pair > i { background-position: 62.5% 0; }

/* ① 떨고 있음 — 그림을 아직 못 받았는데 눌렀을 때: 움찔 */
body.season-christmas .xm-couple.is-idle.cp-nudge .xm-cp-ga { animation: xm-cp-nudge .5s ease-out 1, xm-cp-shiver 1.9s linear .5s infinite; }
@keyframes xm-cp-nudge {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  35%      { transform: translateY(-7%) scale(.97, 1.04); }
  70%      { transform: translateY(0) scale(1.03, .97); }
}
/*    다시 처음으로 돌아왔을 때: 스르르 나타남 */
body.season-christmas .xm-couple.is-idle.cp-back .xm-cp-girl { animation: xm-cp-fade .7s ease-out 1; }
@keyframes xm-cp-fade { 0% { opacity: 0; } 100% { opacity: 1; } }

/* ② 남자친구가 걸어옴 */
body.season-christmas .xm-couple.is-come .xm-cp-boy {
  left: var(--boy-to);
  opacity: 1;
  transition: left var(--cp-come) linear, opacity .4s ease;
}
body.season-christmas .xm-couple.is-come .xm-cp-boy > i {
  animation: xm-cp-step-b .56s steps(1) infinite, xm-cp-bob-f .28s ease-in-out infinite;
}
@keyframes xm-cp-step-b { 0% { background-position: 25% 0; } 50% { background-position: 37.5% 0; } }
@keyframes xm-cp-bob-f {
  0%, 100% { transform: scaleX(-1) translateY(0); }
  50%      { transform: scaleX(-1) translateY(-3.5%); }
}
/*    소녀가 알아보고 올려다봄 */
body.season-christmas .xm-couple.cp-notice .xm-cp-ga { opacity: 0; animation: none; }
body.season-christmas .xm-couple.cp-notice .xm-cp-gb { opacity: 1; }
body.season-christmas .xm-couple.cp-notice .xm-cp-shv,
body.season-christmas .xm-couple.cp-notice .xm-cp-puff { animation: none; opacity: 0; }
body.season-christmas .xm-couple.is-come.cp-notice .xm-cp-gb { animation: xm-cp-pop .45s cubic-bezier(.3, 1.6, .5, 1) 1; }
body.season-christmas .xm-couple.is-come.cp-notice .xm-cp-bang { animation: xm-cp-bang 1.1s ease-out 1 forwards; }
@keyframes xm-cp-pop {
  0%   { transform: scale(1.04, .93); }
  55%  { transform: scale(.97, 1.06) translateY(-4%); }
  100% { transform: none; }
}
@keyframes xm-cp-bang {
  0%   { opacity: 0; transform: scale(0) rotate(-20deg); }
  22%  { opacity: 1; transform: scale(1.25) rotate(8deg); }
  40%, 78% { opacity: 1; transform: scale(1) rotate(0); }
  100% { opacity: 0; transform: scale(.7) translateY(-30%); }
}

/* ③ 핫팩 건넴 → 받음 */
body.season-christmas .xm-couple.is-give .xm-cp-boy { left: var(--boy-to); opacity: 1; }
body.season-christmas .xm-couple.is-give .xm-cp-boy > i {
  background-position: 50% 0;
  animation: xm-cp-give .5s cubic-bezier(.3, 1.5, .5, 1) 1;
}
@keyframes xm-cp-give {
  0%   { transform: scaleX(-1) rotate(0); }
  50%  { transform: scaleX(-1) rotate(-5deg) translateY(-2%); }
  100% { transform: scaleX(-1) rotate(0); }
}
body.season-christmas .xm-couple.is-give.cp-warm .xm-cp-boy > i { background-position: 25% 0; animation: none; }
body.season-christmas .xm-couple.is-give.cp-warm .xm-cp-gb {
  background-position: 12.5% 0;
  animation: xm-cp-warm .9s ease-in-out 1;
}
@keyframes xm-cp-warm {
  0%   { transform: scale(1.05, .92); }
  30%  { transform: scale(.96, 1.07) translateY(-6%); }
  55%  { transform: scale(1.02, .98); }
  78%  { transform: rotate(-2.5deg); }
  100% { transform: none; }
}
body.season-christmas .xm-couple.is-give.cp-warm .xm-cp-heart { animation: xm-cp-heart 1.5s ease-out 1 forwards; }
@keyframes xm-cp-heart {
  0%   { opacity: 0; transform: translateY(40%) scale(0) rotate(-12deg); }
  22%  { opacity: 1; transform: translateY(0) scale(1.25) rotate(6deg); }
  45%  { opacity: 1; transform: translateY(-12%) scale(1) rotate(-4deg); }
  100% { opacity: 0; transform: translateY(-90%) scale(.8) rotate(4deg); }
}

/* ④ 둘이 손잡고 트리로 — 따로 있던 두 그림은 숨기고 '둘이 함께' 그림이 걸어감 */
body.season-christmas .xm-couple.is-walk .xm-cp-girl,
body.season-christmas .xm-couple.is-wish .xm-cp-girl,
body.season-christmas .xm-couple.is-happy .xm-cp-girl,
body.season-christmas .xm-couple.is-leave .xm-cp-girl { opacity: 0; pointer-events: none; }
body.season-christmas .xm-couple.is-walk .xm-cp-pair {
  left: var(--wish-x);
  opacity: 1;
  transition: left var(--cp-walk) linear;
}
body.season-christmas .xm-couple.is-walk .xm-cp-pair > i {
  animation: xm-cp-step-p .6s steps(1) infinite, xm-cp-bob .3s ease-in-out infinite;
}
@keyframes xm-cp-step-p { 0% { background-position: 62.5% 0; } 50% { background-position: 75% 0; } }
@keyframes xm-cp-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3.5%); }
}

/* ⑤ 소원 빌기(눈 감음) → 활짝 + 말풍선 */
body.season-christmas .xm-couple.is-wish .xm-cp-pair,
body.season-christmas .xm-couple.is-happy .xm-cp-pair { left: var(--wish-x); opacity: 1; }
body.season-christmas .xm-couple.is-wish .xm-cp-pair > i {
  background-position: 87.5% 0;
  animation: xm-cp-pray 2.3s ease-in-out 1;
}
@keyframes xm-cp-pray {
  0%   { transform: scale(1.03, .96); }
  12%  { transform: none; }
  50%  { transform: translateY(1.5%) scale(1.01, .985); }
  100% { transform: none; }
}
body.season-christmas .xm-couple.is-happy .xm-cp-pair { pointer-events: auto; cursor: pointer; -webkit-tap-highlight-color: transparent; }
body.season-christmas .xm-couple.is-happy .xm-cp-pair > i {
  background-position: 100% 0;
  animation: xm-cp-hop .75s cubic-bezier(.3, 1.4, .5, 1) 1, xm-cp-happy 2.4s ease-in-out .75s infinite;
}
body.season-christmas .xm-couple.is-happy.cp-again .xm-cp-pair > i {
  animation: xm-cp-hop2 .6s cubic-bezier(.3, 1.4, .5, 1) 1, xm-cp-happy 2.4s ease-in-out .6s infinite;
}
@keyframes xm-cp-hop {
  0%   { transform: scale(1.06, .9); }
  40%  { transform: translateY(-13%) scale(.97, 1.05); }
  70%  { transform: translateY(0) scale(1.03, .96); }
  100% { transform: none; }
}
@keyframes xm-cp-hop2 {
  0%   { transform: scale(1.05, .92); }
  45%  { transform: translateY(-10%) scale(.98, 1.04); }
  75%  { transform: translateY(0) scale(1.02, .97); }
  100% { transform: none; }
}
@keyframes xm-cp-happy {
  0%, 100% { transform: rotate(-1.4deg); }
  50%      { transform: rotate(1.4deg); }
}
/* 말풍선: 두 사람의 왼쪽(소녀가 앉아 있던 빈 자리 위)에 뜸 */
body.season-christmas .xm-couple .xm-cp-bubble {
  right: calc(100% - var(--wish-x) + var(--b) * .60);
  bottom: calc(var(--b) * .44);
  max-width: min(200px, calc(var(--wish-x) - var(--b) * .60 - 8px));
  padding: 7px 11px;
  border-radius: 13px;
  background: #fff;
  color: #c0262d;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -.01em;
  text-align: center;
  word-break: keep-all;
  box-shadow: 0 3px 10px rgba(0, 10, 40, .38);
  opacity: 0;
  transform: translateY(6px) scale(.85);
  transform-origin: 100% 70%;
  transition: opacity .25s ease, transform .35s cubic-bezier(.3, 1.5, .5, 1);
}
body.season-christmas .xm-couple .xm-cp-bubble::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 55%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  background: #fff;
  border-radius: 2px;
  transform: rotate(45deg);
}
body.season-christmas .xm-couple.is-happy .xm-cp-bubble { opacity: 1; transform: none; }
@media (min-width: 768px) {
  body.season-christmas .xm-couple .xm-cp-bubble { font-size: 14px; padding: 9px 14px; max-width: min(250px, calc(var(--wish-x) - var(--b) * .60 - 8px)); }
}
/* 올라가는 반짝이: 소원 빌 때 트리와 두 사람 주변에서 */
body.season-christmas .xm-cp-spark {
  bottom: 30%;
  width: 9px;
  height: 9px;
  background:
    linear-gradient(#fff6c4, #fff6c4) center / 100% 22% no-repeat,
    linear-gradient(#fff6c4, #fff6c4) center / 22% 100% no-repeat;
  border-radius: 50%;
  filter: drop-shadow(0 0 3px rgba(255, 226, 120, .95));
  opacity: 0;
}
body.season-christmas .xm-cp-spark-1 { left: calc(var(--wish-x) - var(--b) * .50); }
body.season-christmas .xm-cp-spark-2 { left: calc(var(--wish-x) - var(--b) * .10); width: 7px; height: 7px; }
body.season-christmas .xm-cp-spark-3 { left: calc(var(--wish-x) + var(--b) * .30); }
body.season-christmas .xm-cp-spark-4 { left: calc(var(--tree-x) - var(--b) * .20); width: 7px; height: 7px; }
body.season-christmas .xm-cp-spark-5 { left: calc(var(--tree-x) + var(--b) * .12); }
body.season-christmas .xm-cp-spark-6 { left: calc(var(--tree-x) + var(--b) * .36); width: 6px; height: 6px; }
body.season-christmas .xm-couple.is-wish .xm-cp-spark,
body.season-christmas .xm-couple.is-happy .xm-cp-spark { animation: xm-cp-rise 2.1s ease-out infinite; }
body.season-christmas .xm-couple .xm-cp-spark-2 { animation-delay: .5s !important; }
body.season-christmas .xm-couple .xm-cp-spark-3 { animation-delay: 1.1s !important; }
body.season-christmas .xm-couple .xm-cp-spark-4 { animation-delay: .25s !important; }
body.season-christmas .xm-couple .xm-cp-spark-5 { animation-delay: .85s !important; }
body.season-christmas .xm-couple .xm-cp-spark-6 { animation-delay: 1.5s !important; }
@keyframes xm-cp-rise {
  0%   { opacity: 0; transform: translateY(0) scale(.3) rotate(0); }
  18%  { opacity: 1; transform: translateY(-40%) scale(1) rotate(30deg); }
  100% { opacity: 0; transform: translateY(-520%) scale(.5) rotate(140deg); }
}

/* ⑥ 사라짐 → 처음으로 */
body.season-christmas .xm-couple.is-leave .xm-cp-pair { left: var(--wish-x); opacity: 0; transition: opacity .6s ease; }
body.season-christmas .xm-couple.is-leave .xm-cp-pair > i { background-position: 100% 0; }

/* ── 8-3. "로그인해야 해!" 말풍선 — 비로그인이 누르는 캐릭터(시바 · 소녀 · 낚시냥)를 눌렀을 때 (season.js sayLogin) ──
   캐릭터 요소 안에 span.xm-need 를 하나 붙이고 .on 을 2.3초 동안 켬. 캐릭터는 움직이지 않음. 누를 수 없음 */
body.season-christmas .xm-need {
  position: absolute !important;
  display: block;
  left: 50%;
  bottom: calc(100% + 9px);
  z-index: 30;
  padding: 6px 11px 7px;
  border-radius: 13px;
  background: #fff;
  color: #c0262d;
  font-size: 12.5px;
  font-weight: 800;
  font-style: normal;
  line-height: 1.3;
  letter-spacing: -.01em;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(0, 10, 40, .42);
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%) translateY(6px) scale(.85);
  transform-origin: 50% 100%;
  transition: opacity .2s ease, transform .3s cubic-bezier(.3, 1.5, .5, 1);
}
body.season-christmas .xm-need::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 11px;
  height: 11px;
  margin-left: -5.5px;
  background: #fff;
  border-radius: 2px;
  transform: rotate(45deg);
}
body.season-christmas .xm-need.on { opacity: 1; transform: translateX(-50%); }
/* 자는 시바(박스 오른쪽 끝): 화면 밖으로 나가지 않게 오른쪽 맞춤 */
body.season-christmas .xm-char-sleep > .xm-need { left: auto; right: 2px; bottom: calc(100% + 4px); transform: translateY(6px) scale(.85); transform-origin: 70% 100%; }
body.season-christmas .xm-char-sleep > .xm-need.on { transform: none; }
body.season-christmas .xm-char-sleep > .xm-need::after { left: auto; right: 34px; margin-left: 0; }
/* 떨고 있는 소녀(박스 왼쪽): 왼쪽 맞춤 */
body.season-christmas .xm-cp-girl > .xm-need { left: -8px; bottom: calc(100% + 6px); transform: translateY(6px) scale(.85); transform-origin: 26% 100%; }
body.season-christmas .xm-cp-girl > .xm-need.on { transform: none; }
body.season-christmas .xm-cp-girl > .xm-need::after { left: 22px; margin-left: 0; }
/* 낚시냥 — 모바일(오른쪽 끝): 오른쪽 맞춤 / PC(카톡 버튼 아래): 왼쪽 옆으로 */
body.season-christmas .xm-fish > .xm-need { left: auto; right: -6px; transform: translateY(6px) scale(.85); transform-origin: 78% 100%; }
body.season-christmas .xm-fish > .xm-need.on { transform: none; }
body.season-christmas .xm-fish > .xm-need::after { left: auto; right: 26px; margin-left: 0; }
body.season-christmas .xm-fish:has(> .xm-need.on) .xm-fs-bubble { opacity: 0 !important; }   /* 혼자 낚아 뜬 말풍선과 겹치지 않게 */
body.season-christmas .xm-fish.xm-fish-pc > .xm-need { right: 84%; bottom: 44%; transform-origin: 100% 70%; }
body.season-christmas .xm-fish.xm-fish-pc > .xm-need::after { right: -5px; bottom: auto; top: 58%; margin-top: -5.5px; }
@media (min-width: 768px) {
  body.season-christmas .xm-need { font-size: 13.5px; padding: 7px 13px 8px; }
}

/* 제목 줄 캐릭터 — 이용안내: 선물 배달 고양이 (ch_post, 228×240) / 베스트 리뷰: 천사 고양이 (ch_angel, 408×400)
   천사 고양이는 양옆 빈 공간에 같은 캐릭터가 나오는 넓은 화면(1536px 이상)에서는 숨김 */
body.season-christmas .xm-row {
  position: relative;
}
body.season-christmas .xm-char-post {
  right: 28px;
  bottom: -8px;
  width: 70px;
  aspect-ratio: 228 / 240;
  background-image: url("images/ch_post.webp");
  transform-origin: 50% 100%;
  animation: xm-walk 1.3s ease-in-out infinite;
}
body.season-christmas .xm-char-angel {
  right: 22px;
  top: -34px;
  width: 80px;
  aspect-ratio: 408 / 400;
  background-image: url("images/ch_angel.webp");
  animation: xm-float 6.5s ease-in-out infinite;
}
@keyframes xm-walk {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-4px) rotate(2deg); }
}
@keyframes xm-float {
  0%, 100% { transform: translate(0, 0) rotate(-4deg); }
  50%      { transform: translate(-6px, -12px) rotate(4deg); }
}
@media (min-width: 1536px) {
  body.season-christmas .xm-char-angel { display: none; }
}
@media (max-width: 767px) {
  body.season-christmas .xm-char-post  { right: 16px; width: 56px; bottom: -4px; }
  body.season-christmas .xm-char-angel { right: 12px; top: -16px; width: 62px; }
}

/* ── 9. PC 양옆 빈 공간 캐릭터 (season.js 가 컨텐츠 열에 .xm-gut 를 붙임) ──
   컨텐츠 열(폭 1168px, relative) 기준 absolute. 배경 마을 그림(위쪽 약 700px) 아래에서 둥실둥실
   크기는 빈 공간 폭에 맞춰 커지되 최대치 제한 (--xm-gw). 빈 공간 가운데 = 중심점 - 폭/2
   왼쪽(천사 고양이 · 곰모자 고양이): 1536px 이상 / 오른쪽(선물 시바): 고정 사이드바 바깥 공간이 생기는 1860px 이상 */
body.season-christmas.xm-page-main .xm-gut {
  display: none;
  position: absolute;
  z-index: 0;
  width: var(--xm-gw);
  background: center / contain no-repeat;
  pointer-events: none;
  animation: xm-gut-float 13s ease-in-out infinite;
  will-change: transform;
}
body.season-christmas.xm-page-main .xm-gut-angel { top: 800px;  aspect-ratio: 408 / 400; background-image: url("images/ch_angel.webp"); animation-duration: 12.4s; }
body.season-christmas.xm-page-main .xm-gut-bear  { top: 52%;    aspect-ratio: 279 / 380; background-image: url("images/ch_bear.webp");  animation-duration: 15.2s; animation-delay: -3.1s; }
body.season-christmas.xm-page-main .xm-gut-shiba { top: 1180px; aspect-ratio: 302 / 380; background-image: url("images/ch_shiba_gift.webp"); animation-duration: 14s; animation-delay: -5.2s; }
/* 앉아 있는 캐릭터 밑에 작은 눈 더미 (공중에 뜬 눈구름처럼) */
body.season-christmas.xm-page-main .xm-gut-bear::after,
body.season-christmas.xm-page-main .xm-gut-shiba::after {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -7%;
  height: 22%;
  border-radius: 50%;
  background: radial-gradient(closest-side, #fff 0, #eaf2fb 55%, rgba(220, 234, 250, 0) 100%);
  z-index: -1;
}
@media (min-width: 1536px) {
  body.season-christmas.xm-page-main :is(.xm-gut-angel, .xm-gut-bear) {
    --xm-gw: min(200px, calc((100vw - 1168px) / 2 - 44px));
    --xm-sx: min(34px, calc(((100vw - 1168px) / 2 - var(--xm-gw)) / 2 - 6px));
    display: block;
    left: calc((1168px - 100vw) / 4 - var(--xm-gw) / 2);
  }
  body.season-christmas.xm-page-main .xm-gut-bear {
    --xm-gw: min(170px, calc((100vw - 1168px) / 2 - 50px));
  }
}
@media (min-width: 1860px) {
  body.season-christmas.xm-page-main .xm-gut-shiba {
    --xm-gw: min(180px, calc((100vw - 1168px) / 2 - 236px));
    --xm-sx: min(34px, calc(((100vw - 1168px) / 2 - 170px - var(--xm-gw)) / 2 - 12px));
    display: block;
    left: calc(1253px + (100vw - 1168px) / 4 - var(--xm-gw) / 2);
  }
}
@keyframes xm-gut-float {
  0%, 100% { transform: translate(0, 0) rotate(-4deg); }
  25%      { transform: translate(var(--xm-sx, 8px), -18px) rotate(3deg); }
  50%      { transform: translate(0, -34px) rotate(5deg); }
  75%      { transform: translate(calc(var(--xm-sx, 8px) * -1), -16px) rotate(-2deg); }
}

/* ── 10. 섹션 제목 왼쪽 아이콘 (96×96 이미지, PC 30px / 모바일 26px) ──
   제목에 id 가 없어 season.js 가 제목 글자를 보고 클래스를 붙임
   - 어떤 마음을 전할까요? → .xm-icon-gift     - 편지에 마음을 더하다 → .xm-icon-stocking
   - 편지왓숑 이용안내     → .xm-icon-tree     - 베스트 리뷰          → .xm-icon-bell
   - 공지사항              → .xm-icon-cane
   제목 옆에 "더보기"가 있는 줄은 .xm-title-row-more 도 붙음 (모바일 줄바꿈 방지용) */
body.season-christmas .xm-title-icon {
  display: flex;
  align-items: center;
  gap: 6px;
}
body.season-christmas .xm-title-icon::before {
  content: "";
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  background: center / contain no-repeat;
  pointer-events: none;
}
body.season-christmas .xm-icon-gift::before     { background-image: url("images/icon_gift.png"); }
body.season-christmas .xm-icon-stocking::before { background-image: url("images/icon_stocking.png"); }
body.season-christmas .xm-icon-tree::before     { background-image: url("images/icon_tree.png"); }
body.season-christmas .xm-icon-bell::before     { background-image: url("images/icon_bell.png"); }
body.season-christmas .xm-icon-cane::before     { background-image: url("images/icon_cane.png"); }
@media (max-width: 767px) {
  body.season-christmas .xm-title-icon::before { width: 26px; height: 26px; }
  body.season-christmas .xm-title-row-more .xm-title-icon { font-size: 20px; white-space: nowrap; }
  body.season-christmas .xm-title-row-more > a { flex-shrink: 0; white-space: nowrap; font-size: 14px; padding: 8px 4px; }
}

/* ── 11. 어두운 배경 위에 바로 놓인 글자 → 흰색 (흰 카드 안 글자는 그대로) ──
   - 편지왓숑 이용안내 묶음: div.max-w-7xl.md:py-8      - 베스트 리뷰 + 공지사항 묶음: div.gap-24.px-4
   - 카카오톡 "1:1 실시간상담" 글자 (PC 사이드바 · 떠 있는 버튼 — 둘 다 aria-label 이 "카카오톡 1:1 상담") */
body.season-christmas.xm-page-main a[aria-label="카카오톡 1:1 상담"] > span {   /* 모바일 하단 메뉴의 '상담'(흰 바탕)은 제외 */
  color: #fff;
  text-shadow: 0 0 3px rgba(0, 0, 0, .8), 0 1px 2px rgba(0, 0, 0, .6);
}
body.season-christmas.xm-page-main div.max-w-7xl.md\:py-8,
body.season-christmas.xm-page-main div.gap-24.px-4 {
  color: #fff;
}
body.season-christmas.xm-page-main div.max-w-7xl.md\:py-8 :is(.text-primary-black, .text-primary-black\/90),
body.season-christmas.xm-page-main div.gap-24.px-4 :is(.text-primary-black, .text-primary-black\/90) {
  color: #fff;
}
body.season-christmas.xm-page-main div.max-w-7xl.md\:py-8 :is(.text-gray-400, .text-gray-500, .text-gray-600, .text-gray-700),
body.season-christmas.xm-page-main div.gap-24.px-4 :is(.text-gray-400, .text-gray-500, .text-gray-600, .text-gray-700) {
  color: rgba(255, 255, 255, .74);
}
body.season-christmas.xm-page-main div.gap-24.px-4 :is(.hover\:bg-gray-50, .hover\:bg-gray-100):hover {
  background-color: rgba(255, 255, 255, .1);
}
body.season-christmas.xm-page-main div.gap-24.px-4 .divide-gray-200 > * + * {
  border-color: rgba(255, 255, 255, .2);
}
/* 공지 펼친 내용: 서버에서 오는 본문이라 글자색을 장담 못 해 흰 카드로 감싸고 원래 색 유지 */
body.season-christmas.xm-page-main div.gap-24.px-4 .notice-content {
  margin: 0 8px 12px;
  padding-top: 12px;
  background: #fff;
  border-radius: 8px;
}
body.season-christmas.xm-page-main div.gap-24.px-4 .notice-content .text-gray-700 { color: #374151; }
body.season-christmas.xm-page-main div.gap-24.px-4 .notice-content .text-gray-400 { color: #9ca3af; }

/* ── 11-1. 공지사항 뒤 큰 트리 (PC · 모바일 공통) — season.js addNoticeTree ──
   공지사항 구역(.xm-notice) 맨 뒤에 빛으로 그린 트리(images/bg_notice_tree.webp, 460×813, 투명 바탕) 한 그루.
   글자가 잘 읽히게 흐리게 깔고(가운데는 제목과 날짜 사이 빈 자리), 은은하게 밝아졌다 어두워짐. 누를 수 없음 */
body.season-christmas .xm-notice { position: relative; }
body.season-christmas .xm-notice > * { position: relative; z-index: 1; }
body.season-christmas .xm-notice > .xm-notice-tree {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: -24px;
  bottom: -10px;
  width: min(100%, 660px);
  transform: translateX(-50%);
  background: url("images/bg_notice_tree.webp") center top / contain no-repeat;
  opacity: .5;
  pointer-events: none;
  animation: xm-notice-tree 4.6s ease-in-out infinite;
}
@keyframes xm-notice-tree {
  0%, 100% { opacity: .42; }
  50%      { opacity: .6; }
}
@media (max-width: 767px) {
  /* 모바일: 목록이 길어 폭에만 맞추면 트리가 작아 보임 → 폭의 1.7배로 키워 가운데 맞춤(양옆은 화면 밖으로 살짝 잘림) */
  body.season-christmas .xm-notice > .xm-notice-tree {
    top: -6px; width: 100%; opacity: .4; background-size: 170% auto; background-position: center top;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);   /* 잘리는 양옆을 스르르 */
            mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
  }
  @keyframes xm-notice-tree {
    0%, 100% { opacity: .34; }
    50%      { opacity: .48; }
  }
}

/* ── 12. 움직임 줄이기 설정: 모든 장식 움직임 멈춤 (전구는 켜진 채로, 썰매는 숨김) ── */
@media (prefers-reduced-motion: reduce) {
  body.season-christmas .xm-bulb i,
  body.season-christmas .xm-bulb b,
  body.season-christmas .xm-star,
  body.season-christmas .xm-char,
  body.season-christmas.xm-page-main .xm-gut,
  body.season-christmas .xm-sleigh,
  body.season-christmas .xm-sleigh i {
    animation: none;
  }
  body.season-christmas .xm-bulb i { opacity: 1; }
  body.season-christmas .xm-bulb b { opacity: .7; }
  body.season-christmas .xm-star { opacity: .8; }
  body.season-christmas .xm-sky { display: none; }
  /* 잠자는 시바: zzz 는 멈춘 채로 세 글자가 비스듬히 보이게, 누르면 움직임 없이 그림만 바뀜 */
  body.season-christmas .xm-char-sleep i,
  body.season-christmas .xm-zzz b { animation: none !important; }
  body.season-christmas .xm-zzz b { opacity: .9; transform: translate(.2em, -.3em) scale(.6); }
  body.season-christmas .xm-zzz b:nth-child(2) { transform: translate(.8em, -1.2em) scale(.85); }
  body.season-christmas .xm-zzz b:nth-child(3) { transform: translate(1.4em, -2.3em) scale(1.15); }
  body.season-christmas .xm-char-sleep.is-rub .xm-sh-b { background-position: 33.333% 0; }
  body.season-christmas .xm-char-sleep.xm-sh-pop .xm-sh-heart { opacity: 1; transform: none; }
  body.season-christmas .xm-char-peek::before { animation: none; transform: none; }
  body.season-christmas .xm-snowman,
  body.season-christmas .xm-dr-foot i { animation: none !important; }
  /* 얼음낚시하는 냥이: 혼자 낚지 않고(season.js), 누르면 움직임 없이 대방어 그림과 말풍선만 */
  body.season-christmas .xm-fish i,
  body.season-christmas .xm-fish b { animation: none !important; }
  body.season-christmas .xm-fish .xm-fs-bubble { transition: none !important; }
  body.season-christmas .xm-fish .xm-fs-drop { display: none; }
  body.season-christmas .xm-notice > .xm-notice-tree { animation: none; }
  body.season-christmas .xm-need { transition: none !important; }
  /* 떨고 있는 소녀: 움직임 없이 그림만 — 누르면 걷는 과정 없이 바로 소원 장면(season.js), 떨림 선은 보인 채로 */
  body.season-christmas .xm-couple i,
  body.season-christmas .xm-couple b,
  body.season-christmas .xm-cp-girl { animation: none !important; transition: none !important; }
  body.season-christmas .xm-couple .xm-cp-bubble { transition: none !important; }
  body.season-christmas .xm-couple.is-idle .xm-cp-shv { opacity: .9; }
  body.season-christmas .xm-couple .xm-cp-glow { opacity: .6; }
  body.season-christmas .xm-couple .xm-cp-spark { display: none; }
}
