/**
 * InterFilm — Salon VIP « Gérer les profils »
 * Atmosphère cinéma privé / champagne & velours
 */
#profileManagerModal.pm-modal {
  --pm-gold: #e4b35a;
  --pm-gold-soft: rgba(228, 179, 90, 0.55);
  --pm-gold-dim: rgba(228, 179, 90, 0.14);
  --pm-ink: #07060a;
  --pm-panel: #0e0c12;
  --pm-cream: #f3e6c8;
  --pm-muted: rgba(243, 230, 200, 0.52);
  --pm-line: rgba(228, 179, 90, 0.22);
  position: fixed;
  inset: 0;
  z-index: 100000050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: max(14px, env(safe-area-inset-top)) 16px max(14px, env(safe-area-inset-bottom));
  background:
    radial-gradient(ellipse 70% 55% at 50% 110%, rgba(228, 179, 90, 0.12), transparent 55%),
    rgba(2, 2, 4, 0.88);
  backdrop-filter: blur(22px) saturate(1.15);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
}

#profileManagerModal.pm-modal.pm-modal--enter {
  display: flex;
}

#profileManagerModal .pm-dialog,
#profileManagerModal .pm-dialog--vip {
  position: relative;
  width: min(920px, 100%);
  max-width: 920px;
  max-height: min(90vh, 780px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 28px;
  border: 1px solid var(--pm-line);
  background:
    linear-gradient(165deg, rgba(24, 20, 16, 0.96) 0%, var(--pm-panel) 42%, #08070b 100%);
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 1px 0 rgba(228, 179, 90, 0.18) inset;
}

#profileManagerModal.pm-modal--enter .pm-dialog {
  opacity: 0;
  transform: translateY(56px) scale(0.96);
  animation: pmVipRise 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pmVipRise {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ── Stage atmosphérique ── */
.pm-stage {
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}

.pm-stage-beam {
  position: absolute;
  top: -20%;
  left: -10%;
  width: 55%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(228, 179, 90, 0.18), transparent 68%);
  filter: blur(8px);
  animation: pmBeamDrift 14s ease-in-out infinite alternate;
}

.pm-stage-beam--r {
  left: auto;
  right: -15%;
  top: 30%;
  width: 50%;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(180, 90, 40, 0.12), transparent 70%);
  animation-delay: -4s;
}

.pm-stage-ring {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 120%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(228, 179, 90, 0.08);
  box-shadow:
    0 0 0 40px rgba(228, 179, 90, 0.03),
    0 0 0 90px rgba(228, 179, 90, 0.02);
  opacity: 0.7;
}

.pm-stage-grain {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  animation: pmGrainShift 8s steps(2) infinite;
}

.pm-stage-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 65% at 50% 40%, transparent 30%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.15), transparent 28%, transparent 70%, rgba(0, 0, 0, 0.45));
}

@keyframes pmBeamDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(18px, 12px, 0) scale(1.06); }
}

@keyframes pmGrainShift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-2%, 1%); }
}

/* ── Masthead ── */
.pm-mast {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "brand close"
    "copy copy";
  gap: 10px 16px;
  padding: 26px 28px 18px;
  border-bottom: 1px solid rgba(228, 179, 90, 0.12);
}

.pm-mast-brand {
  grid-area: brand;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pm-brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.65rem, 3.5vw, 2.05rem);
  letter-spacing: 0.06em;
  color: #fff;
  line-height: 1;
  text-shadow: 0 0 40px rgba(228, 179, 90, 0.25);
}

.pm-vip-seal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(228, 179, 90, 0.35);
  background: linear-gradient(135deg, rgba(228, 179, 90, 0.18), rgba(228, 179, 90, 0.05));
  color: var(--pm-gold);
  font-family: 'Outfit', sans-serif;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 0 24px rgba(228, 179, 90, 0.12);
}

.pm-mast-copy {
  grid-area: copy;
  max-width: 36rem;
}

