* {
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans KR', sans-serif;
  background: #eceef1;
}

#phone {
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.06);
}

/* Sticker grid cell */
.sticker-cell {
  aspect-ratio: 1 / 1;
  background: transparent;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.1s ease;
  cursor: pointer;
}
.sticker-cell:active {
  background: #e8eaee;
  transform: scale(0.94);
}
.sticker-cell img {
  width: 88%;
  height: 88%;
  object-fit: contain;
}

/* Filter chips */
.chip {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  color: #6b7280;
  background: #fff;
}
.chip-active {
  background: #26282b;
  color: #fff;
  border-color: #26282b;
}

/* Similar cards */
.similar-thumb {
  aspect-ratio: 1 / 1;
  background: #f5f6f8;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.similar-thumb img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

/* Publisher cards */
.pub-card {
  display: flex;
  align-items: center;
  gap: 8px;
}
.follow-btn-sm {
  font-size: 11px;
  font-weight: 600;
  color: #3b82f6;
  border: 1px solid #bfdbfe;
  border-radius: 9999px;
  padding: 4px 10px;
  flex-shrink: 0;
}
.follow-btn.followed,
.follow-btn-sm.followed {
  color: #9ca3af;
  border-color: #e5e7eb;
  background: #f9fafb;
}

/* Footer accordions */
.accordion-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 600;
  color: #4b5563;
  border-bottom: 1px solid #f3f4f6;
}
.accordion-head i {
  transition: transform 0.2s ease;
}
.accordion-head.open i {
  transform: rotate(180deg);
}
.accordion-body {
  padding: 12px 20px;
  font-size: 12px;
  line-height: 1.7;
  color: #6b7280;
  background: #fafafa;
  border-bottom: 1px solid #f3f4f6;
}

/* Modal animation */
@keyframes slide-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.animate-slide-up {
  animation: slide-up 0.25s ease-out;
}

#toast.show {
  opacity: 1;
}

