/* 아키브랩 계절 테마 — modules/season-xmas.css (2026-11-12 크리스마스, 2026-11-13 새해·설날·벚꽃·여름 바다·추석·단풍 추가)
   구조: 공통 규칙은 html.season-on, 테마별 값(색·그림·효과)은 html.season-<테마> 의 변수와 맨 아래 '테마별' 구역. 크리스마스 그림은 이 파일 안(데이터 주소), 나머지는 assets/season/*-<테마>.svg.
   모든 규칙은 html.season-on 아래에서만 걸린다. 그 클래스는 index.html 머리 스크립트가 관리자가 고른 기간(관리자 페이지 › 운영 › 시즌 테마, 한국 시각)이나
   미리보기 주소(?season=xmas)일 때 첫 그림 전에 붙인다 — 시즌이 아니면 이 파일은 아무것도 바꾸지 않는다.
   장식: ① 헤더 아래 전구 줄 ② 로고 A 위 산타 모자 ③ 상단 문구 색 ④ 홈 맨 위 인사 띠(홈에서만, 첫 그림부터 자리를 잡아 밀림 없음 —
         띠 안에 파랑새 아치·반짝이는 트리·방울·리본에 걸린 리스. 트리·리스 그림은 assets/season/ 의 SVG 를 시즌일 때만 배경으로 받는다)
         ⑤ 떠 있는 알(Archy)의 산타 모자 ⑥ 눈(.xmas-snow — season-xmas.js 가 load 뒤에 만든다)
   움직이는 것은 모두 transform·opacity 뿐인 CSS 애니메이션이라 메인 스레드를 쓰지 않고, 무한 장식 애니메이션이라
   눈은 고요에도 계속 내리고, 나머지 장식 애니메이션은 유휴 지배자가 '고요'일 때 저절로 멈춘다. 움직임 줄이기 설정이면 움직이지 않는다. */

.xmas-greet, .xmas-logo-hat { display: none; }

html.season-on {
  --xm-red: #d42a3c;
  --xm-green-l: #1b6b4b;
  --xb1: #d42a3c; --xb2: #e9b949; --xb3: #c9d6e3;   /* 매달린 방울 셋 */
  --xm-slogan: #d23c48; --xm-slogan-glow: 240, 90, 100;
  --xm-red-d: #a51d2d;
  --xm-green: #15573d;
  --xm-green-d: #0d3b29;
  --xm-gold: #f3cd7a;
  --xm-wire: #3d5a4a;
  --xm-flake: #8aabd6;      /* 밝은 화면의 눈 — 흰 바탕에서도 보이게 옅은 하늘색 테두리 */
  --xm-flake-core: #e9f1fb;
}
html.season-on[data-theme="dark"] {
  --xm-wire: #7b8fa3;
  --xm-flake: #dbe8f7;
  --xm-slogan: #ffb3ba; --xm-slogan-glow: 255, 140, 150;
}