.pm-vip-title {
  margin: 0;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(1.85rem, 4vw, 2.55rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.05;
}

.pm-vip-title em {
  font-style: italic;
  color: var(--pm-gold);
  text-shadow: 0 0 32px rgba(228, 179, 90, 0.35);
}

.pm-vip-sub {
  margin: 8px 0 0;
  font-family: 'Outfit', sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--pm-muted);
  line-height: 1.45;
}

#profileManagerModal .pm-close {
  grid-area: close;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s, background 0.2s, color 0.2s;
}

#profileManagerModal .pm-close:hover {
  color: #fff;
  border-color: rgba(228, 179, 90, 0.45);
  background: rgba(228, 179, 90, 0.12);
  transform: rotate(90deg);
}

/* ── Body ── */
#profileManagerModal .pm-body {
  position: relative;
  z-index: 2;
  padding: 20px 24px 28px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(228, 179, 90, 0.35) transparent;
}

/* Capacity meter */
.pmv-meter {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(228, 179, 90, 0.14);
  background: linear-gradient(90deg, rgba(228, 179, 90, 0.08), transparent 70%);
}

.pmv-meter-label {
  flex-shrink: 0;
  font-family: 'Outfit', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pm-gold);
}

.pmv-meter-track {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  position: relative;
}

.pmv-meter-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #c4923a, var(--pm-gold), #f0d08a);
  box-shadow: 0 0 16px rgba(228, 179, 90, 0.55);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.pmv-meter-count {
  flex-shrink: 0;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: #fff;
}

.pmv-meter-count span {
  color: var(--pm-gold);
}

/* Casting strip */
.pmv-cast {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.pmv-tile {
  --delay: 0ms;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 22px 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 48%),
    rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateY(24px);
  animation: pmvTileIn 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--delay);
  transition: border-color 0.3s, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s;
}

.pmv-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(228, 179, 90, 0.35);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45), 0 0 40px rgba(228, 179, 90, 0.08);
}

@keyframes pmvTileIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pmv-tile--main {
  border-color: rgba(228, 179, 90, 0.28);
  background:
    linear-gradient(165deg, rgba(228, 179, 90, 0.12), transparent 50%),
    rgba(0, 0, 0, 0.35);
}

.pmv-tile--main::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(228, 179, 90, 0.55), transparent 40%, transparent 70%, rgba(228, 179, 90, 0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.pmv-tile--add {
  border-style: dashed;
  border-color: rgba(228, 179, 90, 0.28);
  background: rgba(228, 179, 90, 0.03);
}

.pmv-portrait {
  position: relative;
  width: 108px;
  height: 108px;
  flex-shrink: 0;
  overflow: visible;
}

.pmv-portrait-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(228, 179, 90, 0.35);
  box-shadow:
    0 0 0 4px rgba(228, 179, 90, 0.06),
    0 0 28px rgba(228, 179, 90, 0.15);
  pointer-events: none;
  transition: box-shadow 0.3s, border-color 0.3s;
}

.pmv-tile--main .pmv-portrait-ring {
  border-color: rgba(228, 179, 90, 0.65);
  animation: pmvRingPulse 3.2s ease-in-out infinite;
}

@keyframes pmvRingPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(228, 179, 90, 0.06), 0 0 28px rgba(228, 179, 90, 0.18); }
  50% { box-shadow: 0 0 0 6px rgba(228, 179, 90, 0.1), 0 0 40px rgba(228, 179, 90, 0.32); }
}

.pmv-avatar,
button.pmv-avatar {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.55);
  background: #121018;
  overflow: visible;
  display: block;
  padding: 0;
  cursor: default;
  position: relative;
  z-index: 1;
}