/* ===== Animated GIF badge ===== */
@keyframes gif-shine {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}
@keyframes gif-bounce {
  0%, 100% { transform: translateY(0) rotate(8deg) scale(1); }
  30% { transform: translateY(-3px) rotate(8deg) scale(1.12); }
  50% { transform: translateY(0) rotate(8deg) scale(1); }
}
@keyframes gif-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.55); }
  50% { box-shadow: 0 0 0 5px rgba(236, 72, 153, 0); }
}
.gif-badge {
  position: absolute;
  top: -9px;
  right: -6px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
  padding: 2.5px 7px;
  border-radius: 9999px;
  background: linear-gradient(110deg, #ec4899 20%, #8b5cf6 40%, #ec4899 60%);
  background-size: 200% auto;
  border: 1.5px solid #fff;
  animation: gif-shine 2.2s linear infinite, gif-bounce 1.8s ease-in-out infinite, gif-glow 1.8s ease-in-out infinite;
  pointer-events: none;
}
.gif-badge-lg {
  display: inline-block;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
  padding: 5px 16px;
  border-radius: 9999px;
  background: linear-gradient(110deg, #ec4899 20%, #8b5cf6 40%, #ec4899 60%);
  background-size: 200% auto;
  animation: gif-shine 2.2s linear infinite, gif-glow 1.8s ease-in-out infinite;
}
.gif-badge-inline {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
  padding: 1.5px 6px;
  border-radius: 9999px;
  vertical-align: 1px;
  background: linear-gradient(110deg, #ec4899 20%, #8b5cf6 40%, #ec4899 60%);
  background-size: 200% auto;
  animation: gif-shine 2.2s linear infinite;
}

/* ===== Onboarding guide modal ===== */
@keyframes pop-in {
  from { transform: scale(0.88); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.animate-pop-in {
  animation: pop-in 0.28s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.step-num {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 9999px;
  background: #26282b;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.guide-preview {
  background: #f5f6f8;
  border-radius: 14px;
  padding: 10px;
}
.guide-cell {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.guide-cell img {
  width: 82%;
  height: 82%;
  object-fit: contain;
}
@keyframes cell-press {
  0%, 55%, 100% { transform: scale(1); background: #fff; }
  65%, 80% { transform: scale(0.9); background: #ffe9a8; }
}
.guide-cell-target {
  animation: cell-press 2.4s ease-in-out infinite;
}
@keyframes ring-pulse {
  0%, 55% { transform: scale(0.4); opacity: 0; }
  65% { transform: scale(0.5); opacity: 1; }
  95% { transform: scale(1.5); opacity: 0; }
  100% { opacity: 0; }
}
.tap-ring {
  position: absolute;
  inset: 15%;
  border: 3px solid #f9a825;
  border-radius: 9999px;
  animation: ring-pulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes finger-tap {
  0%, 40% { transform: translate(14px, 16px) scale(1); opacity: 0; }
  55% { transform: translate(4px, 6px) scale(1); opacity: 1; }
  65%, 80% { transform: translate(2px, 3px) scale(0.85); opacity: 1; }
  95% { transform: translate(4px, 6px) scale(1); opacity: 1; }
  100% { opacity: 0; }
}
.tap-finger {
  position: absolute;
  bottom: 8%;
  right: 14%;
  font-size: 20px;
  color: #26282b;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9);
  animation: finger-tap 2.4s ease-in-out infinite;
  pointer-events: none;
}
.tap-finger-btn {
  bottom: -8px;
  right: 16px;
  font-size: 16px;
}
@keyframes btn-pulse {
  0%, 55%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(249, 196, 64, 0.6); }
  65%, 80% { transform: scale(0.95); box-shadow: 0 0 0 6px rgba(249, 196, 64, 0); }
}
.guide-btn-pulse {
  animation: btn-pulse 2.4s ease-in-out infinite;
}

/* ===== Home page ===== */
.pack-badge {
  position: absolute;
  top: -6px;
  left: -6px;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
  padding: 2px 7px;
  border-radius: 9999px;
  background: #ef4444;
  border: 1.5px solid #fff;
}
.pack-badge-anim {
  background: linear-gradient(110deg, #ec4899 20%, #8b5cf6 40%, #ec4899 60%);
  background-size: 200% auto;
  animation: gif-shine 2.2s linear infinite;
}
.stat-box {
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 14px;
  padding: 10px 4px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}
.stat-num {
  font-size: 18px;
  font-weight: 800;
  color: #26282b;
}
.stat-label {
  font-size: 10.5px;
  color: #9ca3af;
  margin-top: 1px;
}
.how-box {
  background: #f5f6f8;
  border-radius: 14px;
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.how-box p {
  font-size: 10.5px;
  color: #6b7280;
  line-height: 1.4;
}

/* Marquee */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee-scroll 24s linear infinite;
}
.marquee-track img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ===== Upgraded preview modal ===== */
.modal-stage {
  position: relative;
  height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #fff8e1 0%, #f5f6f8 60%, #eef1f5 100%);
  overflow: hidden;
}
.modal-stage-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#e3e7ec 1.5px, transparent 1.5px);
  background-size: 18px 18px;
  opacity: 0.6;
}
.modal-img-wrap {
  position: relative;
  width: 170px;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
}
@keyframes float-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes img-swap-in {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.modal-img-wrap.img-swap #modal-img {
  animation: img-swap-in 0.28s cubic-bezier(0.34, 1.4, 0.64, 1), float-soft 3s ease-in-out 0.3s infinite;
}
#modal-img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.12));
  animation: float-soft 3s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.15); opacity: 0.8; }
}
.modal-glow {
  position: absolute;
  inset: 12%;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(249, 196, 64, 0.35) 0%, transparent 70%);
  animation: glow-pulse 3s ease-in-out infinite;
}
.modal-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: #4b5563;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-nav-btn:active {
  transform: translateY(-50%) scale(0.9);
}
.modal-counter {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 2;
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  background: rgba(255, 255, 255, 0.85);
  padding: 3px 10px;
  border-radius: 9999px;
}
.info-chip {
  font-size: 10.5px;
  font-weight: 600;
  color: #6b7280;
  background: #f5f6f8;
  border-radius: 9999px;
  padding: 4px 10px;
  white-space: nowrap;
}
.modal-thumb {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: #f5f6f8;
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.modal-thumb img {
  width: 82%;
  height: 82%;
  object-fit: contain;
}
.modal-thumb.active {
  border-color: #f9c440;
  background: #fff8e1;
  transform: scale(1.05);
}
.no-scrollbar {
  scrollbar-width: none;
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
