.hs-host { position: relative; }
.hs-track { position: absolute; height: 0; z-index: 3; pointer-events: none; line-height: 1; }
.hs-santa { position: absolute; left: 0; bottom: 0; }
.sec-head .hs-track, .sec-head .hs-santa { background: none; padding: 0; }
.hs-santa i {
  display: block; font-style: normal;
  padding: 8px; margin: -8px;
  pointer-events: auto; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.hs-santa svg { display: block; overflow: visible; pointer-events: none; transform-origin: 50% 100%; }
.hs-walk .hs-santa { animation: hs-walk var(--hs-t) linear infinite; }
.hs-walk i { animation: hs-flip var(--hs-t) steps(1) infinite; }
.hs-walk svg { animation: hs-waddle .7s ease-in-out infinite; }
.hs-walk .hs-leg-l { animation: hs-step .7s ease-in-out infinite; }
.hs-walk .hs-leg-r { animation: hs-step .7s ease-in-out -.35s infinite; }
.hs-stand svg { animation: hs-sway 2.4s ease-in-out infinite; }
.hs-sit svg { transform-origin: 45% 100%; animation: hs-sway 3s ease-in-out infinite; }
.hs-sit .hs-foot { transform-box: fill-box; transform-origin: 0 100%; animation: hs-kick 1.2s ease-in-out infinite; }
.hs-sit .hs-foot-r { animation-delay: -.6s; }
.hs-hang .hs-santa { bottom: auto; top: 0; }
.hs-hang svg { transform-origin: 50% 8%; animation: hs-swing 2s ease-in-out infinite; }
.hs-track.hs-hang.is-pop svg { animation: hs-drop .4s ease-out 2; }
@keyframes hs-drop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@keyframes hs-kick { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(12deg); } }
@keyframes hs-swing { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
.hs-pop { width: 36px; height: 48px; overflow: hidden; }
.hs-pop .hs-santa { top: 12px; bottom: auto; animation: hs-popup 5s ease-in-out infinite; }
@keyframes hs-popup { 0%, 12% { transform: translateY(38px); } 26%, 74% { transform: translateY(0); } 88%, 100% { transform: translateY(38px); } }
.hs-track.is-pop .hs-santa, .hs-track.is-pop i, .hs-track.is-pop .hs-leg { animation-play-state: paused; }
.hs-track.is-pop svg { animation: hs-jump .4s ease-out 2; }
.hs-fly { position: fixed; z-index: 95; pointer-events: none; }
.hs-fly svg { display: block; width: 100%; height: 100%; overflow: visible; }
.hs-track.is-found i { pointer-events: none; cursor: default; }

@keyframes hs-walk { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(var(--hs-d)); } }
@keyframes hs-flip { 0% { transform: scaleX(-1); } 50%, 100% { transform: scaleX(1); } }
@keyframes hs-waddle { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
@keyframes hs-sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes hs-step { 0%, 50%, 100% { transform: translateY(0); } 25% { transform: translateY(-3px); } }
@keyframes hs-jump { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes hs-pop { 0% { transform: scale(.7); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes hs-stamp { 0% { opacity: 0; transform: rotate(-12deg) scale(1.6); } 100% { opacity: 1; transform: rotate(-12deg) scale(1); } }

.hs-pill {
  position: fixed; left: 50%; bottom: 20px; z-index: 90;
  display: flex; align-items: center; gap: 8px;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  padding: 6px 14px 6px 10px;
  background: #fff; color: var(--c-ink);
  border: 1px solid var(--c-ink); box-shadow: 3px 3px 0 var(--c-ink);
  font-size: 13px; font-weight: 700; line-height: 1.4; white-space: nowrap;
  transition: opacity .2s, transform .2s;
}
.hs-pill.is-show { opacity: 1; transform: translate(-50%, 0); }
.hs-pill svg { display: block; width: 20px; height: 28px; overflow: visible; }
.hs-pill em { font-style: normal; color: var(--c-accent); font-size: 16px; margin: 0 2px; }

.sq {
  background: var(--c-g-xmas); color: #fff;
  padding: 16px 16px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.sq-text { min-width: 0; }
.sq-kicker { font-size: 11px; font-weight: 700; letter-spacing: .08em; line-height: 1.5; }
.sq-title { font-size: 15px; font-weight: 800; line-height: 1.5; letter-spacing: .02em; }
.sq-title b { font-size: 19px; font-weight: 900; margin: 0 1px; }
.sq-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.sq-slots { display: flex; gap: 4px; list-style: none; }
.sq-slots li {
  width: 26px; height: 34px; padding: 3px;
  background: rgba(255, 255, 255, .28); border-radius: 13px;
}
.sq-slots svg { display: block; width: 20px; height: 28px; overflow: visible; filter: brightness(0) invert(1); opacity: .55; }
.sq-slots li.is-on { background: #fff; }
.sq-slots li.is-on svg { filter: none; opacity: 1; animation: hs-pop .35s ease-out; }
.sq-count { font-size: 11px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.sq-count b { font-size: 15px; font-weight: 800; margin-right: 2px; }
.sq-btn {
  font-family: inherit; font-size: 13px; font-weight: 800; line-height: 1;
  min-height: 44px; padding: 0 16px;
  background: var(--c-gold); color: var(--c-ink);
  border: 1px solid var(--c-ink); box-shadow: 3px 3px 0 rgba(255, 255, 255, .9);
  cursor: pointer; white-space: nowrap;
}
.sq-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(255, 255, 255, .9); }
.sq-btn[hidden], .sq-slots[hidden], .sq-count[hidden] { display: none; }
.sq-done { font-size: 12px; font-weight: 800; color: #fff; border: 1.5px solid #fff; padding: 5px 10px; line-height: 1.2; transform: rotate(-4deg); }
.sq-done[hidden] { display: none; }

.sq-fix {
  position: fixed; left: 50%; bottom: 0; z-index: 80;
  width: 100%; max-width: 480px;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
  background: var(--c-g-xmas); color: #fff;
  border-top: 1px solid rgba(255, 255, 255, .35);
  transform: translate(-50%, 100%); visibility: hidden;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), visibility .25s;
}
.sq-fix.is-show { transform: translate(-50%, 0); visibility: visible; }
.sq-fix-text { flex: 1; min-width: 0; font-size: 12px; font-weight: 800; line-height: 1.4; font-variant-numeric: tabular-nums; }
.sq-fix-text span { display: inline-block; }
.sq-fix-text b { font-size: 16px; font-weight: 900; margin: 0 2px; }
.sq-fix .sq-slots { flex: none; gap: 3px; }
.sq-fix .sq-slots li { width: 22px; height: 28px; padding: 3px; border-radius: 11px; }
.sq-fix .sq-slots svg { width: 16px; height: 22px; }
.sq-fix .sq-btn { flex: none; }
.has-sq-fix .footer { padding-bottom: 88px; }

.cp-overlay {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 24px 20px;
  background: rgba(7, 13, 38, .72);
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.cp-overlay.is-open { opacity: 1; visibility: visible; }
.cp-dialog {
  position: relative; width: 100%; max-width: 340px;
  background: #fff; color: var(--c-ink);
  border: 1px solid var(--c-ink); box-shadow: 5px 5px 0 var(--c-gold);
  padding: 44px 20px 20px; text-align: center;
  transform: translateY(12px); transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}
.cp-overlay.is-open .cp-dialog { transform: none; }
.cp-close {
  position: absolute; top: 0; right: 0; width: 44px; height: 44px;
  border: 0; background: transparent; color: var(--c-ink-2); cursor: pointer;
  font-family: inherit; font-size: 22px; line-height: 1;
}
.cp-santa { position: absolute; left: 50%; top: -30px; width: 44px; margin-left: -22px; }
.cp-santa svg { display: block; width: 44px; height: 62px; overflow: visible; transform-origin: 50% 100%; animation: hs-jump .5s ease-out infinite; }
.cp-title { font-size: 17px; font-weight: 800; line-height: 1.5; letter-spacing: .02em; }
.cp-title span { background: linear-gradient(transparent 58%, var(--c-marker) 58%); padding: 0 2px; }
.cp-lead { margin-top: 6px; font-size: 12px; color: var(--c-ink-2); line-height: 1.7; }

.cp-ticket {
  position: relative; margin: 16px 0;
  display: flex; align-items: stretch;
  background: var(--c-band); border: 1px solid var(--c-ink);
  text-align: left;
}
.cp-value {
  flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 14px 14px; border-right: 1.5px dashed var(--c-ink);
  color: var(--c-accent); line-height: 1;
}
.cp-value b { font-size: 30px; font-weight: 900; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.cp-value b small { font-size: 15px; font-weight: 800; margin-left: 1px; }
.cp-value span { margin-top: 6px; font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.cp-cond { flex: 1; min-width: 0; padding: 12px 12px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.cp-cond dt { font-size: 10px; font-weight: 700; color: var(--c-ink-3); line-height: 1.4; }
.cp-cond dd { font-size: 12px; font-weight: 700; color: var(--c-ink); line-height: 1.5; }
.cp-cond dd + dt { margin-top: 4px; }
.cp-cond dd .nw { white-space: nowrap; }
.cp-cond dd small { display: block; font-size: 10px; font-weight: 500; color: var(--c-ink-3); line-height: 1.5; margin-top: 1px; }
.cp-stamp {
  position: absolute; right: 8px; bottom: 8px;
  padding: 4px 8px; border: 2px solid var(--c-accent); color: var(--c-accent);
  background: rgba(255, 255, 255, .86);
  font-size: 14px; font-weight: 900; letter-spacing: .1em; line-height: 1.2;
  transform: rotate(-12deg); animation: hs-stamp .3s ease-out;
}
.cp-stamp[hidden] { display: none; }
.cp-overlay[data-view="done"] .cp-cond { padding-bottom: 38px; }

.cp-btn {
  width: 100%; min-height: 48px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 15px; font-weight: 800; letter-spacing: .04em; line-height: 1;
  background: var(--c-night); color: var(--c-gold);
  border: 1px solid var(--c-ink); box-shadow: 3px 3px 0 var(--c-ink);
  cursor: pointer;
}
.cp-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--c-ink); }
.cp-btn[disabled] { opacity: .7; cursor: default; transform: none; box-shadow: 3px 3px 0 var(--c-ink); }
.cp-btn .cp-spin {
  width: 16px; height: 16px; border: 2px solid var(--c-gold); border-top-color: transparent; border-radius: 50%;
  animation: spin .8s linear infinite;
}
.cp-mock { margin-top: 14px; font-size: 10px; color: var(--c-ink-3); line-height: 1.6; }
.cp-mock button {
  font: inherit; color: var(--c-ink-2); background: none; border: 0; padding: 0;
  text-decoration: underline; cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .hs-pill, .cp-overlay, .cp-dialog, .sq-fix { transition: none; }
  .hs-track .hs-santa, .hs-track i, .hs-track svg, .hs-track .hs-leg, .hs-track .hs-foot, .hs-track.is-pop svg,
  .sq-slots li.is-on svg, .cp-santa svg, .cp-stamp { animation: none; }
  .hs-track.hs-pop .hs-santa { transform: none; }
}

.cp-slots { justify-content: center; margin: 14px 0 0; }
.cp-slots li { background: var(--c-bg); border: 1px dashed var(--c-line-strong); }
.cp-slots svg { filter: grayscale(1); opacity: .3; }
.cp-slots li.is-on { background: #fff; border: 1px solid var(--c-ink); }
.cp-slots li.is-on svg { filter: none; opacity: 1; }
.cp-overlay:not([data-view="intro"]) .cp-slots { display: none; }
.cp-overlay[data-view="intro"] .cp-mock { display: none; }

.kr-layer {
  position: fixed; top: 0; bottom: 0; left: 50%; z-index: 60;
  width: 100%; max-width: 480px; transform: translateX(-50%);
  pointer-events: none;
}
.kr-layer .kr-star {
  position: absolute; display: block; opacity: 0;
  background: var(--c-gold);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  animation: kr-twinkle 3s ease-in-out infinite;
}
.kr-layer .kr-star:nth-child(3n) { background: var(--c-marker); }
.kr-layer { overflow: hidden; }
.kr-snow {
  position: absolute; top: -12px; display: block; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 .5px rgba(14, 24, 56, .25), 0 0 4px rgba(255, 255, 255, .9);
  animation-name: kr-fall, kr-sway; animation-timing-function: linear, ease-in-out;
  animation-iteration-count: infinite, infinite; animation-direction: normal, alternate;
}
@keyframes kr-fall { from { top: -12px; } to { top: 100%; } }
@keyframes kr-sway { from { transform: translateX(calc(var(--kr-sway) * -1)); } to { transform: translateX(var(--kr-sway)); } }
@keyframes kr-twinkle {
  0%, 100% { opacity: 0; transform: scale(.3) rotate(0deg); }
  50% { opacity: .9; transform: scale(1) rotate(45deg); }
}
.kr-confetti { position: fixed; top: 0; z-index: 96; display: block; pointer-events: none; }

.is-kira .hero { position: relative; overflow: hidden; }
.is-kira .hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 240, 200, .45) 50%, transparent 65%);
  transform: translateX(-100%); animation: kr-shine 3.6s ease-in-out infinite;
}
@keyframes kr-shine { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

.is-kira .section-catalog { background-image: radial-gradient(rgba(var(--glow-gold), .6) 1.2px, transparent 1.2px); }
.is-kira .sec-head span { background: linear-gradient(transparent 58%, var(--c-gold) 58%); }
.is-kira .card { box-shadow: 3px 3px 0 var(--c-gold); }
.is-kira .card:hover { box-shadow: 5px 5px 0 var(--c-gold); }
.is-kira .card:active { box-shadow: 1px 1px 0 var(--c-gold); }
.is-kira .footer { border-top: 2px solid var(--c-gold); }

.is-kira .sq-fix { background: var(--c-night); border-top: 1px solid var(--c-gold); overflow: hidden; }
.is-kira .sq-fix > * { position: relative; }
.is-kira .sq-fix::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(var(--glow-gold), .35) 50%, transparent 65%);
  transform: translateX(-100%); animation: kr-shine 3s ease-in-out infinite;
}
.is-kira .sq-fix-text { color: var(--c-gold); }
.is-kira .sq-fix-text b { color: #fff; }
.is-kira .sq-fix .sq-btn { box-shadow: 3px 3px 0 rgba(var(--glow-gold), .5); }

@media (prefers-reduced-motion: reduce) {
  .kr-layer .kr-star { animation: none; opacity: .6; transform: rotate(45deg); }
  .kr-snow { display: none; }
  .is-kira .hero::after, .is-kira .sq-fix::before { animation: none; display: none; }
}