button.pmv-avatar {
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

button.pmv-avatar:hover {
  transform: scale(1.05);
}

button.pmv-avatar:hover + .pmv-portrait-ring,
.pmv-portrait:has(button.pmv-avatar:hover) .pmv-portrait-ring {
  border-color: rgba(228, 179, 90, 0.85);
  box-shadow: 0 0 0 5px rgba(228, 179, 90, 0.12), 0 0 36px rgba(228, 179, 90, 0.35);
}

.pmv-avatar-clip {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  z-index: 1;
  background: #121018;
}

.pmv-avatar-clip img,
.pmv-avatar-clip svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.pmv-deco {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  inset: auto !important;
  width: 118% !important;
  height: 118% !important;
  max-width: none !important;
  max-height: none !important;
  transform: translate(-50%, -50%) !important;
  object-fit: contain !important;
  border-radius: 0 !important;
  pointer-events: none;
  z-index: 2 !important;
}

.pmv-avatar--add {
  background:
    radial-gradient(circle at 40% 35%, rgba(228, 179, 90, 0.18), transparent 55%),
    #121018;
  border: 2px dashed rgba(228, 179, 90, 0.4);
}

.pmv-avatar--add .pmv-avatar-clip {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.pmv-avatar--add svg {
  width: 32px;
  height: 32px;
}

.pmv-edit-hint {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: 50%;
  background: rgba(8, 6, 4, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

button.pmv-avatar:hover .pmv-edit-hint {
  opacity: 1;
}

.pmv-meta {
  width: 100%;
  min-width: 0;
}

.pmv-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: #fff;
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.1;
}

.pmv-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pm-gold);
  margin-bottom: 8px;
}

.pmv-hint {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  color: rgba(243, 230, 200, 0.42);
  line-height: 1.4;
}

.pmv-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}

.pmv-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s;
}

.pmv-icon:hover {
  color: #fff;
  border-color: rgba(228, 179, 90, 0.4);
  background: rgba(228, 179, 90, 0.12);
}

.pmv-icon--danger:hover {
  color: #ff9a9a;
  border-color: rgba(255, 100, 100, 0.35);
  background: rgba(255, 70, 70, 0.1);
}

#profileManagerModal .pm-profile-input {
  display: none;
  width: 100%;
  margin: 0 0 8px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(228, 179, 90, 0.4);
  color: #fff;
  padding: 9px 12px;
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.875rem;
  outline: none;
  text-align: center;
}

/* Create form inside add tile */
.pmv-create {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pmv-create-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--pm-cream);
  margin: 0;
}

.pmv-create-slots {
  font-family: 'Outfit', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(228, 179, 90, 0.7);
}

#profileManagerModal .pm-input {
  width: 100%;
  margin: 0;
  display: block;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 12px 14px;
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.875rem;
  text-align: center;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

#profileManagerModal .pm-input:focus {
  border-color: rgba(228, 179, 90, 0.5);
  background: rgba(0, 0, 0, 0.65);
  box-shadow: 0 0 0 3px rgba(228, 179, 90, 0.12);
}

#profileManagerModal .pm-input::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

#profileManagerModal .pm-btn-primary {
  width: 100%;
  appearance: none;
  border: none;
  cursor: pointer;
  padding: 13px 18px;
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1a1208;
  background: linear-gradient(135deg, #f0d08a 0%, #e4b35a 45%, #c4923a 100%);
  box-shadow: 0 10px 28px rgba(228, 179, 90, 0.35);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

#profileManagerModal .pm-btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 14px 36px rgba(228, 179, 90, 0.45);
}

.pmv-limit {
  margin: 18px 0 0;
  padding: 14px 16px;
  text-align: center;
  border-radius: 14px;
  border: 1px solid rgba(228, 179, 90, 0.2);
  background: rgba(228, 179, 90, 0.06);
  font-family: 'Outfit', sans-serif;
  font-size: 0.8125rem;
  color: var(--pm-muted);
}

.pmv-limit strong {
  color: var(--pm-gold);
  font-weight: 600;
}

/* Legacy intro hidden if somehow rendered */
#profileManagerModal .pm-intro,
#profileManagerModal .pm-atmos,
#profileManagerModal .pm-head {
  display: none !important;
}