/* ── ① 헤더 아래 전구 줄 — 줄·전구(::after)와 불빛 번짐(::before) 두 겹. 불빛만 숨 쉬듯 밝아졌다 어두워진다 ── */
html.season-on body > nav:not(.m-tabbar)::before,
html.season-on body > nav:not(.m-tabbar)::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: calc(100% - 4px);
  height: 22px;
  pointer-events: none;
  background-repeat: repeat-x;
  background-size: 160px 22px;
  background-position: 6px 0;
}
html.season-xmas body > nav:not(.m-tabbar)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='22' viewBox='0 0 160 22'%3E%3Cpath d='M0 3 Q20 12 40 3 T80 3 T120 3 T160 3' fill='none' stroke='%233d5a4a' stroke-width='1.3'/%3E%3Cg%3E%3Crect x='18.3' y='7' width='3.4' height='3' rx='.8' fill='%23334155'/%3E%3Cellipse cx='20' cy='13.8' rx='3.1' ry='4.4' fill='%23ef4444'/%3E%3Cellipse cx='19' cy='12.4' rx='.9' ry='1.4' fill='%23fff' opacity='.7'/%3E%3C/g%3E%3Cg%3E%3Crect x='58.3' y='7' width='3.4' height='3' rx='.8' fill='%23334155'/%3E%3Cellipse cx='60' cy='13.8' rx='3.1' ry='4.4' fill='%23facc15'/%3E%3Cellipse cx='59' cy='12.4' rx='.9' ry='1.4' fill='%23fff' opacity='.7'/%3E%3C/g%3E%3Cg%3E%3Crect x='98.3' y='7' width='3.4' height='3' rx='.8' fill='%23334155'/%3E%3Cellipse cx='100' cy='13.8' rx='3.1' ry='4.4' fill='%2322c55e'/%3E%3Cellipse cx='99' cy='12.4' rx='.9' ry='1.4' fill='%23fff' opacity='.7'/%3E%3C/g%3E%3Cg%3E%3Crect x='138.3' y='7' width='3.4' height='3' rx='.8' fill='%23334155'/%3E%3Cellipse cx='140' cy='13.8' rx='3.1' ry='4.4' fill='%233b82f6'/%3E%3Cellipse cx='139' cy='12.4' rx='.9' ry='1.4' fill='%23fff' opacity='.7'/%3E%3C/g%3E%3C/svg%3E");
}
html.season-xmas[data-theme="dark"] body > nav:not(.m-tabbar)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='22' viewBox='0 0 160 22'%3E%3Cpath d='M0 3 Q20 12 40 3 T80 3 T120 3 T160 3' fill='none' stroke='%237b8fa3' stroke-width='1.3'/%3E%3Cg%3E%3Crect x='18.3' y='7' width='3.4' height='3' rx='.8' fill='%2394a3b8'/%3E%3Cellipse cx='20' cy='13.8' rx='3.1' ry='4.4' fill='%23f87171'/%3E%3Cellipse cx='19' cy='12.4' rx='.9' ry='1.4' fill='%23fff' opacity='.75'/%3E%3C/g%3E%3Cg%3E%3Crect x='58.3' y='7' width='3.4' height='3' rx='.8' fill='%2394a3b8'/%3E%3Cellipse cx='60' cy='13.8' rx='3.1' ry='4.4' fill='%23fde047'/%3E%3Cellipse cx='59' cy='12.4' rx='.9' ry='1.4' fill='%23fff' opacity='.75'/%3E%3C/g%3E%3Cg%3E%3Crect x='98.3' y='7' width='3.4' height='3' rx='.8' fill='%2394a3b8'/%3E%3Cellipse cx='100' cy='13.8' rx='3.1' ry='4.4' fill='%234ade80'/%3E%3Cellipse cx='99' cy='12.4' rx='.9' ry='1.4' fill='%23fff' opacity='.75'/%3E%3C/g%3E%3Cg%3E%3Crect x='138.3' y='7' width='3.4' height='3' rx='.8' fill='%2394a3b8'/%3E%3Cellipse cx='140' cy='13.8' rx='3.1' ry='4.4' fill='%2360a5fa'/%3E%3Cellipse cx='139' cy='12.4' rx='.9' ry='1.4' fill='%23fff' opacity='.75'/%3E%3C/g%3E%3C/svg%3E");
}
html.season-xmas body > nav:not(.m-tabbar)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='22' viewBox='0 0 160 22'%3E%3Cdefs%3E%3CradialGradient id='a'%3E%3Cstop offset='0' stop-color='%23ef4444' stop-opacity='.55'/%3E%3Cstop offset='1' stop-color='%23ef4444' stop-opacity='0'/%3E%3C/radialGradient%3E%3CradialGradient id='b'%3E%3Cstop offset='0' stop-color='%23facc15' stop-opacity='.6'/%3E%3Cstop offset='1' stop-color='%23facc15' stop-opacity='0'/%3E%3C/radialGradient%3E%3CradialGradient id='c'%3E%3Cstop offset='0' stop-color='%2322c55e' stop-opacity='.5'/%3E%3Cstop offset='1' stop-color='%2322c55e' stop-opacity='0'/%3E%3C/radialGradient%3E%3CradialGradient id='d'%3E%3Cstop offset='0' stop-color='%233b82f6' stop-opacity='.5'/%3E%3Cstop offset='1' stop-color='%233b82f6' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='20' cy='13.8' r='8.5' fill='url(%23a)'/%3E%3Ccircle cx='60' cy='13.8' r='8.5' fill='url(%23b)'/%3E%3Ccircle cx='100' cy='13.8' r='8.5' fill='url(%23c)'/%3E%3Ccircle cx='140' cy='13.8' r='8.5' fill='url(%23d)'/%3E%3C/svg%3E");
  opacity: .35;
  animation: xmas-glow 2.8s ease-in-out infinite alternate;
}
@keyframes xmas-glow { from { opacity: .3; } to { opacity: 1; } }

/* ── ② 로고 A 위 산타 모자 — 로고 그림 바로 앞의 크기 0 짜리 칸(.xmas-logo-hat)에 매달아 로고 자리는 그대로 둔다.
   em 기준이 로고 높이(19 → 16 → 14 → 13px, style.css 의 로고 크기 규칙과 같은 구간) ── */
html.season-on .xmas-logo-hat {
  display: block;
  position: relative;
  width: 0; height: 0;
  flex: 0 0 0;
  font-size: 19px;
  pointer-events: none;
}
html.season-on .xmas-logo-hat::before {
  content: '';
  position: absolute;
  left: .12em;
  top: -1.2em;
  width: 1.4em;
  height: 1.1em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 50'%3E%3Cpath d='M9 38 C11 20 25 6 42 6 C53 6 59 13 60 23 L55.5 24.5 C54 19 50 16 45.5 17 C46.5 25 48.5 31 50.5 38 Z' fill='%23d42a3c'/%3E%3Cpath d='M45.5 17 C46.5 25 48.5 31 50.5 38 L42 38 C42 30 43.5 23 45.5 17 Z' fill='%23a51d2d' opacity='.55'/%3E%3Crect x='4' y='33' width='51' height='12' rx='6' fill='%23fff' stroke='%23cbd5e1' stroke-width='1.3'/%3E%3Ccircle cx='58' cy='24' r='5.6' fill='%23fff' stroke='%23cbd5e1' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat center / contain;
  transform: rotate(-14deg);
  transform-origin: 45% 80%;
}
@media (max-width: 768px) { html.season-on .xmas-logo-hat { font-size: 16px; } }
@media (max-width: 480px) { html.season-on .xmas-logo-hat { font-size: 14px; } }
@media (max-width: 360px) { html.season-on .xmas-logo-hat { font-size: 13px; } }

/* ── ③ 상단 문구 — 하늘색 빛 대신 따뜻한 빨강(문구는 index.html 슬로건 스크립트가 시즌 문구로 바꾼다) ── */
html.season-on #gnb-slogan { color: var(--xm-slogan); text-shadow: 0 0 6px rgba(var(--xm-slogan-glow), .4), 0 0 14px rgba(var(--xm-slogan-glow), .22); }

