/* PRODUCT-2 retention UI — additive panels, toasts, profile sections */

.retention-panel-hint {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  color: rgba(226, 232, 240, 0.72);
}

.retention-toast-host {
  position: fixed;
  top: 4.5rem;
  right: 1rem;
  z-index: 12000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
  max-width: min(22rem, 90vw);
}

.retention-toast {
  padding: 0.65rem 0.9rem;
  border-radius: 0.65rem;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #f8fafc;
  font-size: 0.85rem;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.retention-toast--visible {
  opacity: 1;
  transform: translateY(0);
}

.retention-toast--reward {
  border-color: rgba(52, 211, 153, 0.55);
}

.retention-toast--reminder {
  border-color: rgba(251, 191, 36, 0.55);
}

.retention-toast--gift_teaser {
  border-color: rgba(192, 132, 252, 0.55);
}

.retention-panel-card {
  max-width: 32rem;
}

.retention-reward-list,
.retention-activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-height: min(50vh, 28rem);
  overflow: auto;
}

.retention-reward-row,
.retention-activity-row {
  padding: 0.65rem 0.75rem;
  border-radius: 0.55rem;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.retention-reward-main {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
}

.retention-reward-amount {
  font-weight: 700;
  color: #6ee7b7;
}

.retention-reward-row--debit .retention-reward-amount {
  color: #fca5a5;
}

.retention-reward-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: rgba(226, 232, 240, 0.65);
}

.retention-empty {
  padding: 1rem;
  text-align: center;
  color: rgba(226, 232, 240, 0.65);
}

.retention-activity-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.retention-activity-tab {
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: transparent;
  color: #e2e8f0;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  cursor: pointer;
}

.retention-activity-tab.is-active {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.55);
}

.retention-activity-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
}

.retention-activity-copy p {
  margin: 0.15rem 0;
  font-size: 0.85rem;
  color: rgba(226, 232, 240, 0.78);
}

.retention-activity-copy time {
  font-size: 0.72rem;
  color: rgba(148, 163, 184, 0.85);
}

.retention-profile-companion {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  padding: 0.85rem;
  margin-bottom: 0.85rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.85), rgba(15, 23, 42, 0.65));
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.retention-profile-view {
  display: grid;
  gap: 0.15rem;
}

.retention-profile-view .social-profile-card {
  margin-bottom: 0.65rem;
}

.retention-profile-hub-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.retention-profile-inline-nav {
  padding: 0;
  border: 0;
  background: none;
  color: #7dd3fc;
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}

.retention-profile-inline-action {
  margin-top: 0.35rem;
}

.retention-profile-identity-meta {
  display: grid;
  gap: 0.25rem;
}

.retention-profile-display-name {
  font-size: 0.95rem;
  color: #e2e8f0;
}

.retention-profile-subtitle {
  font-size: 0.78rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.retention-profile-bio {
  margin: 0.35rem 0 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #cbd5e1;
}

.retention-profile-bio--empty {
  color: #64748b;
  font-style: italic;
}

.retention-profile-activity-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 0.15rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.55);
}

.retention-profile-activity-badge--veteran {
  border-color: rgba(251, 191, 36, 0.45);
  color: #fde68a;
  background: rgba(251, 191, 36, 0.12);
}

.retention-profile-activity-badge--regular {
  border-color: rgba(74, 222, 128, 0.35);
  color: #bbf7d0;
  background: rgba(74, 222, 128, 0.1);
}

.retention-profile-companion-visual {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.retention-profile-companion-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.retention-profile-companion-placeholder {
  font-size: 2rem;
}

.retention-profile-companion-rarity {
  display: block;
  font-size: 0.78rem;
  color: #c4b5fd;
  margin-top: 0.1rem;
}

.retention-profile-companion-rarity--unknown {
  color: #94a3b8;
}

.retention-profile-companion-room {
  display: block;
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 0.15rem;
}

.retention-profile-companion-idle {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: #64748b;
}

.retention-profile-companion-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(148, 163, 184, 0.9);
}

.retention-profile-companion-name {
  display: block;
  font-size: 1.15rem;
}

.retention-profile-section-title {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
}