.pmv-colors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 8px 0 4px;
}

.pmv-swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.45);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s, box-shadow 0.15s;
}

.pmv-swatch:hover {
  transform: scale(1.15);
}

.pmv-swatch.is-on {
  box-shadow: 0 0 0 2px #0e0c12, 0 0 0 4px rgba(228, 179, 90, 0.85);
}

/* Déco picker sheet */
.pm-deco-sheet {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.pm-deco-sheet[hidden] {
  display: none !important;
}

.pm-deco-sheet.is-on {
  opacity: 1;
}

.pm-deco-sheet-panel {
  width: min(100%, 640px);
  max-height: min(68vh, 520px);
  display: flex;
  flex-direction: column;
  border-radius: 20px 20px 16px 16px;
  border: 1px solid rgba(228, 179, 90, 0.28);
  background: linear-gradient(180deg, #16131c, #0b0a0f);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.55);
  transform: translateY(24px);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.pm-deco-sheet.is-on .pm-deco-sheet-panel {
  transform: translateY(0);
}

.pm-deco-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(228, 179, 90, 0.12);
}

.pm-deco-sheet-eyebrow {
  margin: 0 0 4px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pm-gold, #e4b35a);
}

.pm-deco-sheet-title {
  margin: 0;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 400;
  color: #fff;
}

.pm-deco-sheet-grid {
  padding: 14px 16px 18px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 10px;
}

.pm-deco-item {
  aspect-ratio: 1;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  padding: 6px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}

.pm-deco-item:hover {
  border-color: rgba(228, 179, 90, 0.45);
  transform: translateY(-2px);
  background: rgba(228, 179, 90, 0.08);
}

.pm-deco-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pm-deco-item--none {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.pm-deco-item.is-locked {
  opacity: 0.55;
}

.pm-deco-lock {
  position: absolute;
  right: 4px;
  bottom: 4px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.5625rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 2px 5px;
  border-radius: 6px;
  background: rgba(228, 179, 90, 0.9);
  color: #1a1208;
}

.pm-font-sheet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  max-height: min(48vh, 360px);
  overflow: auto;
  padding: 4px 2px 8px;
}

.pm-font-item {
  position: relative;
  appearance: none;
  border: 1px solid rgba(228, 179, 90, 0.22);
  background: rgba(0, 0, 0, 0.35);
  color: #f3e6c8;
  border-radius: 12px;
  padding: 14px 12px;
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.pm-font-item:hover {
  border-color: rgba(228, 179, 90, 0.55);
  background: rgba(228, 179, 90, 0.1);
  transform: translateY(-1px);
}

.pm-font-item.is-on {
  border-color: rgba(228, 179, 90, 0.85);
  box-shadow: 0 0 0 1px rgba(228, 179, 90, 0.35);
}

.pm-font-item.is-locked {
  opacity: 0.55;
}

@media (max-width: 640px) {
  .pm-mast {
    padding: 20px 18px 14px;
  }

  #profileManagerModal .pm-body {
    padding: 16px 16px 22px;
  }

  .pmv-cast {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .pmv-portrait,
  .pmv-avatar,
  button.pmv-avatar {
    width: 88px;
    height: 88px;
  }

  .pmv-tile {
    padding: 16px 12px 14px;
  }
}

@media (max-width: 420px) {
  .pmv-cast {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  #profileManagerModal.pm-modal--enter .pm-dialog,
  .pmv-tile,
  .pm-stage-beam,
  .pm-stage-grain,
  .pmv-tile--main .pmv-portrait-ring,
  .pm-deco-sheet,
  .pm-deco-sheet-panel {
    animation: none !important;
    transition: none !important;
  }

  .pmv-tile {
    opacity: 1;
    transform: none;
  }

  #profileManagerModal.pm-modal--enter .pm-dialog {
    opacity: 1;
    transform: none;
  }
}