/* ── ④ 홈 인사 띠 — html.xmas-home(홈 화면)일 때만. 머리 스크립트가 주소로 첫 그림부터 정하고, 화면을 옮기면 season-xmas.js 가 맞춘다 ── */
html.season-on.xmas-home .xmas-greet { display: flex; }
.xmas-greet {
  position: relative;
  align-items: center;
  gap: 16px;
  min-height: 106px;   /* 트리(85px)가 위 눈 가장자리에 닿지 않는 높이 */
  margin: 0 0 1.4rem;
  padding: 20px 22px 14px 16px;
  box-sizing: border-box;
  border-radius: 18px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 1.5px 1.5px, rgba(255, 255, 255, .5) 1.2px, transparent 1.6px) 0 0 / 46px 38px,
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .3) .8px, transparent 1.2px) 19px 21px / 31px 29px,
    linear-gradient(115deg, var(--xm-green-d) 0%, var(--xm-green) 55%, var(--xm-green-l) 100%);
  box-shadow: 0 8px 24px rgba(13, 59, 41, .18);
  container: xg / inline-size;   /* 띠 너비로 트리를 넣을지 정한다(아래 @container) */
}
html[data-theme="dark"] .xmas-greet { box-shadow: 0 8px 24px rgba(0, 0, 0, .35); outline: 1px solid rgba(255, 255, 255, .06); outline-offset: -1px; }
/* 위쪽 가장자리에 소복이 쌓인 눈 */
.xmas-greet::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 13px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='13' viewBox='0 0 120 13'%3E%3Cpath d='M0 0 H120 V5 C112 5 111 10 102 10 C94 10 94 4.5 86 5 C78 5.5 77.5 11.5 68 11.5 C58.5 11.5 59.5 5 50 5 C41 5 40.5 9.5 32 9.5 C24 9.5 24 4.5 15 5 C7 5.5 6 9 0 8.5 Z' fill='%23fff' fill-opacity='.95'/%3E%3C/svg%3E") repeat-x 0 0 / 120px 13px;
  pointer-events: none;
}
html[data-theme="dark"] .xmas-greet::before { opacity: .85; }
/* 금테 두른 빨간 리본 — 트리·방울·리본은 글자와 같은 줄의 칸이라 화면이 좁아져도 글자 위로 겹치지 않는다(글자가 줄을 바꾼다).
   위아래 음수 여백으로 띠의 안쪽 여백(위 20·아래 14px)을 넘어 띠 끝에서 끝까지 닿는다. 리본 색은 ::before(살짝 비침), 리스는 ::after(안 비침).
   좌우 10px 여백 + 칸 사이 16px = 리스(68px)가 리본(16px) 양옆으로 26px 나가는 자리 */
.xg-ribbon {
  position: relative;
  flex: 0 0 16px;
  align-self: stretch;
  margin: -20px 10px -14px;
  pointer-events: none;
}
.xg-ribbon::before {
  content: '';
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, var(--xm-gold) 0 2px, var(--xm-red) 2px 14px, var(--xm-gold) 14px);
  opacity: .9;
}
/* 리본에 걸린 리스 — 가운데를 글자 칸 가운데(띠 가운데보다 3px 아래 — 위아래 안쪽 여백 차이)에 맞춘다. 휴대폰은 눈 단추가 리스 한가운데 */
html.season-on .xg-ribbon::after {
  content: '';
  position: absolute;
  left: 50%; top: calc(50% + 3px);
  width: 68px; height: 68px;
  margin: -34px 0 0 -34px;
  background: url("/assets/season/xmas-wreath.svg?v=20261113a") 0 0 / 100% 100% no-repeat;
}
/* 트리 — 띠 바닥에 서 있다(아래 안쪽 여백 14px 만큼 내려 띠 끝에 닿는다). 전구 두 벌(한 그림의 왼쪽·오른쪽)이 번갈아 반짝인다 — opacity 만 바뀐다 */
.xg-tree { position: relative; z-index: 1; flex: 0 0 66px; height: 85px; align-self: flex-end; margin-bottom: -14px; pointer-events: none; }
html.season-on .xg-tree { background: url("/assets/season/xmas-tree.svg?v=20261113a") 0 0 / 100% 100% no-repeat; }
html.season-on .xg-tree::before,
html.season-on .xg-tree::after {
  content: '';
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  background: url("/assets/season/xmas-tree-lights.svg?v=20261113a") 0 0 / 200% 100% no-repeat;
  animation: xmas-twinkle 1.6s ease-in-out infinite alternate;
}
html.season-on .xg-tree::after { background-position: 100% 0; animation-delay: -1.6s; }
@keyframes xmas-twinkle { from { opacity: .15; } to { opacity: 1; } }
/* 띠가 좁으면(작은 노트북 — 1280px 화면의 띠가 648px) 매달린 방울을 먼저 빼고(트리에도 방울이 있다), 더 좁으면 트리도 빼 글자 칸을 지킨다 */
@container xg (max-width: 760px) { .xg-baubles { display: none; } }
@container xg (max-width: 560px) { .xg-tree { display: none; } }
/* 아치 = 사이트의 파랑새 그림 그대로. 그림은 시즌일 때만 받도록 배경으로 깔고(시즌 밖엔 내려받지 않음),
   모자·목도리는 같은 좌표(그림 512 기준, 보이는 칸 x 80~440·y 30~436)의 덧그림이 위에 얹힌다 */
