/* 세 시안이 공유하는 최소 규칙: 자릿수 롤, 비행 썸네일, 토스트, 예시 배지.
   색·폰트·레이아웃은 각 시안이 정한다. */
.zp-digit { display: inline-block; overflow: hidden; vertical-align: bottom; line-height: inherit; height: 1.15em; }
.zp-digit-in { display: inline-block; animation: zp-roll .45s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes zp-roll { from { transform: translateY(calc(-100% * var(--dir, 1))); opacity: 0; } to { transform: none; opacity: 1; } }

.zp-fly { box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }

.zp-toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 10000; transform: translate(-50%, 16px);
  padding: 10px 16px; border-radius: 999px; font: 600 14px/1.2 "Pretendard Variable", Pretendard, system-ui, sans-serif;
  background: #111827; color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .32s cubic-bezier(.16, 1, .3, 1);
}
.zp-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.zp-toast.has-act.is-on { pointer-events: auto; display: flex; align-items: center; gap: 12px; width: max-content; max-width: calc(100vw - 32px); border-radius: 14px; }
.zp-toast-act { flex: none; white-space: nowrap; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35); background: none; color: #fff; font: inherit; font-size: 13px; cursor: pointer; }
.zp-toast-act:hover, .zp-toast-act:focus-visible { background: rgba(255, 255, 255, .12); outline: none; }

.zp-demo {
  display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px; border-radius: 4px;
  font: 600 10px/1.5 "Geist Mono", "Pretendard Variable", ui-monospace, monospace; letter-spacing: .02em;
  border: 1px dashed currentColor; opacity: .7; vertical-align: middle; white-space: nowrap;
}

.zp-nodata { padding: 48px 24px; text-align: center; font: 15px/1.6 system-ui, sans-serif; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
