/* ============================================
   Pockets & Friends — Level Progress
   Site-wide floating button + progress modal
============================================ */

.pf-level-fab {
  position: fixed;
  left: 1.75rem;
  bottom: 1.75rem;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(14,11,30,0.92);
  border: 1px solid rgba(245,200,66,0.3);
  border-radius: 100px;
  padding: 8px 16px 8px 8px;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(0,0,0,0.4);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  font-family: var(--fb);
}

.pf-level-fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
}

.pf-level-fab__icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pocket-gold), var(--hat-orange));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: #14101f;
  font-family: var(--fh);
  flex-shrink: 0;
}

.pf-level-fab__label {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.pf-level-fab__label small {
  font-size: .6rem;
  font-weight: 800;
  color: rgba(255,255,255,.4);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.pf-level-fab__label span {
  font-size: .82rem;
  font-weight: 800;
  color: #fff;
}

/* ── Modal ── */
.pf-level-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.pf-level-modal.is-active { display: flex; }

.pf-level-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8,6,20,0.82);
  backdrop-filter: blur(4px);
}

.pf-level-modal__panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 85vh;
  overflow-y: auto;
  background: rgba(20,16,38,0.98);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius, 20px);
  padding: 2rem 1.5rem 1.5rem;
  box-shadow: 0 24px 64px rgba(0,0,0,0.55);
  transform: scale(.85);
  opacity: 0;
  transition: transform .38s cubic-bezier(.34,1.56,.64,1), opacity .28s ease;
}

.pf-level-modal.is-active .pf-level-modal__panel {
  transform: scale(1);
  opacity: 1;
}

.pf-level-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s var(--ease);
}
.pf-level-modal__close:hover { background: rgba(255,255,255,0.22); }

.pf-level-modal__level-text {
  text-align: center;
  font-family: var(--fh);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--pocket-gold);
  margin-bottom: 1.2rem;
}

.pf-level-modal__bar-bg {
  height: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1.4rem;
}

.pf-level-modal__bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg,#F4841E,#F5C842);
  border-radius: 4px;
  transition: width .6s ease;
}

.pf-level-checklist-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: .7rem .2rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.pf-level-checklist-row:last-child { border-bottom: none; }

.pf-level-checklist-row__icon {
  font-size: 1.2rem;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}

.pf-level-checklist-row__label {
  flex: 1;
  font-size: .85rem;
  font-weight: 700;
  color: #fff;
}

.pf-level-checklist-row__count {
  font-size: .78rem;
  font-weight: 800;
  color: var(--text-lo);
}

.pf-level-checklist-row.done .pf-level-checklist-row__label {
  color: var(--letter-green, #5BBF3A);
}

.pf-level-modal__maxed {
  text-align: center;
  padding: 1.5rem 0;
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 480px) {
  .pf-level-fab { left: 1.1rem; bottom: 1.1rem; padding: 6px 12px 6px 6px; }
  .pf-level-fab__icon-wrap { width: 38px; height: 38px; font-size: .85rem; }
  .pf-level-fab__label small { display: none; }
}