.xg-archy { flex: 0 0 auto; width: 56px; height: 63px; position: relative; z-index: 1; line-height: 0; }
.xg-bird { position: absolute; left: -22.222%; top: -7.389%; width: 142.222%; height: 126.108%; }
html.season-on .xg-bird { background: url("/assets/bluebird/bluebird-front.png?v=20260901b") 0 0 / 100% 100% no-repeat; }
.xg-archy svg { position: relative; width: 100%; height: 100%; display: block; overflow: visible; }
.xg-text { flex: 1 1 auto; min-width: 0; position: relative; z-index: 1; }
.xg-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 700;
  font-size: 25px;
  line-height: 1.15;
  letter-spacing: .02em;
  color: var(--xm-gold);
  text-shadow: 0 1px 0 rgba(0, 0, 0, .25), 0 0 14px rgba(243, 205, 122, .35);
}
.xg-sub { margin: 4px 0 0; font-size: 13.5px; line-height: 1.45; color: rgba(255, 255, 255, .9); word-break: keep-all; text-wrap: balance; }
/* 매달린 장식 방울 셋 — 위쪽 가장자리에서 실에 매달려 살랑인다 */
.xg-baubles { position: relative; flex: 0 0 96px; align-self: stretch; margin: -20px 0 -14px; pointer-events: none; z-index: 1; }
.xg-baubles i {
  position: absolute;
  top: 0;
  width: 18px;
  transform-origin: 50% 0;
  animation: xmas-swing 3.4s ease-in-out infinite alternate;
}
.xg-baubles i::before { content: ''; display: block; width: 1px; height: var(--len, 20px); margin: 0 auto; background: rgba(255, 255, 255, .55); }
.xg-baubles i::after {
  content: '';
  display: block;
  width: 18px; height: 18px;
  margin-top: -1px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .85) 0 2.2px, transparent 3px), var(--c, var(--xm-red));
  box-shadow: inset -3px -4px 6px rgba(0, 0, 0, .25), 0 2px 6px rgba(0, 0, 0, .25);
}
.xg-baubles i:nth-child(1) { left: 0; --len: 16px; --c: var(--xb1); animation-duration: 3.1s; }
.xg-baubles i:nth-child(2) { left: 36px; --len: 34px; --c: var(--xb2); animation-duration: 3.8s; animation-delay: -1.2s; }
.xg-baubles i:nth-child(3) { left: 72px; --len: 22px; --c: var(--xb3); animation-duration: 3.3s; animation-delay: -2s; }
@keyframes xmas-swing { from { transform: rotate(5deg); } to { transform: rotate(-5deg); } }

.xg-snow {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease;
}
@media (hover: hover) { .xg-snow:hover { background: rgba(255, 255, 255, .22); border-color: rgba(255, 255, 255, .55); } }
.xg-snow:focus-visible { outline: 2px solid var(--xm-gold); outline-offset: 2px; }
.xg-snow svg { width: 15px; height: 15px; flex: 0 0 auto; }
html.xmas-nosnow .xg-snow { display: none; }
/* 홈 밖 화면용 눈 단추 — 왼쪽 아래 작은 둥근 단추. 홈(띠 단추가 있음)·오피스·눈 못 내리는 환경에서는 숨김. 눈(999)보다 위, 팝업보다 아래 */
.xg-snow-fab { display: none; }
html.season-on:not(.xmas-home):not(.xmas-nosnow) .xg-snow-fab { display: inline-flex; }
html.season-on body.in-office .xg-snow-fab { display: none; }
.xg-snow-fab {
  position: fixed; left: 14px; bottom: 14px; z-index: 1000;
  width: 36px; height: 36px; padding: 0; justify-content: center;
  background: var(--xm-green); border-color: rgba(255, 255, 255, .5);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .28);
  opacity: .8;
}
/* 하단 탭바(860px 이하, 64px + 안전영역) 위로 */
@media (max-width: 860px) { .xg-snow-fab { left: 10px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); } }
.xg-snow-fab[aria-pressed="false"] { background: #5b6b64; }
.xg-snow-fab .xg-snow-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 768px) {
  /* 좌우 끝을 휴대폰 인기 글 목록(#m-best-list — 본문 칸 안쪽 12px)과 맞춘다 */
  .xmas-greet { min-height: 78px; margin: 8px 12px 6px; padding: 18px 18px 12px 12px; gap: 10px; border-radius: 16px; }
  /* 휴대폰은 리본이 눈 단추 뒤로 지나가고 리스가 단추를 두른다 — 단추가 리스 한가운데(글자 칸을 많이 줄이지 않게).
     리본 가운데 = 오른쪽 30+6 = 단추 가운데(안쪽 여백 18+18). 리스(68px, 안쪽 지름 39px)가 단추(36px)에 닿지 않는다 */
  .xg-ribbon { position: absolute; top: 0; bottom: 0; right: 30px; width: 12px; margin: 0; }
  .xg-ribbon::before { background: linear-gradient(90deg, var(--xm-gold) 0 2px, var(--xm-red) 2px 10px, var(--xm-gold) 10px); }
  .xg-archy { width: 44px; height: 50px; }
  .xg-title { font-size: 19px; }
  .xg-sub { font-size: 12.5px; margin-top: 2px; }
  .xg-baubles, .xg-tree { display: none; }
  .xg-snow { width: 36px; height: 36px; padding: 0; margin-left: 8px; justify-content: center; background: var(--xm-green); border-color: rgba(255, 255, 255, .5); }
  .xg-snow .xg-snow-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ── ⑤ 떠 있는 알(Archy)에도 산타 모자 — 알과 함께 흔들린다 ── */
html.season-on #archy-tab::after {
  content: '';
  position: absolute;
  left: 7px; top: -9px;
  width: 27px; height: 21px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 50'%3E%3Cpath d='M9 38 C11 20 25 6 42 6 C53 6 59 13 60 23 L55.5 24.5 C54 19 50 16 45.5 17 C46.5 25 48.5 31 50.5 38 Z' fill='%23d42a3c' stroke='%23334155' stroke-width='2.2' stroke-linejoin='round'/%3E%3Crect x='4' y='33' width='51' height='12' rx='6' fill='%23fff' stroke='%23334155' stroke-width='2.2'/%3E%3Ccircle cx='58' cy='24' r='5.6' fill='%23fff' stroke='%23334155' stroke-width='2.2'/%3E%3C/svg%3E") no-repeat center / contain;
  transform: rotate(-18deg);
  pointer-events: none;
}
/* 깨어 있는 파랑새 아치에도 홈 인사 띠와 같은 모자 — 그림(512) 좌표 x 140~440·y 30~205 를 % 로 옮겨 크기(64·52px)가 달라도 머리에 맞는다 */
html.season-on #archy-bubble::after {
  content: '';
  position: absolute;
  left: 27.344%; top: 5.859%;
  width: 58.594%; height: 34.18%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='140 30 300 175'%3E%3Cg stroke='%231f2b48' stroke-width='7' stroke-linejoin='round' stroke-linecap='round' transform='rotate(7 260 160)'%3E%3Cpath d='M 168 156 C 168 92, 214 46, 282 42 C 340 39, 384 66, 402 112 L 384 120 C 372 98, 356 88, 340 90 C 346 112, 350 134, 352 156 Z' fill='%23d42a3c'/%3E%3Cpath d='M 338 92 C 326 74, 300 64, 272 66' fill='none' stroke='%23a51d2d' stroke-width='6'/%3E%3Crect x='150' y='142' width='222' height='40' rx='20' fill='%23fff'/%3E%3Ccircle cx='404' cy='120' r='22' fill='%23fff'/%3E%3C/g%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%;
  pointer-events: none;
}