.retention-profile-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.retention-profile-stat-grid div,
.retention-profile-stat {
  padding: 0.55rem;
  border-radius: 0.5rem;
  background: rgba(15, 23, 42, 0.45);
  font-size: 0.8rem;
}

.retention-profile-stat-grid span,
.retention-profile-stat span {
  color: #94a3b8;
}

.retention-profile-stat-grid strong,
.retention-profile-stat strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 1rem;
  color: #f8fafc;
}

.retention-profile-achievements,
.retention-profile-activity-hint,
.retention-profile-activity-hub {
  margin-bottom: 0.85rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.65rem;
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.retention-profile-achievement-count {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
}

.retention-profile-activity-summary {
  margin: 0;
  display: grid;
  gap: 0.35rem;
}

.retention-profile-activity-detail {
  font-size: 0.8rem;
  color: #94a3b8;
}

.retention-profile-friend-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.35rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.retention-profile-balance {
  margin-bottom: 0.85rem;
}

.retention-profile-balance-value {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.retention-profile-games,
.retention-profile-collections {
  margin-bottom: 0.85rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.65rem;
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.retention-profile-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0.45rem;
}

.retention-profile-game-chip {
  display: grid;
  gap: 0.15rem;
  padding: 0.5rem 0.55rem;
  border-radius: 0.5rem;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.retention-profile-game-chip-label {
  font-size: 0.72rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.retention-profile-game-chip-count {
  font-size: 1rem;
  color: #f8fafc;
}

.retention-profile-collection-progress {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  color: #cbd5e1;
}

.retention-profile-collection-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.25rem;
}

.retention-profile-collection-item {
  font-size: 0.84rem;
  color: #e2e8f0;
  padding: 0.3rem 0.45rem;
  border-radius: 0.4rem;
  background: rgba(15, 23, 42, 0.45);
}

.retention-profile-collection-item--more {
  color: #94a3b8;
  font-style: italic;
}

.retention-profile-activity-stat {
  font-size: 0.82rem;
  color: #cbd5e1;
}

.retention-profile-activity-stat strong {
  color: #fde68a;
}

.retention-filter input {
  width: 100%;
  margin-top: 0.25rem;
}

/* Player Progression layer — profile + timeline */
.progress-profile {
  margin-bottom: 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.progress-profile-summary {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  color: #cbd5e1;
}

.progress-profile-bars {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
}

.progress-profile-bar {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
}

.progress-profile-bar-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.15);
  overflow: hidden;
}

.progress-profile-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #38bdf8, #6366f1);
  transition: width 0.35s ease;
}

.progress-profile-bar-fill--week {
  background: linear-gradient(90deg, #a78bfa, #ec4899);
}

.progress-profile-lifetime,
.progress-profile-milestone {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: #94a3b8;
}

.progress-profile-milestone--done {
  color: #86efac;
}

.progress-timeline-snippet {
  margin-bottom: 0.85rem;
}

.progress-timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.progress-timeline-row {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  gap: 0.35rem;
  align-items: baseline;
  font-size: 0.8rem;
  color: #cbd5e1;
}

.progress-timeline-time {
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

.progress-timeline-source {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Daily return summary — lobby + social profile */
.retention-daily-return-host {
  margin-bottom: 0.85rem;
}

.retention-daily-return-host--profile {
  margin: 0 0 0.75rem;
}

.retention-daily-return {
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.78));
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.retention-daily-return-head {
  margin-bottom: 0.65rem;
}

.retention-daily-return-title {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
  color: #f8fafc;
}

.retention-daily-return-lead {
  margin: 0;
  font-size: 0.78rem;
  color: #94a3b8;
}

.retention-daily-return-body {
  display: grid;
  gap: 0.55rem;
}

.retention-daily-section {
  padding: 0.55rem 0.65rem;
  border-radius: 0.55rem;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.retention-daily-section-title {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
}

.retention-daily-summary-lead,
.retention-daily-tomorrow-copy,
.retention-daily-reminder-copy {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #cbd5e1;
}

.retention-daily-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.45rem;
}

.retention-daily-stat {
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #e0f2fe;
}

.retention-daily-stat strong {
  color: #7dd3fc;
}

.retention-daily-progress-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem;
  align-items: center;
}

.retention-daily-progress-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.15);
  overflow: hidden;
}

