/* =====================================================
   Elegant Page Counter
   ===================================================== */
.page-counter,
#page-counter {
  position: fixed !important;
  right: max(32px, env(safe-area-inset-right, 0px)) !important;
  bottom: max(32px, env(safe-area-inset-bottom, 0px)) !important;
  left: auto !important;
  top: auto !important;
  font-size: 0.95rem;
  font-family: 'Shippori Mincho', serif;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: #1a1e23;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.6rem 1.4rem;
  border-radius: 40px;
  pointer-events: auto;
  cursor: pointer;
  z-index: 9999 !important;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05), inset 0 0 0 1px rgba(255,255,255,0.3);
  display: flex !important;
  align-items: center;
  gap: 0.3rem;
  animation: fadeInCounter 1.5s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  animation-delay: 0.8s;
  transition: all 0.4s ease;
}

.page-counter:hover,
#page-counter:hover {
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(255,255,255,0.5);
  transform: translateY(-1px);
}

@keyframes fadeInCounter {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.page-counter .sep {
  color: #8c96a0;
  font-weight: 300;
  font-size: 0.8rem;
  margin: 0 0.1em;
}

.page-counter span {
  display: inline-block;
  min-width: 1em;
  text-align: center;
}
