/* cherish-notice (patch-notice-ticker.py, 2026-10-30) — 흐르는 공지 띠. body 직속 DOM.
   z-index 80 = 초대 배너(90)·기념 팝업(8500)·점검(9000) 아래. 높이 28px — client-main.ts 의 CHERISH_NOTICE_PAD(40) 와 짝. */
.cw-notice {
	position: fixed; z-index: 80;
	height: 28px; box-sizing: border-box;
	display: flex; align-items: center; gap: 8px;
	padding: 0 4px 0 6px;
	border-radius: 999px;
	color: #fff;
	font-size: 13px; font-weight: 700; line-height: 1;
	box-shadow: 0 6px 18px -8px rgba(40, 10, 60, .55), inset 0 1px 0 rgba(255, 255, 255, .28);
	overflow: hidden;
	isolation: isolate;
	animation: cw-notice-in .35s cubic-bezier(.2, .9, .3, 1.1);
}
.cw-notice.is-event { background: linear-gradient(90deg, #ff4f8b, #c04dff 55%, #7a5cff); }
.cw-notice.is-info { background: linear-gradient(90deg, #2d8cff, #1fb6c9 60%, #20c5a0); }
.cw-notice.is-maint { background: linear-gradient(90deg, #ff9a1f, #ff6a3c 60%, #ff4f6d); }
/* 은은한 빛 줄기 — 눈에 띄되 번쩍이지 않게 6초에 한 번 */
.cw-notice::after {
	content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 65%);
	transform: translateX(-100%);
	animation: cw-notice-shine 6s ease-in-out infinite;
}
.cw-notice-tag {
	flex: 0 0 auto;
	padding: 4px 9px; border-radius: 999px;
	background: rgba(255, 255, 255, .24);
	font-size: 11px; letter-spacing: .02em;
}
.cw-notice-view {
	flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
	mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
}
.cw-notice-track {
	display: inline-block; padding-left: 100%;
	text-shadow: 0 1px 2px rgba(0, 0, 0, .18);
	animation: cw-notice-run 20s linear infinite;
}
.cw-notice:hover .cw-notice-track { animation-play-state: paused; }
.cw-notice-item { letter-spacing: .01em; }
.cw-notice-sep { margin: 0 22px; opacity: .75; font-size: 11px; }
.cw-notice-x {
	flex: 0 0 auto; width: 22px; height: 22px; padding: 0;
	border: 0; border-radius: 50%;
	background: rgba(255, 255, 255, .18); color: #fff;
	font-size: 15px; line-height: 22px; cursor: pointer;
}
.cw-notice-x:hover { background: rgba(255, 255, 255, .34); }
@keyframes cw-notice-run { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@keyframes cw-notice-shine { 0%, 70% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes cw-notice-in { from { opacity: 0; transform: translateY(-6px); } }
@media (max-width: 700px) {
	.cw-notice { font-size: 12px; }
	.cw-notice-tag { padding: 4px 7px; }
}
@media (prefers-reduced-motion: reduce) {
	.cw-notice, .cw-notice::after { animation: none; }
	.cw-notice-track { animation: none; padding-left: 0; display: block; overflow: hidden; text-overflow: ellipsis; }
}
