/* 호산나 행진 — 화면 모양. 색은 base.css 토큰을 쓴다. (다윗의 양 떼 game.css 와 같은 틀) */
.hp-body { background: var(--sky); overscroll-behavior: none; }
.hp-cover { width: 100%; max-width: 440px; aspect-ratio: 4 / 3; border-radius: var(--r-card); overflow: hidden; background: var(--field); }
.hp-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hp-lead { max-width: 30em; font-size: 18px; line-height: 1.5; }
.hp-intro { width: 100%; max-width: 520px; text-align: left; }
.hp-howto { display: flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; background: var(--cream); font-weight: 800; }
.hp-howto img { width: 36px; height: 36px; animation: hp-press 1.4s ease-in-out infinite; }
@keyframes hp-press { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(8px, 10px) scale(.92); } }
.hp-keys { margin: 0; font-size: 14px; opacity: .8; }

.hp-play { height: calc(100svh - 80px); min-height: 420px; padding: 0 8px 8px; }
@media (max-height: 500px) { .hp-play { height: calc(100svh - 84px); min-height: 0; } }
.hp-stage { position: relative; height: 100%; max-width: 1100px; margin: 0 auto; border-radius: 20px; overflow: hidden; background: #F2D79A; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
#cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: pointer; }
.hp-hud { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 8px; padding: 8px; pointer-events: none; }
.hp-pause { pointer-events: auto; background: var(--cream); color: var(--ink); font-size: 20px; flex: none; }
.hp-prog { position: relative; flex: 1; height: 14px; border-radius: 999px; background: rgba(28, 37, 84, .35); }
.hp-prog i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: inherit; background: var(--cream); }
.hp-prog b { position: absolute; right: -12px; top: 50%; width: 30px; height: 30px; transform: translateY(-50%); background: center / contain no-repeat url(../../assets/img/play/hosanna-parade/palm-fly.webp); }
.hp-count { margin: 0; display: flex; align-items: center; gap: 6px; padding: 4px 14px 4px 8px; border-radius: 999px; background: var(--cream); font-size: 22px; font-weight: 900; font-variant-numeric: tabular-nums; }
.hp-count i { width: 30px; height: 36px; background: center / contain no-repeat url(../../assets/img/play/hosanna-parade/palm-fly.webp); }
.hp-count.bump { animation: jw-hop .35s; }
.hp-banner { position: absolute; left: 0; right: 0; top: 30%; margin: 0 auto; width: max-content; max-width: calc(100% - 32px); padding: 10px 22px; border-radius: 999px; background: var(--gold); color: var(--ink); font-size: 22px; font-weight: 900; text-align: center; box-shadow: 0 6px 0 var(--gold-dark); pointer-events: none; animation: hp-pop .3s ease-out; }
@keyframes hp-pop { from { transform: scale(.8); opacity: 0; } }
.hp-tut { position: absolute; left: 0; right: 0; top: 14%; margin: 0 auto; width: max-content; max-width: calc(100% - 24px); display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 16px; background: rgba(255, 246, 227, .95); font-size: 18px; font-weight: 800; pointer-events: none; }
.hp-tut img { width: 44px; height: 44px; animation: hp-press 1.2s ease-in-out infinite; }
.hp-say { position: absolute; left: 8px; right: 8px; top: 62px; display: flex; pointer-events: none; }
.hp-say .say-row { margin: 0; align-items: center; max-width: 80%; animation: hp-pop .25s ease-out; }
.hp-say .say-fig { width: 40px; height: 48px; }
.hp-say .bubble { font-size: 16px; padding: 6px 12px; }
.hp-say:empty { display: none; }
.hp-near { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); min-height: 48px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--gold); color: var(--ink); font: inherit; font-size: 17px; font-weight: 900; box-shadow: 0 5px 0 var(--gold-dark); cursor: pointer; }
.hp-near:active { transform: translateX(-50%) translateY(3px); box-shadow: 0 2px 0 var(--gold-dark); }
.hp-pausebox { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; background: rgba(28, 37, 84, .6); color: var(--cream); font-size: 24px; font-weight: 900; }

/* 끝 화면 */
.hp-tally { width: 100%; max-width: 440px; display: grid; gap: 12px; padding: 16px; border-radius: var(--r-card); background: var(--cream); text-align: center; }
.hp-tally img { width: 100%; border-radius: 16px; }
.hp-got { margin: 0; font-size: 22px; font-weight: 900; }
.hp-verse { margin: 0; padding: 14px 16px; border-radius: 16px; background: var(--lake); color: var(--cream); font-size: 18px; font-weight: 700; line-height: 1.5; text-align: left; }
.hp-verse cite { display: block; margin-top: 6px; font-size: 15px; font-style: normal; color: var(--gold); }
.hp-jesus { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.5; }
.hp-pnote { margin: 12px auto 24px; font-size: 11px; opacity: .7; text-align: center; }
@media (prefers-reduced-motion: reduce) { .hp-howto img, .hp-tut img { animation: none; } }
