/* year_end_dday.css v1.1.0 — 로고 오른쪽 '연말감사제 D-day' 배지(#include/comm/yearEndDday.jsp, 2026-11-26 김미정 시안 B '달력 한 장')
 * 위 빨간 띠(연말감사제) + 아래 흰 칸(D-4 ~ D-1·오늘 11:30, 11-29 ~ 12-03 11:30). 색 = 감사제 빨강 #C0281D, 날짜 글꼴 = Black Han Sans(쓰는 글자만 받는다).
 * 자리 잡기는 예전 로고 옆 배지(chuseok_badge.css)와 같다: PC 는 a.home 뒤 float, 모바일은 head_top(양 끝 정렬) 안에서 margin-right:auto 로 왼쪽에 붙는다. */
.yrz_dd{
  float:left; position:relative; display:inline-flex; flex-direction:column; align-items:stretch; box-sizing:border-box;
  border:1.5px solid #C0281D; border-radius:6px; overflow:visible; background:#fff;
  text-decoration:none; line-height:1; white-space:nowrap; -webkit-tap-highlight-color:transparent;
}
.yrz_dd em{
  position:relative; z-index:1; border-radius:3px 3px 0 0;
  display:block; font-style:normal; font-weight:700; color:#fff; background:#C0281D; text-align:center;
  font-family:'Pretendard',-apple-system,BlinkMacSystemFont,'Malgun Gothic',sans-serif; letter-spacing:-.03em;
}
.yrz_dd b{
  position:relative; z-index:1;
  display:block; text-align:center; color:#C0281D; font-weight:400;
  font-family:'Black Han Sans','Pretendard',sans-serif;
}
.yrz_dd:hover, .yrz_dd:focus-visible{ text-decoration:none; }
.yrz_dd:focus-visible{ outline:2px solid #8E1C14; outline-offset:2px; }

/* PC: 로고 띠 40px 안 */
.yrz_dd.is-pc{ height:40px; margin:0 0 0 12px; }
.yrz_dd.is-pc em{ font-size:10px; padding:3px 9px 2px; }
.yrz_dd.is-pc b{ font-size:19px; padding:4px 9px 0; }

/* 모바일: 로고 147px + 오른쪽 아이콘 사이, 높이 약 38px */
.yrz_dd.is-mo{ height:38px; margin:0 auto 0 8px; border-radius:5px; }
.yrz_dd.is-mo em{ font-size:10px; padding:3px 6px 2px; }
.yrz_dd.is-mo b{ font-size:16px; padding:4px 6px 0; }
@media (max-width:359px){
  .yrz_dd.is-mo{ margin-left:6px; }
  .yrz_dd.is-mo em{ font-size:9px; padding:3px 4px 2px; }
  .yrz_dd.is-mo b{ font-size:13px; padding:5px 4px 0; }
}

/* v1.1.0 감사제 기간(12-03 11:30 ~ 12-18 11:30, .is-live) — 색종이(김미정 11-26 시안 A '배지 이어가기')
 * 9조각이 배지 위 바깥에서 떨어져 아래에서 사라진다. 글자 뒤로 지나간다(z-index). 3번 떨어지고 멈춘다.
 * transform·opacity 만 움직인다(화면 밀림 없음). 움직임 줄이기 설정이면 색종이를 그리지 않는다. */
.yrz_dd .yrz_cf{ position:absolute; left:-8px; right:-8px; top:-14px; bottom:-12px; overflow:hidden; pointer-events:none; z-index:0; }
.yrz_dd .yrz_cf i{
  position:absolute; top:-8px; width:5px; height:8px; border-radius:1px; opacity:0; background:#C0281D;
  animation:yrzCf 2.6s cubic-bezier(.35,.1,.6,1) 3 both;
}
.yrz_dd.is-mo .yrz_cf i{ width:4px; height:6px; animation-name:yrzCfMo; }
.yrz_dd .yrz_cf i:nth-child(1){ left:4%;  background:#C0281D; animation-delay:.1s;  animation-duration:2.5s; --r:260deg; }
.yrz_dd .yrz_cf i:nth-child(2){ left:15%; background:#FFC21A; animation-delay:1.3s; animation-duration:2.8s; --r:-300deg; width:6px; height:6px; border-radius:50%; }
.yrz_dd .yrz_cf i:nth-child(3){ left:27%; background:#3E5F45; animation-delay:.6s;  animation-duration:2.3s; --r:200deg; }
.yrz_dd .yrz_cf i:nth-child(4){ left:39%; background:#8E1C14; animation-delay:1.9s; animation-duration:2.7s; --r:-220deg; width:3px; height:10px; }
.yrz_dd .yrz_cf i:nth-child(5){ left:51%; background:#FFC21A; animation-delay:.3s;  animation-duration:2.9s; --r:320deg; }
.yrz_dd .yrz_cf i:nth-child(6){ left:62%; background:#C0281D; animation-delay:1.1s; animation-duration:2.4s; --r:-180deg; width:6px; height:6px; border-radius:50%; }
.yrz_dd .yrz_cf i:nth-child(7){ left:73%; background:#3E5F45; animation-delay:2.2s; animation-duration:2.6s; --r:240deg; width:3px; height:10px; }
.yrz_dd .yrz_cf i:nth-child(8){ left:84%; background:#FFC21A; animation-delay:.8s;  animation-duration:2.5s; --r:-260deg; }
.yrz_dd .yrz_cf i:nth-child(9){ left:94%; background:#8E1C14; animation-delay:1.6s; animation-duration:2.8s; --r:300deg; }
.yrz_dd.is-mo .yrz_cf i:nth-child(2), .yrz_dd.is-mo .yrz_cf i:nth-child(6){ width:5px; height:5px; }
.yrz_dd.is-mo .yrz_cf i:nth-child(4), .yrz_dd.is-mo .yrz_cf i:nth-child(7){ width:2px; height:8px; }
@keyframes yrzCf{
  0%{ opacity:0; transform:translate(0,0) rotate(0); }
  10%{ opacity:1; }
  50%{ transform:translate(4px,32px) rotate(calc(var(--r) * .5)); }
  85%{ opacity:1; }
  100%{ opacity:0; transform:translate(-3px,66px) rotate(var(--r)); }
}
@keyframes yrzCfMo{
  0%{ opacity:0; transform:translate(0,0) rotate(0); }
  10%{ opacity:1; }
  85%{ opacity:1; }
  100%{ opacity:0; transform:translate(-2px,62px) rotate(var(--r)); }
}
@media (prefers-reduced-motion:reduce){ .yrz_dd .yrz_cf{ display:none; } }
