/* cherish-hide-seek (patch-hide-seek.py, 2026-09-29) — 출석 숨바꼭질.
   body 직속 DOM. 기념 팝업(8500)·점검 오버레이(9000) 아래. 색은 스킨 토큰만. */
.cw-hs {
	position: fixed; inset: 0; z-index: 8400;
	display: flex; align-items: center; justify-content: center;
	padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
		max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
	box-sizing: border-box;
	background: rgba(20, 12, 24, .55);
	animation: cw-hs-fade .22s ease-out;
}
.cw-hs.is-out { opacity: 0; transition: opacity .2s ease-in; }
.cw-hs-card {
	position: relative;
	width: min(420px, 100%);
	max-height: 100%; overflow-y: auto;
	box-sizing: border-box;
	padding: 22px 20px 18px;
	border-radius: var(--cw-r, 20px);
	background: var(--cw-white);
	color: var(--cw-ink);
	box-shadow: var(--cw-card-shadow), 0 24px 60px -18px rgba(10, 5, 14, .55);
	text-align: center;
	animation: cw-hs-pop .34s cubic-bezier(.2, .9, .3, 1.15);
}
.cw-hs-close {
	position: absolute; top: 10px; right: 10px;
	width: 32px; height: 32px; border-radius: 50%;
	border: 0; background: var(--cw-tint); color: var(--cw-ink-muted);
	font-size: 14px; line-height: 32px; cursor: pointer;
}
.cw-hs-close:hover { background: var(--cw-tint-2); color: var(--cw-ink); }
.cw-hs-kicker {
	font-size: 9.5pt; font-weight: 700; letter-spacing: .02em;
	color: var(--cw-ink-soft);
}
.cw-hs-title {
	margin: 2px 0 12px;
	font-size: 15pt; font-weight: 800; line-height: 1.3;
	color: var(--cw-ink);
	word-break: keep-all; overflow-wrap: anywhere;
}
.cw-hs-stage {
	position: relative;
	border-radius: var(--cw-r-sm, 14px);
	overflow: hidden;
	background: var(--cw-tint);
	box-shadow: 0 0 0 1px var(--cw-line);
}
.cw-hs-img {
	display: block; width: 100%; height: auto; aspect-ratio: 3 / 2;
	object-fit: cover;
	user-select: none; -webkit-user-select: none; -webkit-user-drag: none;
}
.cw-hs.is-found .cw-hs-img {
	object-fit: contain; padding: 10px; box-sizing: border-box;
	animation: cw-hs-hop .5s cubic-bezier(.2, .9, .3, 1.3);
}
.cw-hs-hint {
	position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%);
	padding: 3px 10px; border-radius: 999px;
	background: rgba(0, 0, 0, .42); color: #fff;
	font-size: 8.5pt; white-space: nowrap;
}
.cw-hs-desc {
	margin-top: 12px;
	font-size: 10.5pt; line-height: 1.55; color: var(--cw-ink);
	word-break: keep-all;
}
.cw-hs-sub {
	margin-top: 2px;
	font-size: 9pt; line-height: 1.5; color: var(--cw-ink-muted);
	word-break: keep-all;
}
.cw-hs-form { display: flex; gap: 8px; margin-top: 14px; }
.cw-hs-form.is-shake { animation: cw-hs-shake .36s ease-in-out; }
.cw-hs-input {
	flex: 1; min-width: 0;
	padding: 10px 12px;
	border-radius: var(--cw-r-sm, 14px);
	border: 1px solid var(--cw-line-strong);
	background: var(--cw-surface); color: var(--cw-ink);
	font-size: 16px; /* iOS 는 16px 미만이면 확대된다 */
	outline: none;
}
.cw-hs-input:focus { border-color: var(--cw-accent); box-shadow: 0 0 0 3px var(--cw-tint-2); }
.cw-hs-go {
	flex: none;
	padding: 10px 16px;
	border: 0; border-radius: var(--cw-r-sm, 14px);
	background: var(--cw-cta-grad); color: var(--cw-on-accent);
	box-shadow: var(--cw-cta-inset), var(--cw-cta-shadow);
	font-size: 11pt; font-weight: 800; cursor: pointer;
}
.cw-hs-go:disabled { opacity: .6; cursor: default; }
.cw-hs-done { width: 100%; margin-top: 14px; }
.cw-hs-msg {
	min-height: 1.4em; margin-top: 8px;
	font-size: 9.5pt; line-height: 1.4; color: var(--cw-ink-soft);
}
.cw-hs-msg:empty { min-height: 0; margin-top: 0; }
.cw-hs-reward {
	margin-top: 8px;
	font-size: 9.5pt; color: var(--cw-ink-muted);
}
.cw-hs.is-found .cw-hs-reward { font-size: 11pt; font-weight: 700; color: var(--cw-ink); }
.cw-hs-bonus { margin-top: 2px; font-size: 10pt; color: var(--cw-accent); }
@keyframes cw-hs-fade { from { opacity: 0; } }
@keyframes cw-hs-pop { from { opacity: 0; transform: scale(.94) translateY(8px); } }
@keyframes cw-hs-hop { 0% { transform: translateY(12px) scale(.9); opacity: .4; } 60% { transform: translateY(-6px); } }
@keyframes cw-hs-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@media (max-width: 700px) {
	.cw-hs-card { padding: 18px 14px 14px; }
	.cw-hs-title { font-size: 13.5pt; }
}
@media (prefers-reduced-motion: reduce) {
	.cw-hs, .cw-hs-card, .cw-hs-img, .cw-hs-form.is-shake { animation: none !important; }
}