.retention-daily-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #38bdf8, #6366f1);
  transition: width 0.35s ease;
}

.retention-daily-progress-fill--done {
  background: linear-gradient(90deg, #34d399, #10b981);
}

.retention-daily-progress-label {
  font-size: 0.82rem;
  color: #e2e8f0;
  white-space: nowrap;
}

.retention-daily-progress-done {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: #86efac;
}

.retention-daily-reminder-list {
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.25rem;
}

.retention-daily-reminder-item {
  font-size: 0.8rem;
  color: #cbd5e1;
  padding: 0.25rem 0.4rem;
  border-radius: 0.35rem;
  background: rgba(15, 23, 42, 0.35);
}

.retention-daily-reminder-item--claimable {
  color: #fde68a;
  border-left: 2px solid rgba(251, 191, 36, 0.55);
}

.retention-daily-reminder-action {
  margin-top: 0.45rem;
}

.retention-daily-objective-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.retention-daily-objective {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 0.5rem;
  align-items: center;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.retention-daily-objective--next {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(14, 116, 144, 0.18);
}

.retention-daily-objective--done {
  opacity: 0.72;
}

.retention-daily-objective-status {
  font-size: 0.9rem;
  color: #94a3b8;
}

.retention-daily-objective--done .retention-daily-objective-status {
  color: #4ade80;
}

.retention-daily-objective-label {
  font-size: 0.86rem;
  color: #e2e8f0;
}

.retention-daily-objective-hint {
  grid-column: 2;
  font-size: 0.78rem;
  color: #94a3b8;
}

.retention-daily-objective-action {
  grid-column: 2;
  justify-self: start;
  margin-top: 0.15rem;
}

.retention-daily-section--complete {
  border-left: 3px solid rgba(74, 222, 128, 0.55);
}

.retention-toast-action {
  margin-left: 0.5rem;
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
}

/* Player Identity layer — story, not stats */
.identity-profile {
  margin-bottom: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(49, 46, 129, 0.35), rgba(15, 23, 42, 0.85));
  border: 1px solid rgba(167, 139, 250, 0.2);
}

.identity-story-line {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
  color: #e9d5ff;
}

.identity-summary {
  margin: 0 0 0.65rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #cbd5e1;
}

.identity-highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}

.identity-highlight {
  padding: 0.45rem 0.55rem;
  border-radius: 0.5rem;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.identity-highlight-label {
  display: block;
  font-size: 0.72rem;
  color: #94a3b8;
  margin-bottom: 0.15rem;
}

.identity-highlight-value {
  font-size: 0.88rem;
  color: #f1f5f9;
}

.identity-milestones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.identity-milestone-chip {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(167, 139, 250, 0.15);
  border: 1px solid rgba(167, 139, 250, 0.35);
  color: #ddd6fe;
}

.identity-timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.3rem;
}

.identity-timeline-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: #94a3b8;
}

.liveops-identity-stats {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
  gap: 0.35rem;
}

.liveops-identity-stats li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.78rem;
}

.liveops-identity-stats strong {
  color: #e2e8f0;
}

/* Live-ops seasonal events (player shell) */
.liveops-season-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.5rem 0 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(251, 191, 36, 0.45);
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.12), rgba(15, 23, 42, 0.55));
  color: #fef3c7;
}

.liveops-season-banner__emoji {
  font-size: 1.35rem;
  line-height: 1;
}

.liveops-season-banner__title {
  display: block;
  font-size: 0.92rem;
}

.liveops-season-banner__subtitle {
  display: block;
  font-size: 0.78rem;
  color: rgba(254, 243, 199, 0.82);
}

.liveops-global-announcement {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.85rem;
  background: rgba(30, 64, 175, 0.92);
  color: #eff6ff;
  border-bottom: 1px solid rgba(147, 197, 253, 0.35);
  z-index: 11000;
}

.liveops-global-announcement__dismiss {
  border: none;
  background: transparent;
  color: inherit;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
}

body.liveops-decorated[data-liveops-decoration='winter'] {
  background-image: radial-gradient(circle at 10% 10%, rgba(191, 219, 254, 0.08), transparent 40%),
    radial-gradient(circle at 90% 0%, rgba(147, 197, 253, 0.06), transparent 35%);
}