/* ── ⑥ 눈 — 본문 위, 헤더(1000)·팝업·도구 창 아래. 오피스 공간에서는 사라진다(고요에도 계속 내린다 — 끄기는 눈 그치기 단추) ── */
.xmas-snow {
  position: fixed;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 999;
  contain: strict;
  opacity: 1;
  transition: opacity .9s ease;
}
body.in-office .xmas-snow, .xmas-snow.xs-hide { opacity: 0; }
/* 화면을 연 채 서버 설정으로 테마가 꺼지면(머리 스크립트) season-xmas.js 가 눈을 걷는다 — 그 사이에도 보이지 않게 */
html:not(.season-on) .xmas-snow { display: none; }
.xmas-snow i {
  position: absolute;
  top: 0;
  left: var(--x);
  width: var(--s);
  height: var(--s);
  animation: xmas-fall var(--d) linear var(--dl) infinite;
  will-change: transform;
}
.xmas-snow b {
  display: block;
  width: 100%; height: 100%;
  border-radius: 50%;
  opacity: var(--o);
  background: radial-gradient(circle, var(--xm-flake-core) 0 30%, var(--xm-flake) 58%, transparent 72%);
  animation: xmas-sway var(--sd) ease-in-out var(--dl) infinite alternate;
}
.xmas-snow b.xs-star {
  border-radius: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-12 -12 24 24'%3E%3Cg stroke='%238aabd6' stroke-width='1.7' stroke-linecap='round' fill='none'%3E%3Cpath id='r' d='M0 0 V-10 M0 -6 L-2.6 -8.4 M0 -6 L2.6 -8.4'/%3E%3Cuse href='%23r' transform='rotate(60)'/%3E%3Cuse href='%23r' transform='rotate(120)'/%3E%3Cuse href='%23r' transform='rotate(180)'/%3E%3Cuse href='%23r' transform='rotate(240)'/%3E%3Cuse href='%23r' transform='rotate(300)'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
}
html[data-theme="dark"] .xmas-snow b.xs-star {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-12 -12 24 24'%3E%3Cg stroke='%23e6f0ff' stroke-width='1.6' stroke-linecap='round' fill='none'%3E%3Cpath id='r' d='M0 0 V-10 M0 -6 L-2.6 -8.4 M0 -6 L2.6 -8.4'/%3E%3Cuse href='%23r' transform='rotate(60)'/%3E%3Cuse href='%23r' transform='rotate(120)'/%3E%3Cuse href='%23r' transform='rotate(180)'/%3E%3Cuse href='%23r' transform='rotate(240)'/%3E%3Cuse href='%23r' transform='rotate(300)'/%3E%3C/g%3E%3C/svg%3E");
}
@keyframes xmas-fall { from { transform: translate3d(0, -24px, 0); } to { transform: translate3d(0, calc(100vh + 24px), 0); } }
@keyframes xmas-sway { from { transform: translate3d(calc(var(--sw) * -1), 0, 0) rotate(-20deg); } to { transform: translate3d(var(--sw), 0, 0) rotate(20deg); } }

/* 움직임 줄이기 — 장식은 남기고 움직임만 멈춘다(눈은 season-xmas.js 가 아예 만들지 않는다) */
@media (prefers-reduced-motion: reduce) {
  html.season-on body > nav:not(.m-tabbar)::before, .xg-baubles i,
  html.season-on .xg-tree::before, html.season-on .xg-tree::after { animation: none; }
  html.season-on body > nav:not(.m-tabbar)::before, html.season-on .xg-tree::before, html.season-on .xg-tree::after { opacity: .8; }
}


/* ═══ 테마별 구역(2026-11-13) — 크리스마스 값은 위의 기본값, 나머지는 여기서 변수·그림·효과를 덮는다 ═══ */
/* 인사 띠의 글 — 테마마다 하나씩 HTML 에 두고 지금 테마 것만 보인다(첫 그림부터 맞고, 자바스크립트가 끼어들지 않아 깜빡임이 없다) */
.xg-title b, .xg-sub span { display: none; }
html.season-xmas .xg-title b[data-th="xmas"], html.season-xmas .xg-sub span[data-th="xmas"] { display: inline; }
html.season-newyear .xg-title b[data-th="newyear"], html.season-newyear .xg-sub span[data-th="newyear"] { display: inline; }
html.season-seol .xg-title b[data-th="seol"], html.season-seol .xg-sub span[data-th="seol"] { display: inline; }
html.season-sakura .xg-title b[data-th="sakura"], html.season-sakura .xg-sub span[data-th="sakura"] { display: inline; }
html.season-summer .xg-title b[data-th="summer"], html.season-summer .xg-sub span[data-th="summer"] { display: inline; }
html.season-chuseok .xg-title b[data-th="chuseok"], html.season-chuseok .xg-sub span[data-th="chuseok"] { display: inline; }
html.season-autumn .xg-title b[data-th="autumn"], html.season-autumn .xg-sub span[data-th="autumn"] { display: inline; }
html.season-seol .xg-title, html.season-chuseok .xg-title { font-family: inherit; font-style: normal; letter-spacing: 0; }

