@keyframes pfBgFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes pfNameShimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@keyframes pfNamePulse {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(255, 213, 74, 0.55)); }
  50% { filter: drop-shadow(0 0 13px rgba(255, 213, 74, 0.95)); }
}
@keyframes pfFrameSpin {
  0% { background-position: 0% 50%; filter: brightness(1); }
  50% { background-position: 100% 50%; filter: brightness(1.18); }
  100% { background-position: 0% 50%; filter: brightness(1); }
}
@keyframes pfFrameGlowPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(249, 115, 22, 0.65), inset 0 0 8px rgba(251, 191, 36, 0.35); }
  50% { box-shadow: 0 0 22px rgba(239, 68, 68, 0.95), inset 0 0 12px rgba(253, 224, 71, 0.6); }
}
@keyframes pfFrameCyber {
  0%, 100% { box-shadow: 0 0 10px rgba(34, 211, 238, 0.7), 0 0 20px rgba(59, 130, 246, 0.35); }
  50% { box-shadow: 0 0 18px rgba(56, 189, 248, 0.98), 0 0 28px rgba(168, 85, 247, 0.6); }
}
@keyframes pfFrameSakura {
  0%, 100% { box-shadow: 0 0 10px rgba(244, 114, 182, 0.72), 0 0 18px rgba(253, 164, 175, 0.45); }
  50% { box-shadow: 0 0 20px rgba(251, 113, 133, 0.98), 0 0 30px rgba(244, 114, 182, 0.65); }
}
@keyframes pfToastIn {
  from { opacity: 0; transform: translateY(14px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.pf-bg-anim-flame,
.pf-bg-anim-aurora,
.pf-bg-anim-sakura,
.pf-bg-anim-galaxy {
  background-size: 300% 300% !important;
  animation: pfBgFlow 9s ease infinite;
}

.pf-name-shimmer {
  background-size: 200% auto !important;
  animation: pfNameShimmer 2.6s linear infinite;
}
.pf-name-rainbow {
  background-image: linear-gradient(90deg, #ff5f6d, #ffc371, #4ade80, #38bdf8, #c084fc, #ff5f6d) !important;
  background-size: 260% auto !important;
  animation: pfNameShimmer 3.2s linear infinite;
}
.pf-name-pulse {
  animation: pfNamePulse 1.8s ease-in-out infinite;
}

.pf-frame-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 3px;
  box-sizing: border-box;
  flex: none;
}
.pf-frame-wrap > img {
  width: 100%;
  height: 100%;
  border-radius: 7px;
  object-fit: cover;
  display: block;
  background: #0f172a;
}
.pf-frame-wrap.pf-frame-custom-img {
  background: transparent;
  box-shadow: none;
  padding: 0;
  overflow: visible;
}
.pf-frame-wrap.pf-frame-custom-img > img.pf-frame-avatar-img {
  position: relative;
  z-index: 1;
  border-radius: 8px;
}
.pf-frame-wrap > img.pf-frame-overlay-img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  max-width: none !important;
  object-fit: contain;
  pointer-events: none;
  z-index: 3;
  border-radius: 0;
  background: transparent;
}
.dy-pf-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  display: block;
}
.dy-pf-video-hint {
  position: absolute;
  bottom: 5px;
  left: 6px;
  z-index: 1;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(9, 13, 26, 0.7);
  color: #e2e8f0;
  font-size: 10px;
  pointer-events: none;
}
.dy-pf-video-options {
  position: relative;
  z-index: 4;
  box-sizing: border-box;
  width: 100%;
  padding: 10px 12px;
  margin: 0;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 8px;
  background: #121c2e;
  color: #f1f5f9;
}
.dy-pf-video-options-label {
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 700;
}
.dy-pf-video-options-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dy-pf-video-options button {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #64748b;
  border-radius: 6px;
  background: #17243b;
  color: #f1f5f9;
  font: 700 12px 'Segoe UI', sans-serif;
  cursor: pointer;
}
.dy-pf-video-options button[aria-pressed="true"] {
  background: #164e63;
  border-color: #67e8f9;
  color: #ecfeff;
}
.dy-pf-video-options-help {
  margin-top: 7px;
  color: #94a3b8;
  font-size: 11.5px;
  line-height: 1.45;
}
.dy-pf-video-options button:focus,
.dy-pf-lite #dy-profile-modal-overlay button:focus,
.dy-pf-lite #dy-profile-modal-overlay a:focus {
  outline: 3px solid #fde047;
  outline-offset: 2px;
}
.pf-frame-none {
  background: linear-gradient(135deg, #475569, #334155);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.pf-frame-sakura {
  background: linear-gradient(135deg, #fbcfe8, #f472b6, #fda4af);
  box-shadow: 0 0 14px rgba(244, 114, 182, 0.65);
}
.pf-frame-gold {
  background: linear-gradient(135deg, #fef08a, #f59e0b, #b45309, #fde047);
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.65);
}
.pf-frame-frost {
  background: linear-gradient(135deg, #e0f2fe, #38bdf8, #0284c7, #7dd3fc);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.65);
}
.pf-frame-anim-rainbow {
  background: linear-gradient(120deg, #ff5f6d, #ffc371, #4ade80, #38bdf8, #a855f7, #ec4899, #ff5f6d);
  background-size: 300% 300%;
  animation: pfFrameSpin 3.6s linear infinite;
  box-shadow: 0 0 18px rgba(236, 72, 153, 0.72);
}
.pf-frame-anim-dragon {
  background: linear-gradient(135deg, #7f1d1d, #ef4444, #f97316, #fde047, #dc2626);
  background-size: 260% 260%;
  animation: pfFrameSpin 3s ease infinite, pfFrameGlowPulse 2.2s ease-in-out infinite;
}
.pf-frame-anim-cyber {
  background: linear-gradient(135deg, #0ea5e9, #22d3ee, #6366f1, #c084fc, #22d3ee);
  background-size: 280% 280%;
  animation: pfFrameSpin 3.2s linear infinite, pfFrameCyber 2.2s ease-in-out infinite;
}
.pf-frame-anim-sakura {
  background: linear-gradient(135deg, #fff1f2, #fda4af, #f472b6, #e879f9, #fbcfe8);
  background-size: 280% 280%;
  animation: pfFrameSpin 3.4s ease infinite, pfFrameSakura 2.3s ease-in-out infinite;
}

.chat-author-avatar.pf-frame-sakura { box-shadow: 0 0 0 2px #f472b6, 0 0 8px rgba(244, 114, 182, 0.7); }
.chat-author-avatar.pf-frame-gold { box-shadow: 0 0 0 2px #fbbf24, 0 0 8px rgba(251, 191, 36, 0.7); }
.chat-author-avatar.pf-frame-frost { box-shadow: 0 0 0 2px #38bdf8, 0 0 8px rgba(56, 189, 248, 0.7); }
.chat-author-avatar.pf-frame-anim-rainbow { box-shadow: 0 0 0 2px #ec4899, 0 0 10px rgba(168, 85, 247, 0.85); }
.chat-author-avatar.pf-frame-anim-dragon { box-shadow: 0 0 0 2px #f97316, 0 0 10px rgba(239, 68, 68, 0.85); }
.chat-author-avatar.pf-frame-anim-cyber { box-shadow: 0 0 0 2px #22d3ee, 0 0 10px rgba(34, 211, 238, 0.85); }
.chat-author-avatar.pf-frame-anim-sakura { box-shadow: 0 0 0 2px #fda4af, 0 0 10px rgba(244, 114, 182, 0.85); }

#dy-profile-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  background: rgba(5, 8, 18, 0.84);
  backdrop-filter: blur(7px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #f1f5f9;
  touch-action: pan-y;
  box-sizing: border-box;
}
#dy-profile-modal-overlay.open {
  display: flex;
}
/* Main.css disables touch gestures on every element, including modal children. */
#dy-profile-modal-overlay * {
  touch-action: pan-y;
}
.dy-pf-modal {
  position: relative;
  width: 1180px;
  max-width: 96vw;
  max-height: 92vh;
  max-height: 92dvh;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior: contain;
  box-sizing: border-box;
  min-height: 0;
  border-radius: 14px;
  background: #101522;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.82);
}
.dy-pf-close {
  position: sticky;
  float: right;
  margin: 12px 12px -56px 0;
  top: 12px;
  right: 12px;
  z-index: 20;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s, transform 0.15s;
}
.dy-pf-close:hover {
  background: rgba(239, 68, 68, 0.9);
  transform: scale(1.06);
}

.dy-pf-steam-canvas {
  position: relative;
  padding: 36px 56px 40px;
  background-size: cover;
  background-position: center;
  min-height: 540px;
}
.dy-pf-steam-canvas::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 12%, rgba(10, 14, 24, 0.08), rgba(8, 11, 20, 0.34));
  pointer-events: none;
}
.dy-pf-steam-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  background: rgba(12, 16, 28, 0.68);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.52);
}
.dy-pf-steam-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(15, 23, 42, 0.28));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}
.dy-pf-steam-head-left {
  display: flex;
  gap: 14px;
  align-items: center;
  flex: 1;
  min-width: 220px;
}
.dy-pf-steam-head-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  min-width: 185px;
}
.dy-pf-level-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #e2e8f0;
}
.dy-pf-level-circle {
  min-width: 36px;
  height: 36px;
  padding: 0 7px;
  border-radius: 999px;
  border: 2.5px solid #f43f5e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.35);
}
.dy-pf-level-circle.tier-gold { border-color: #fbbf24; box-shadow: 0 0 12px rgba(251, 191, 36, 0.45); }
.dy-pf-level-circle.tier-violet { border-color: #a855f7; box-shadow: 0 0 12px rgba(168, 85, 247, 0.45); }
.dy-pf-level-circle.tier-cyan { border-color: #38bdf8; box-shadow: 0 0 12px rgba(56, 189, 248, 0.45); }

.dy-pf-featured-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(10, 14, 24, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 185px;
}
.dy-pf-featured-icon {
  font-size: 22px;
  line-height: 1;
}
.dy-pf-featured-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #f8fafc;
}
.dy-pf-featured-sub {
  font-size: 11px;
  color: #94a3b8;
}

.dy-pf-steam-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(210px, 1fr);
  gap: 12px;
  padding: 14px 16px 18px;
}
@media (max-width: 740px) {
  .dy-pf-steam-canvas {
    padding: 14px 10px 18px;
  }
  .dy-pf-steam-shell {
    max-width: 100%;
  }
  .dy-pf-steam-grid {
    grid-template-columns: 1fr;
  }
  .dy-pf-steam-head-right {
    align-items: flex-start;
  }
}
@media (max-width: 740px), (max-height: 480px) {
  #dy-profile-modal-overlay {
    padding: 6px;
  }
  #dy-profile-modal-overlay .dy-pf-steam-canvas {
    padding: 58px 8px 14px;
    min-height: 0;
  }
  .dy-pf-close {
    top: 6px;
    right: 6px;
    margin: 6px 6px -50px 0;
  }
}
.dy-pf-steam-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.dy-pf-steam-panel {
  background: rgba(10, 14, 24, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  overflow: hidden;
}
.dy-pf-steam-panel-head {
  padding: 8px 12px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.14), rgba(168, 85, 247, 0.08));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.dy-pf-steam-panel-head span.sub {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
}
.dy-pf-steam-panel-body {
  padding: 11px 12px;
}

.dy-pf-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.dy-pf-name {
  font-size: 24px;
  font-weight: 900;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}
.dy-pf-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
  font-size: 12.5px;
  color: #cbd5e1;
}
.dy-pf-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-weight: 700;
  font-size: 11.5px;
  color: #e2e8f0;
}
.dy-pf-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}
.dy-pf-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.2px;
}
.dy-pf-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.dy-pf-btn {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  padding: 7px 13px;
  font-size: 12.5px;
  font-weight: 800;
  color: #fff;
  background: rgba(51, 65, 85, 0.72);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.14s, background 0.14s, filter 0.14s;
}
.dy-pf-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.12);
}
.dy-pf-btn-like {
  background: linear-gradient(135deg, #e11d48, #f43f5e);
  border-color: rgba(255, 255, 255, 0.24);
}
.dy-pf-btn-like.liked {
  opacity: 0.68;
  cursor: default;
}
.dy-pf-btn-pm {
  background: linear-gradient(135deg, #2563eb, #0284c7);
}
.dy-pf-btn-edit {
  background: rgba(100, 116, 139, 0.45);
  border-color: rgba(255, 255, 255, 0.24);
}

.dy-pf-bio-box {
  font-size: 13.5px;
  line-height: 1.62;
  color: #e2e8f0;
  white-space: pre-wrap;
  word-break: break-word;
}
.dy-pf-socials {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.dy-pf-social-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 8px 11px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 800;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  cursor: pointer;
  text-decoration: none;
  background: rgba(30, 41, 59, 0.9);
  transition: transform 0.14s, filter 0.14s;
}
.dy-pf-social-btn:hover {
  transform: translateX(2px);
  filter: brightness(1.12);
}
.dy-pf-social-btn[data-p="tiktok"] { background: linear-gradient(135deg, #111827, #be185d); }
.dy-pf-social-btn[data-p="facebook"] { background: linear-gradient(135deg, #1e3a8a, #2563eb); }
.dy-pf-social-btn[data-p="youtube"] { background: linear-gradient(135deg, #991b1b, #ef4444); }
.dy-pf-social-btn[data-p="instagram"] { background: linear-gradient(135deg, #7e22ce, #ea580c); }
.dy-pf-social-btn[data-p="discord"] { background: linear-gradient(135deg, #4338ca, #6366f1); }

.dy-pf-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.dy-pf-stat-card {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 9px 11px;
}
.dy-pf-stat-label {
  font-size: 10.5px;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
}
.dy-pf-stat-val {
  font-size: 15.5px;
  font-weight: 900;
  color: #fff;
  margin-top: 2px;
}
.dy-pf-stat-sub {
  font-size: 11px;
  color: #fbbf24;
  margin-top: 2px;
}
.dy-pf-side-stat-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dy-pf-side-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #cbd5e1;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.dy-pf-side-stat-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.dy-pf-side-stat-row strong {
  color: #f8fafc;
  font-size: 14px;
  font-weight: 900;
}

.dy-pf-trophies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.dy-pf-trophy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 800;
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.42);
  color: #fde68a;
}
.dy-pf-trophy.epic {
  background: rgba(168, 85, 247, 0.16);
  border-color: rgba(192, 132, 252, 0.48);
  color: #e9d5ff;
}
.dy-pf-trophy.rare {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.44);
  color: #bae6fd;
}

.dy-pf-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
}
.dy-pf-item-slot,
.dy-pf-char-slot {
  position: relative;
  border-radius: 9px;
  padding: 8px 6px;
  background: rgba(15, 23, 42, 0.86);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.dy-pf-item-slot[data-grade="G"] {
  border-color: #f59e0b;
  box-shadow: inset 0 0 12px rgba(245, 158, 11, 0.24);
}
.dy-pf-item-slot[data-grade="S"] { border-color: #a855f7; }
.dy-pf-item-slot[data-grade="A"] { border-color: #38bdf8; }
.dy-pf-item-img,
.dy-pf-char-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.dy-pf-slot-tag {
  font-size: 10.5px;
  font-weight: 800;
  color: #ffd54a;
}
.dy-pf-slot-sub {
  font-size: 10px;
  color: #cbd5e1;
}

.pf-mini-card {
  position: relative;
  width: 100%;
  max-width: 340px;
  border-radius: 10px;
  overflow: hidden;
  background: #141926;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.78);
  color: #f8fafc;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}
.pf-mini-top {
  position: relative;
  padding: 14px 14px 12px;
  background-size: cover;
  background-position: center;
}
.pf-mini-top::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 24, 0.24), rgba(14, 18, 30, 0.82));
  pointer-events: none;
}
.pf-mini-top-inner {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 12px;
  align-items: center;
}
.pf-mini-bottom {
  position: relative;
  padding: 12px 14px 14px;
  background: rgba(16, 20, 32, 0.92);
  display: flex;
  flex-direction: column;
  gap: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pf-steam-edit-layout {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
@media (max-width: 820px) {
  .pf-steam-edit-layout {
    grid-template-columns: 1fr;
  }
}
.pf-steam-sidebar {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(11, 16, 30, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
}
.pf-steam-nav-btn {
  width: 100%;
  text-align: left;
  padding: 10px 13px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #cbd5e1;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 9px;
  transition: background 0.15s, color 0.15s;
}
.pf-steam-nav-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}
.pf-steam-nav-btn.active {
  background: rgba(100, 116, 139, 0.34);
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.pf-steam-nav-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 6px 0;
}
.pf-steam-shop-cta {
  margin-top: 4px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1.5px solid #38bdf8;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.22), rgba(59, 130, 246, 0.18));
  color: #e0f2fe;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  transition: transform 0.14s, background 0.14s;
}
.pf-steam-shop-cta:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.38), rgba(59, 130, 246, 0.32));
}
.pf-steam-panel {
  padding: 18px 20px;
  border-radius: 12px;
  background: rgba(11, 16, 30, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pf-steam-panel-title {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  margin: 0;
}
.pf-steam-panel-sub {
  font-size: 13px;
  color: #94a3b8;
  margin: 3px 0 0;
}
.pf-bg-mask-stage {
  position: relative;
  height: 186px;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
}
.pf-bg-mask-wire {
  width: 56%;
  height: 100%;
  background: rgba(16, 20, 32, 0.84);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pf-avatar-sizes-row {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}
.pf-avatar-size-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #94a3b8;
  font-weight: 700;
}

.pf-color-studio {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pf-color-preview-bar {
  padding: 14px 18px;
  border-radius: 10px;
  background: rgba(7, 11, 22, 0.88);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.pf-swatch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pf-color-swatch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  background: rgba(15, 23, 42, 0.82);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.13s, border-color 0.13s;
}
.pf-color-swatch:hover {
  transform: translateY(-1px);
  border-color: #ffd54a;
}
.pf-color-swatch-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.pf-color-picker-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.88);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  color: #f8fafc;
  font-size: 13px;
  font-weight: 800;
}
.pf-color-picker-pill input[type="color"] {
  width: 34px;
  height: 28px;
  padding: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}
.pf-effect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 9px;
}
.pf-effect-card {
  position: relative;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 23, 42, 0.82);
  color: #e2e8f0;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.15s, background 0.15s;
}
.pf-effect-card:hover:not(:disabled) {
  border-color: rgba(255, 213, 74, 0.65);
}
.pf-effect-card.active {
  border-color: #ffd54a;
  background: rgba(251, 191, 36, 0.14);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.25);
}
.pf-effect-card:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

.pf-ac-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.pf-ac-card {
  border-radius: 12px;
  padding: 14px;
  background: rgba(15, 23, 42, 0.72);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pf-bg-tile {
  position: relative;
  border-radius: 11px;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  background: #0f172a;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s, transform 0.15s;
}
.pf-bg-tile:hover {
  border-color: rgba(255, 213, 74, 0.65);
  transform: translateY(-2px);
}
.pf-bg-tile.active {
  border-color: #ffd54a;
  box-shadow: 0 0 14px rgba(255, 213, 74, 0.42);
}
.pf-bg-preview {
  height: 90px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pf-bg-info {
  padding: 10px 11px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.dy-sort-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
}
.dy-sort-btn {
  width: auto;
  min-height: 36px;
  padding: 7px 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: #16305f;
  color: #e2e8f0;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.dy-sort-btn:hover {
  border-color: #ffd54a;
}
.dy-sort-btn.active {
  background: #ffd54a;
  color: #3a2200;
  border-color: #ffd54a;
}
.dy-sort-btn:focus-visible {
  outline: 2px solid #7dd3fc;
  outline-offset: 3px;
}
.pf-pt-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #7dd3fc;
}

.pf-search-card {
  position: relative;
  border-radius: 11px;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
  background: #10162d;
}
.pf-search-card:hover {
  transform: translateY(-2px);
  border-color: #ffd54a;
}
.pf-search-card-bg {
  padding: 15px 14px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.pf-search-card-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 28, 0.42), rgba(10, 14, 28, 0.88));
}
.pf-search-card-inner {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 14px;
  align-items: center;
}
.pf-chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0 16px;
}
.pf-chip {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  background: rgba(15, 23, 42, 0.72);
  color: #e2e8f0;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.14s, color 0.14s;
}
.pf-chip.active {
  background: #ffd54a;
  color: #3a2200;
  border-color: #ffd54a;
}
.pf-pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
  max-height: 250px;
  overflow-y: auto;
  padding: 4px;
}
.pf-pick-slot {
  border-radius: 10px;
  padding: 6px;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 23, 42, 0.82);
  text-align: center;
  cursor: pointer;
  font-size: 11px;
  color: #e2e8f0;
}
.pf-pick-slot.selected {
  border-color: #4ade80;
  background: rgba(34, 197, 94, 0.18);
}

#dy-pf-dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483500;
  background: rgba(4, 8, 22, 0.8);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  touch-action: pan-y;
  box-sizing: border-box;
}
#dy-pf-dialog-overlay.open {
  display: flex;
}
#dy-pf-dialog-overlay * {
  touch-action: pan-y;
}
.dy-pf-dialog-card {
  width: 440px;
  max-width: 94vw;
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  box-sizing: border-box;
  border-radius: 14px;
  background: #16305f;
  border: 3px solid #0b1c44;
  box-shadow: 0 0 0 3px #3f6fb8, 0 20px 50px rgba(0, 0, 0, 0.78);
  padding: 20px 22px;
  color: #f8fafc;
}
.dy-pf-dialog-title {
  font-size: 19px;
  font-weight: 900;
  color: #ffe27a;
  text-shadow: 0 2px 0 #0b1c44;
  margin: 0 0 8px;
}
.dy-pf-dialog-msg {
  font-size: 14px;
  line-height: 1.55;
  color: #dbeafe;
  white-space: pre-wrap;
  margin: 0 0 14px;
}
.dy-pf-dialog-cost {
  padding: 9px 12px;
  border-radius: 9px;
  background: #10295a;
  border: 2px solid #0b1c44;
  color: #ffe27a;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 14px;
}
.dy-pf-dialog-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 9px;
  border: 2px solid #0b1c44;
  background: #fff;
  color: #0b1c44;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
  outline: none;
}
.dy-pf-dialog-input:focus {
  border-color: #ffd54a;
}
.dy-pf-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.dy-pf-dialog-btn {
  padding: 9px 16px;
  border-radius: 9px;
  border: 2px solid #0b1c44;
  box-shadow: 0 3px 0 #0b1c44;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  color: #fff;
  background: #1f4080;
}
.dy-pf-dialog-btn.primary {
  background: linear-gradient(180deg, #ffe066, #f5b000);
  color: #3a2200;
  border-color: #0b1c44;
}
.dy-pf-dialog-btn.danger {
  background: linear-gradient(180deg, #f87171, #dc2626);
  color: #fff;
  border-color: #0b1c44;
}
#dy-pf-toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2147483600;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  max-width: 340px;
}
.dy-pf-toast {
  pointer-events: auto;
  padding: 11px 15px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.95);
  border: 1.5px solid rgba(74, 222, 128, 0.55);
  color: #f8fafc;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65);
  animation: pfToastIn 0.2s ease;
}
.dy-pf-toast.error {
  border-color: rgba(248, 113, 113, 0.72);
  color: #fecaca;
}
.dy-pf-toast.info {
  border-color: rgba(56, 189, 248, 0.65);
  color: #e0f2fe;
}

/* Keep static colours/frames, but avoid constant repaint and blur on TV GPUs. */
.dy-pf-lite [class*="pf-bg-anim-"],
.dy-pf-lite [class*="pf-frame-anim-"],
.dy-pf-lite [class*="pf-name-"] {
  animation: none !important;
  filter: none !important;
}
.dy-pf-lite #dy-profile-modal-overlay,
.dy-pf-lite #dy-pf-dialog-overlay,
.dy-pf-lite .dy-pf-steam-shell {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.dy-pf-lite .pf-frame-wrap,
.dy-pf-lite .pf-mini-card,
.dy-pf-lite .dy-pf-modal,
.dy-pf-lite .dy-pf-steam-shell {
  box-shadow: none !important;
}
.dy-pf-lite .sp-cosmetic-card,
.dy-pf-lite .pf-bg-tile {
  transition: none !important;
}
.dy-pf-lite .sp-cosmetic-card:hover,
.dy-pf-lite .pf-bg-tile:hover {
  transform: none !important;
}
.dy-pf-lite img[data-pf-img-src]:not([src]) {
  visibility: hidden;
}