body.liveops-decorated[data-liveops-decoration='summer'] {
  background-image: radial-gradient(circle at 15% 0%, rgba(251, 191, 36, 0.08), transparent 42%),
    radial-gradient(circle at 85% 5%, rgba(248, 113, 113, 0.05), transparent 38%);
}

body.liveops-decorated[data-liveops-decoration='holiday'] {
  background-image: linear-gradient(180deg, rgba(220, 38, 38, 0.04), transparent 120px),
    linear-gradient(0deg, rgba(22, 163, 74, 0.04), transparent 120px);
}

.liveops-reward-multiplier-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 0.35rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fef3c7;
  background: rgba(217, 119, 6, 0.35);
  border: 1px solid rgba(251, 191, 36, 0.55);
}

.liveops-limited-shop-callout {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.65rem;
  border: 1px dashed rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.08);
}

.liveops-limited-shop-callout__title {
  margin: 0 0 0.25rem;
  font-size: 0.88rem;
}

.liveops-limited-shop-callout__hint {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(226, 232, 240, 0.78);
}

/* Live-ops admin events panel */
.liveops-badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  background: rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
}

.liveops-badge--active {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
}

.liveops-badge--scheduled {
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
}

.liveops-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.liveops-form-span2 {
  grid-column: span 2;
}

.liveops-form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.liveops-event-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
}

.liveops-event-form input,
.liveops-event-form select,
.liveops-event-form textarea {
  width: 100%;
}

.liveops-form-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.liveops-form-hint,
.liveops-form-status {
  font-size: 0.78rem;
  color: rgba(226, 232, 240, 0.75);
}

.liveops-panel-sub {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: rgba(226, 232, 240, 0.72);
}

.liveops-empty {
  color: rgba(226, 232, 240, 0.72);
}

/* Companion relationship profile section */
.retention-profile-relationship {
  margin: 0 0 1rem;
  padding: 0.85rem 0.9rem;
  border-radius: 0.65rem;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.retention-relationship-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0.5rem 0 0.65rem;
}

.retention-relationship-metric {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.55rem 0.6rem;
  border-radius: 0.5rem;
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.retention-relationship-metric-label {
  font-size: 0.72rem;
  color: rgba(226, 232, 240, 0.65);
}

.retention-relationship-metric-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f8fafc;
}

.retention-relationship-tier-badge {
  font-size: 0.68rem;
  color: rgba(167, 243, 208, 0.9);
}

.retention-relationship-favorite,
.retention-relationship-mood {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: rgba(226, 232, 240, 0.85);
}

/* Collection system — profile section */
.collection-profile {
  margin-bottom: 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.65rem;
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.collection-profile-summary {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  color: #cbd5e1;
}

.collection-profile-overall {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.55rem;
}

.collection-profile-overall-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.15);
  overflow: hidden;
}

.collection-profile-overall-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #a855f7, #6366f1);
}

.collection-profile-overall-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.78rem;
  color: #94a3b8;
}

.collection-profile-overall-meta strong {
  font-size: 1rem;
  color: #f8fafc;
}

.collection-profile-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 0.65rem;
  font-size: 0.8rem;
  color: #94a3b8;
}

.collection-profile-stat strong {
  color: #fde68a;
}

.collection-profile-categories {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.collection-profile-category-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #cbd5e1;
  margin-bottom: 0.2rem;
}

.collection-profile-category-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  overflow: hidden;
}

.collection-profile-category-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
}

.collection-profile-category--complete .collection-profile-category-fill {
  background: linear-gradient(90deg, #34d399, #22c55e);
}

.collection-profile-subtitle {
  margin: 0.55rem 0 0.35rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
}

.collection-profile-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: 0.4rem;
}

.collection-profile-item {
  display: grid;
  gap: 0.25rem;
  padding: 0.45rem;
  border-radius: 0.5rem;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.15);
  font-size: 0.76rem;
}

.collection-profile-item--rare {
  border-color: rgba(251, 191, 36, 0.45);
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.12);
}