/* newyear */
html.season-newyear { --xm-green-d: #14141f; --xm-green: #1e1c2e; --xm-green-l: #2a2438; --xm-gold: #f3cd7a; --xm-red: #d42a3c; --xm-wire: #8a6d4a; --xm-flake: #d6b25e; --xm-flake-core: #fff7dc; --xm-slogan: #a8731d; --xm-slogan-glow: 212, 160, 60; --xb1: #e9b949; --xb2: #d42a3c; --xb3: #fff7dc; }
html.season-newyear[data-theme="dark"] { --xm-wire: #c9a86a; --xm-flake: #ffe9a8; --xm-slogan: #f3cd7a; --xm-slogan-glow: 243, 205, 122; }
html.season-newyear body > nav:not(.m-tabbar)::after { background-image: url("/assets/season/garland-newyear.svg?v=20261113e"); }
html.season-newyear .xmas-logo-hat::before { background: url("/assets/season/logo-newyear.svg?v=20261113e") no-repeat center / contain; }
html.season-newyear .xg-tree { background-image: url("/assets/season/deco-newyear.svg?v=20261113e"); }
html.season-newyear .xg-ribbon::after { background-image: url("/assets/season/ring-newyear.svg?v=20261113e"); }
html.season-newyear #archy-bubble::after, html.season-newyear #archy-tab::after { background-image: url("/assets/season/acc-newyear.svg?v=20261113e"); background-position: center; background-size: contain; }
html.season-newyear .xg-archy::after { background-image: url("/assets/season/wear-newyear.svg?v=20261113e"); }
html.season-newyear .xmas-snow b.xs-star { background-image: url("/assets/season/fall-newyear.svg?v=20261113e"); }

/* seol */
html.season-seol { --xm-green-d: #8c1c2c; --xm-green: #a72537; --xm-green-l: #c0303f; --xm-gold: #f3cd7a; --xm-red: #2b5fb5; --xm-wire: #8a4a4a; --xm-flake: #e98fa9; --xm-flake-core: #fff0f4; --xm-slogan: #b5283b; --xm-slogan-glow: 230, 80, 90; --xb1: #d42a3c; --xb2: #2b4a9a; --xb3: #ffd98a; }
html.season-seol[data-theme="dark"] { --xm-wire: #d99a9a; --xm-flake: #ffd0dc; --xm-slogan: #ffb3ba; --xm-slogan-glow: 255, 140, 150; }
html.season-seol body > nav:not(.m-tabbar)::after { background-image: url("/assets/season/garland-seol.svg?v=20261113e"); }
html.season-seol .xmas-logo-hat::before { background: url("/assets/season/logo-seol.svg?v=20261113e") no-repeat center / contain; }
html.season-seol .xg-tree { background-image: url("/assets/season/deco-seol.svg?v=20261113e"); }
html.season-seol .xg-ribbon::after { background-image: url("/assets/season/ring-seol.svg?v=20261113e"); }
html.season-seol #archy-bubble::after, html.season-seol #archy-tab::after { background-image: url("/assets/season/acc-seol.svg?v=20261113e"); background-position: center; background-size: contain; }
html.season-seol .xg-archy::after { background-image: url("/assets/season/wear-seol.svg?v=20261113e"); }
html.season-seol .xmas-snow b.xs-star { background-image: url("/assets/season/fall-seol.svg?v=20261113e"); }

/* sakura */
html.season-sakura { --xm-green-d: #a8325a; --xm-green: #bb3f69; --xm-green-l: #cc4b78; --xm-gold: #ffe9a8; --xm-red: #f6e6a6; --xm-wire: #a0647a; --xm-flake: #f08fb0; --xm-flake-core: #ffe3ec; --xm-slogan: #c2416d; --xm-slogan-glow: 236, 110, 150; --xb1: #ffd0de; --xb2: #f6a5c0; --xb3: #ffffff; }
html.season-sakura[data-theme="dark"] { --xm-wire: #e0a8bd; --xm-flake: #ffc4d6; --xm-slogan: #ffb8d0; --xm-slogan-glow: 255, 170, 200; }
html.season-sakura body > nav:not(.m-tabbar)::after { background-image: url("/assets/season/garland-sakura.svg?v=20261113e"); }
html.season-sakura .xmas-logo-hat::before { background: url("/assets/season/logo-sakura.svg?v=20261113e") no-repeat center / contain; }
html.season-sakura .xg-tree { background-image: url("/assets/season/deco-sakura.svg?v=20261113e"); }
html.season-sakura .xg-ribbon::after { background-image: url("/assets/season/ring-sakura.svg?v=20261113e"); }
html.season-sakura #archy-bubble::after, html.season-sakura #archy-tab::after { background-image: url("/assets/season/acc-sakura.svg?v=20261113e"); background-position: center; background-size: contain; }
html.season-sakura .xg-archy::after { background-image: url("/assets/season/wear-sakura.svg?v=20261113e"); }
html.season-sakura .xmas-snow b.xs-star { background-image: url("/assets/season/fall-sakura.svg?v=20261113e"); }

/* summer */
html.season-summer { --xm-green-d: #06607a; --xm-green: #08698a; --xm-green-l: #0a7390; --xm-gold: #fff3b0; --xm-red: #ffd23f; --xm-wire: #4a8a9a; --xm-flake: #4aa3c0; --xm-flake-core: #e5f8ff; --xm-slogan: #0b7a99; --xm-slogan-glow: 40, 150, 190; --xb1: #ff6b4a; --xb2: #ffe28a; --xb3: #ffffff; }
html.season-summer[data-theme="dark"] { --xm-wire: #8fd0e0; --xm-flake: #bfeaf7; --xm-slogan: #7fdcf2; --xm-slogan-glow: 120, 210, 240; }
html.season-summer body > nav:not(.m-tabbar)::after { background-image: url("/assets/season/garland-summer.svg?v=20261113e"); }
html.season-summer .xmas-logo-hat::before { background: url("/assets/season/logo-summer.svg?v=20261113e") no-repeat center / contain; }
html.season-summer .xg-tree { background-image: url("/assets/season/deco-summer.svg?v=20261113e"); }
html.season-summer .xg-ribbon::after { background-image: url("/assets/season/ring-summer.svg?v=20261113e"); }
html.season-summer #archy-bubble::after, html.season-summer #archy-tab::after { background-image: url("/assets/season/acc-summer.svg?v=20261113e"); background-position: center; background-size: contain; }
html.season-summer .xg-archy::after { background-image: url("/assets/season/wear-summer.svg?v=20261113e"); }
html.season-summer .xmas-snow b.xs-star { background-image: url("/assets/season/fall-summer.svg?v=20261113e"); }

/* chuseok */
html.season-chuseok { --xm-green-d: #1d2252; --xm-green: #26306a; --xm-green-l: #2f3a7a; --xm-gold: #f3cd7a; --xm-red: #f3cd7a; --xm-wire: #8a6d4a; --xm-flake: #e0a93b; --xm-flake-core: #fff2c9; --xm-slogan: #b8731f; --xm-slogan-glow: 220, 150, 60; --xb1: #ffd98a; --xb2: #e08a2e; --xb3: #fff3d0; }
html.season-chuseok[data-theme="dark"] { --xm-wire: #d9b878; --xm-flake: #ffe3a0; --xm-slogan: #ffd98a; --xm-slogan-glow: 255, 217, 138; }
html.season-chuseok body > nav:not(.m-tabbar)::after { background-image: url("/assets/season/garland-chuseok.svg?v=20261113e"); }
html.season-chuseok .xmas-logo-hat::before { background: url("/assets/season/logo-chuseok.svg?v=20261113e") no-repeat center / contain; }
html.season-chuseok .xg-tree { background-image: url("/assets/season/deco-chuseok.svg?v=20261113e"); }
html.season-chuseok .xg-ribbon::after { background-image: url("/assets/season/ring-chuseok.svg?v=20261113e"); }
html.season-chuseok #archy-bubble::after, html.season-chuseok #archy-tab::after { background-image: url("/assets/season/acc-chuseok.svg?v=20261113e"); background-position: center; background-size: contain; }
html.season-chuseok .xg-archy::after { background-image: url("/assets/season/wear-chuseok.svg?v=20261113e"); }
html.season-chuseok .xmas-snow b.xs-star { background-image: url("/assets/season/fall-chuseok.svg?v=20261113e"); }

/* autumn */
html.season-autumn { --xm-green-d: #7a3412; --xm-green: #9a4314; --xm-green-l: #b5521a; --xm-gold: #ffe3a0; --xm-red: #f6d27a; --xm-wire: #8a5a3a; --xm-flake: #d9662b; --xm-flake-core: #ffe0c4; --xm-slogan: #b5521a; --xm-slogan-glow: 220, 110, 50; --xb1: #e8742a; --xb2: #c0392b; --xb3: #ffd98a; }
html.season-autumn[data-theme="dark"] { --xm-wire: #d9a67a; --xm-flake: #ffc79c; --xm-slogan: #ffb98a; --xm-slogan-glow: 255, 180, 130; }
html.season-autumn body > nav:not(.m-tabbar)::after { background-image: url("/assets/season/garland-autumn.svg?v=20261113e"); }
html.season-autumn .xmas-logo-hat::before { background: url("/assets/season/logo-autumn.svg?v=20261113e") no-repeat center / contain; }
html.season-autumn .xg-tree { background-image: url("/assets/season/deco-autumn.svg?v=20261113e"); }
html.season-autumn .xg-ribbon::after { background-image: url("/assets/season/ring-autumn.svg?v=20261113e"); }
html.season-autumn #archy-bubble::after, html.season-autumn #archy-tab::after { background-image: url("/assets/season/acc-autumn.svg?v=20261113e"); background-position: center; background-size: contain; }
html.season-autumn .xg-archy::after { background-image: url("/assets/season/wear-autumn.svg?v=20261113e"); }
html.season-autumn .xmas-snow b.xs-star { background-image: url("/assets/season/fall-autumn.svg?v=20261113e"); }

/* 크리스마스 말고는 장식 하나 하나가 따로 그린 그림이라 — 띠의 파랑새 덧그림은 이미지로, 트리 전구 반짝임·불빛 번짐은 없다 */
.xg-archy::after { content: none; }
html.season-on:not(.season-xmas) .xg-archy::after { content: ''; position: absolute; left: 0; top: 0; right: 0; bottom: 0; background-position: 0 0; background-size: 100% 100%; background-repeat: no-repeat; }
html.season-on:not(.season-xmas) .xg-archy svg { display: none; }
html.season-on:not(.season-xmas) .xg-tree::before, html.season-on:not(.season-xmas) .xg-tree::after { display: none; }
html.season-on:not(.season-xmas) body > nav:not(.m-tabbar)::before { display: none; }
html.season-on:not(.season-xmas) .xg-snow-fab[aria-pressed="false"] { filter: grayscale(.6); }

/* 떨어지는 것 — 눈 말고는 모두 특별 그림(fall-<테마>.svg)이 주인공이다(JS 가 별 모양 비율을 정한다). 여름의 거품은 아래에서 위로 */
html.season-newyear .xmas-snow b:not(.xs-star), html.season-seol .xmas-snow b:not(.xs-star), html.season-sakura .xmas-snow b:not(.xs-star) { opacity: calc(var(--o) * .85); }
html.season-summer .xmas-snow i { animation-name: xmas-rise; }
html.season-summer .xmas-snow b:not(.xs-star) { background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .9) 0 14%, rgba(255, 255, 255, .12) 42%, rgba(74, 163, 192, .28) 72%, transparent 74%); border: 1px solid rgba(74, 163, 192, .55); box-sizing: border-box; }
@keyframes xmas-rise { from { transform: translate3d(0, calc(100vh + 24px), 0); } to { transform: translate3d(0, -24px, 0); } }

/* ═══ 감성 층(2026-11-13) — 인사 띠에 테마마다 빛·깊이를 더한다. 그림 파일 없이 CSS 그라데이션만(내려받는 것 없음), 움직임은 불빛 숨쉬기 하나(opacity) ═══ */
html.season-on .xmas-greet {
  box-shadow: 0 10px 28px rgba(var(--xm-slogan-glow), .30), inset 0 1px 0 rgba(255, 255, 255, .22);
  animation: xg-in .8s cubic-bezier(.2, .7, .2, 1) both;
}
html.season-on[data-theme="dark"] .xmas-greet {
  box-shadow: 0 10px 28px rgba(0, 0, 0, .42), 0 0 26px rgba(var(--xm-slogan-glow), .14), inset 0 1px 0 rgba(255, 255, 255, .14);
}
html.season-on .xmas-greet::after {
  content: '';
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    var(--xg-glow, none),
    linear-gradient(180deg, rgba(255, 255, 255, .10), transparent 45%);
  mix-blend-mode: screen;
  animation: xg-breathe 7s ease-in-out infinite alternate;
}
html.season-on .xg-title { text-shadow: 0 1px 0 rgba(0, 0, 0, .25), 0 0 16px rgba(255, 255, 255, .26), 0 0 28px rgba(var(--xm-slogan-glow), .3); }
html.season-on .xg-sub { text-shadow: 0 1px 6px rgba(0, 0, 0, .18); }
@keyframes xg-in { from { opacity: .35; } to { opacity: 1; } }
@keyframes xg-breathe { from { opacity: .7; } to { opacity: 1; } }

html.season-xmas   { --xg-glow: radial-gradient(ellipse 55% 120% at 88% 115%, rgba(255, 214, 130, .30), transparent 66%), radial-gradient(ellipse 40% 90% at 6% -15%, rgba(255, 255, 255, .16), transparent 70%); }
html.season-newyear { --xg-glow: radial-gradient(ellipse 50% 110% at 82% 120%, rgba(255, 196, 92, .42), transparent 66%), radial-gradient(ellipse 45% 100% at 5% -20%, rgba(150, 130, 230, .20), transparent 70%); }
html.season-seol   { --xg-glow: radial-gradient(ellipse 45% 110% at 12% -15%, rgba(255, 226, 150, .26), transparent 68%), radial-gradient(ellipse 50% 120% at 90% 115%, rgba(255, 186, 110, .30), transparent 66%); }
html.season-sakura { --xg-glow: radial-gradient(ellipse 50% 120% at 8% -20%, rgba(255, 255, 255, .30), transparent 68%), radial-gradient(ellipse 50% 110% at 92% 115%, rgba(255, 214, 232, .34), transparent 66%); }
html.season-summer { --xg-glow: radial-gradient(circle at 93% -25%, rgba(255, 244, 178, .55) 0, rgba(255, 244, 178, .16) 22%, transparent 46%), linear-gradient(0deg, rgba(150, 232, 255, .26), transparent 46%); }
html.season-chuseok { --xg-glow: radial-gradient(circle at 80% 46%, rgba(255, 238, 176, .30) 0, rgba(255, 238, 176, .10) 26%, transparent 52%), radial-gradient(ellipse 40% 90% at 4% -15%, rgba(140, 150, 255, .22), transparent 70%); }
html.season-autumn { --xg-glow: radial-gradient(ellipse 55% 120% at 90% 118%, rgba(255, 184, 84, .44), transparent 66%), radial-gradient(ellipse 40% 90% at 6% -15%, rgba(255, 232, 170, .20), transparent 70%); }
/* 크리스마스 눈 쌓임 줄(::before)·글·그림은 불빛 위로 */
html.season-on .xmas-greet::before { z-index: 2; }

@media (prefers-reduced-motion: reduce) {
  html.season-on .xmas-greet, html.season-on .xmas-greet::after { animation: none; }
}

/* 인쇄 — 눈·꽃잎(화면에 고정된 층)과 단추는 종이에 찍히지 않게 */
@media print { .xmas-snow, .xg-snow-fab, .xmas-greet::after { display: none !important; } }
/* 글자 대비 — 밝은 화면 머리의 슬로건(새해·추석)과 벚꽃 띠 부제를 4.5:1 이상으로 */
html.season-newyear { --xm-slogan: #8f5f12; }
html.season-chuseok { --xm-slogan: #965a10; }
html.season-newyear[data-theme="dark"] { --xm-slogan: #f3cd7a; }
html.season-chuseok[data-theme="dark"] { --xm-slogan: #ffd98a; }
html.season-sakura .xg-sub { color: #fff; }