.collection-profile-item--locked {
  opacity: 0.72;
  filter: grayscale(0.35);
}

.collection-profile-item-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
}

.collection-profile-item-img {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
  border-radius: 0.35rem;
}

.collection-profile-item-emoji,
.collection-profile-item-fallback {
  font-size: 1.25rem;
}

.collection-profile-item-body strong {
  display: block;
  color: #f1f5f9;
  font-size: 0.78rem;
}

.collection-profile-item-hint {
  display: block;
  color: #94a3b8;
  font-size: 0.68rem;
  line-height: 1.25;
}

/* PROFILE IMMERSION PASS — place, not dashboard */
.retention-profile-place {
  gap: 0.75rem;
}

.retention-profile-hero {
  margin-bottom: 0.25rem;
  padding: 1rem 1.05rem;
  border-radius: 1rem;
  background: linear-gradient(160deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.78));
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.retention-profile-display-name--hero {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.2;
}

.retention-profile-nickname {
  font-size: 0.82rem;
  color: #94a3b8;
  font-weight: 500;
}

.retention-profile-section-title--place {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a5b4fc;
  margin-bottom: 0.55rem;
}

.retention-profile-section-title--quiet {
  font-size: 0.82rem;
  color: #94a3b8;
  font-weight: 500;
}

.retention-profile-section--secondary {
  opacity: 0.92;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.retention-profile-favorite-game {
  margin: -0.15rem 0 0.35rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  width: fit-content;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.retention-profile-favorite-game-line {
  margin: 0;
  font-size: 0.84rem;
  color: #bae6fd;
}

.retention-profile-favorite-game-line strong {
  color: #f0f9ff;
}

.retention-profile-memories {
  margin-bottom: 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.75rem;
  background: rgba(15, 23, 42, 0.42);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.retention-profile-memory-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.retention-profile-memory-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: #cbd5e1;
  padding: 0.4rem 0.45rem;
  border-radius: 0.45rem;
  background: rgba(15, 23, 42, 0.35);
}

.retention-profile-memory-time {
  color: #94a3b8;
  font-size: 0.75rem;
}

.retention-profile-activity-narrative {
  font-size: 0.86rem;
  line-height: 1.45;
  color: #cbd5e1;
}

.retention-profile-companion--spotlight {
  border-color: rgba(167, 139, 250, 0.28);
  background: linear-gradient(135deg, rgba(49, 46, 129, 0.28), rgba(15, 23, 42, 0.72));
}

.identity-profile--story {
  border-left: 3px solid rgba(167, 139, 250, 0.45);
}

.identity-profile-subtitle {
  margin: 0.55rem 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c4b5fd;
}

.identity-moment-list {
  list-style: none;
  margin: 0 0 0.55rem;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.identity-moment-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: #e9d5ff;
}

.identity-moment-time {
  color: #a78bfa;
  font-size: 0.72rem;
}

.identity-moment-body {
  display: block;
  color: #cbd5e1;
  font-size: 0.76rem;
}

.progress-profile--journey {
  border-left: 3px solid rgba(52, 211, 153, 0.35);
}

.progress-profile-streak {
  margin: 0 0 0.55rem;
  font-size: 0.84rem;
  color: #a7f3d0;
}

.collection-profile--curated {
  border-left: 3px solid rgba(251, 191, 36, 0.35);
}

.collection-profile-curate-line {
  margin: 0 0 0.55rem;
  font-size: 0.84rem;
  color: #cbd5e1;
}

.collection-profile-details {
  margin-top: 0.65rem;
}

.collection-profile-details-toggle {
  cursor: pointer;
  font-size: 0.78rem;
  color: #94a3b8;
  list-style: none;
}

.collection-profile-details-toggle::-webkit-details-marker {
  display: none;
}

.retention-profile-relationship--bond {
  border-left: 3px solid rgba(110, 231, 183, 0.35);
}

.retention-relationship-story {
  margin: 0 0 0.55rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #d1fae5;
}

.retention-relationship-metrics--compact {
  margin-top: 0.35rem;
}

.retention-relationship-memory {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: rgba(226, 232, 240, 0.78);
  font-style: italic;
}

.progress-timeline-snippet--quiet {
  opacity: 0.9;
}

