:root {
  --author-icon-size: 28px;
  --author-icon-size-equipped: 36px;
  --author-icon-size-shop: 52px;
  --author-icon-size-inventory: 60px;
}

.fan-profile-shell {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 16px 48px;
}

.fan-profile-shell__head {
  margin-bottom: 8px;
}

.fan-profile__hero {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  padding: 16px 18px 14px;
  background: linear-gradient(135deg, #111827 0%, #1f2937 52%, #7f1d1d 100%);
  color: #fff;
}

.fan-profile__hero--custom {
  background-size: cover;
  background-position: center;
}

.fan-profile__hero-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.fan-profile__hero-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  min-width: 140px;
}

.fan-profile__hero-activity {
  flex: 0 1 220px;
  min-width: 190px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
}

.fan-profile__hero-activity-title {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 700;
  opacity: 0.92;
}

.fan-profile__hero-activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.fan-profile__hero-activity-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.8rem;
}

.fan-profile__hero-activity-list li span {
  opacity: 0.82;
}

.fan-profile__hero-activity-list li strong {
  font-size: 0.86rem;
  font-weight: 700;
}

.fan-profile__hero-activity-list li.is-done strong {
  color: #fde68a;
}

.fan-profile__hero-equipped-line {
  margin: 10px 0 0;
  font-size: 0.76rem;
  line-height: 1.45;
  opacity: 0.9;
}

.fan-profile__hero-equipped-line span {
  opacity: 0.78;
}

.fan-profile__hero-activity-btn {
  width: 100%;
  margin-top: 12px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.fan-profile__hero-activity-btn:not(:disabled):hover {
  background: rgba(255, 255, 255, 0.18);
}

.fan-profile__hero-activity-btn:disabled {
  opacity: 0.72;
  cursor: default;
}

.fan-profile__identity {
  display: flex;
  gap: 16px;
  align-items: center;
  min-width: 0;
  flex: 1 1 280px;
}

.fan-profile__avatar-wrap {
  position: relative;
  flex: 0 0 auto;
}

.fan-profile__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.12);
  display: block;
}

.fan-profile__avatar--fallback {
  display: grid;
  place-items: center;
  font-size: 1.65rem;
  font-weight: 700;
}

.fan-profile__avatar-frame {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  pointer-events: none;
}

.fan-profile__meta {
  min-width: 0;
  flex: 1;
}

.fan-profile__name-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
}

.fan-profile__nickname {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.15;
}

.fan-profile__equipped-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}

.fan-profile__title-chip {
  display: inline-flex;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.82rem;
  font-weight: 600;
}

.fan-profile__title-chip--level {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.88);
}

.fan-profile__level {
  margin-top: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  opacity: 0.95;
}

.fan-profile__exp {
  margin-top: 10px;
  width: 100%;
  max-width: min(420px, 100%);
}

.fan-profile__exp-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.78rem;
  opacity: 0.9;
  margin-bottom: 6px;
}

.fan-profile__exp-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.fan-profile__exp-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  transition: width 0.25s ease;
}

.fan-profile__exp-hint {
  margin: 6px 0 0;
  font-size: 0.78rem;
  opacity: 0.88;
}

.fan-profile__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.fan-profile__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  font-size: 0.78rem;
  font-weight: 600;
}

.fan-profile__point-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

.fan-profile__attendance-btn:disabled {
  opacity: 0.72;
}

.fan-profile__tabs {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding-bottom: 2px;
  overflow-x: auto;
}

.fan-profile__tab {
  flex: 0 0 auto;
  min-width: 4.5rem;
  padding: 8px 16px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 999px;
  background: var(--surface-elevated, #fff);
  color: var(--text-mute, #6b7280);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.fan-profile__tab--active {
  border-color: var(--accent, #DC052D);
  color: var(--accent, #DC052D);
  background: rgba(220, 5, 45, 0.06);
}

.fan-profile__panel {
  margin-top: 16px;
}

.fan-profile__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.fan-profile__stats--bar {
  margin-bottom: 18px;
}

@media (min-width: 640px) {
  .fan-profile__stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.fan-profile__stat {
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--surface-elevated, #fff);
  border: 1px solid var(--border, #e5e7eb);
}

.fan-profile__stats--compact .fan-profile__stat {
  padding: 6px 10px;
}

.fan-profile__stat strong {
  display: block;
  font-size: 1.28rem;
  line-height: 1.1;
}

.fan-profile__stats--compact .fan-profile__stat strong {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text, #111827);
}

.fan-profile__stat span {
  display: block;
  margin-top: 2px;
  font-size: 0.72rem;
  color: var(--text-mute, #6b7280);
}

.fan-profile__stats--compact .fan-profile__stat span {
  margin-top: 1px;
  font-size: 0.68rem;
}

.fan-profile__overview-main {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.fan-profile__summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 768px) {
  .fan-profile__summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }
}

.fan-profile__summary-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 14px 14px 12px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  background: var(--surface-elevated, #fff);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.fan-profile__summary-card:hover,
.fan-profile__summary-card:focus-visible {
  border-color: rgba(220, 5, 45, 0.28);
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.06);
  transform: translateY(-1px);
}

.fan-profile__summary-card--static {
  cursor: default;
}

.fan-profile__summary-card--static:hover,
.fan-profile__summary-card--static:focus-visible {
  border-color: var(--border, #e5e7eb);
  box-shadow: none;
  transform: none;
}

.fan-profile__summary-card__value {
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text, #111827);
}

.fan-profile__summary-card__label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text, #374151);
}

.fan-profile__summary-card__hint {
  margin-top: 4px;
  font-size: 0.68rem;
  color: var(--accent, #DC052D);
  line-height: 1.3;
}

.fan-profile__summary-card--static .fan-profile__summary-card__hint {
  color: var(--text-mute, #9ca3af);
}

.fan-profile__recent-list {
  display: grid;
  gap: 8px;
}

.fan-profile__recent-item {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  background: var(--surface-elevated, #fff);
  text-decoration: none;
  color: inherit;
  text-align: left;
  transition: border-color 0.15s ease;
}

.fan-profile__recent-item--button {
  cursor: pointer;
}

.fan-profile__recent-item:hover,
.fan-profile__recent-item:focus-visible {
  border-color: rgba(220, 5, 45, 0.24);
}

.fan-profile__recent-item__label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-mute, #6b7280);
  margin-bottom: 4px;
}

.fan-profile__recent-item strong {
  display: block;
  font-size: 0.9rem;
  line-height: 1.35;
}

.fan-profile__recent-item__meta {
  display: block;
  margin-top: 4px;
  font-size: 0.74rem;
  color: var(--text-mute, #6b7280);
}

.fan-profile__subpage-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.fan-profile__back-link {
  flex: 0 0 auto;
  border: 0;
  background: none;
  padding: 0;
  color: var(--text-mute, #6b7280);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.fan-profile__back-link:hover {
  color: var(--accent, #DC052D);
}

.fan-profile__subpage-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.fan-profile__attendance-summary,
.fan-profile__points-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

@media (min-width: 640px) {
  .fan-profile__attendance-summary,
  .fan-profile__points-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.fan-profile__attendance-stat,
.fan-profile__points-stat {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border, #e5e7eb);
  background: var(--surface-soft, #f9fafb);
}

.fan-profile__attendance-stat strong,
.fan-profile__points-stat strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.2;
}

.fan-profile__attendance-stat span,
.fan-profile__points-stat span {
  display: block;
  margin-top: 2px;
  font-size: 0.72rem;
  color: var(--text-mute, #6b7280);
}

.fan-profile__section {
  margin-top: 20px;
}

.fan-profile__section:first-child {
  margin-top: 0;
}

.fan-profile__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.fan-profile__section-head .fan-profile__section-title {
  margin: 0;
}

.fan-profile__section-title {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 700;
}

.fan-profile__link-btn {
  border: 0;
  background: none;
  padding: 0;
  color: var(--accent, #DC052D);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.fan-profile__equipped-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 560px) {
  .fan-profile__equipped-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fan-profile__equipped-slot--placeholder {
    display: none;
  }
}

.fan-profile__equipped-slot {
  padding: 10px;
  border-radius: 10px;
  border: 1px dashed var(--border, #e5e7eb);
  background: var(--surface-soft, #f9fafb);
}

.fan-profile__equipped-slot--active {
  border-style: solid;
  border-color: var(--border, #e5e7eb);
  background: var(--surface-elevated, #fff);
}

.fan-profile__equipped-slot--placeholder {
  visibility: hidden;
  border: 0;
  background: transparent;
  min-height: 0;
  padding: 0;
}

.fan-profile__equipped-label {
  display: block;
  font-size: 0.74rem;
  color: var(--text-mute, #6b7280);
}

.fan-profile__equipped-label--badge {
  display: inline-flex;
  margin-bottom: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-soft, #f3f4f6);
  color: var(--text-mute, #6b7280);
  font-size: 0.68rem;
  font-weight: 700;
}

.fan-profile__equipped-slot--empty {
  border-style: dashed;
  border-color: rgba(107, 114, 128, 0.28);
  background: rgba(249, 250, 251, 0.7);
  opacity: 0.92;
}

.fan-profile__equipped-slot strong.is-empty {
  color: var(--text-mute, #6b7280);
  font-weight: 500;
}

.fan-profile__equipped-cta {
  display: inline-flex;
  margin-top: 6px;
  border: 0;
  background: none;
  padding: 0;
  color: var(--accent, #DC052D);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.fan-profile__equipped-cta:hover {
  text-decoration: underline;
}

.fan-profile__equipped-slot strong {
  display: block;
  margin-top: 6px;
  font-size: 0.88rem;
  line-height: 1.35;
}

.fan-profile__equipped-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-top: 6px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.fan-profile__equipped-icon {
  display: block;
  width: var(--author-icon-size-equipped);
  height: var(--author-icon-size-equipped);
  min-width: var(--author-icon-size-equipped);
  min-height: var(--author-icon-size-equipped);
  margin-top: 6px;
  object-fit: contain;
  aspect-ratio: 1;
}

.fan-profile__shop-grid--icons,
.fan-profile__inventory-grid.fan-profile__inventory-grid--icons {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.fan-profile__shop-card--icon,
.fan-profile__inventory-card--icon {
  align-items: center;
  text-align: center;
}

.fan-profile__shop-card__icon {
  display: block;
  width: var(--author-icon-size-shop);
  height: var(--author-icon-size-shop);
  min-width: var(--author-icon-size-shop);
  min-height: var(--author-icon-size-shop);
  margin: 0 auto 6px;
  object-fit: contain;
  aspect-ratio: 1;
}

.fan-profile__inventory-card__icon {
  display: block;
  width: var(--author-icon-size-inventory);
  height: var(--author-icon-size-inventory);
  min-width: var(--author-icon-size-inventory);
  min-height: var(--author-icon-size-inventory);
  margin: 0 auto 6px;
  object-fit: contain;
  aspect-ratio: 1;
}

.fan-profile__badge-collect {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 10px;
}

.fan-profile__badge-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
  padding: 12px 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--border, #e5e7eb);
  background: var(--surface-elevated, #fff);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.fan-profile__badge-tile:hover,
.fan-profile__badge-tile:focus-within {
  border-color: rgba(220, 5, 45, 0.22);
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.06);
}

.fan-profile__badge-tile--equipped {
  border-color: rgba(220, 5, 45, 0.28);
  background: rgba(220, 5, 45, 0.03);
}

.fan-profile__badge-tile__icon {
  font-size: 1.45rem;
  line-height: 1;
  margin-bottom: 2px;
}

.fan-profile__badge-tile__name {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
}

.fan-profile__badge-tile__desc {
  margin: 0;
  font-size: 0.66rem;
  color: var(--text-mute, #6b7280);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fan-profile__badge-tile__mark {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(220, 5, 45, 0.1);
  color: var(--accent, #DC052D);
  font-size: 0.62rem;
  font-weight: 700;
}

.fan-profile__badge-tile__action {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8px;
  border: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, 0.96) 78%);
  color: var(--accent, #DC052D);
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.fan-profile__badge-tile:hover .fan-profile__badge-tile__action,
.fan-profile__badge-tile:focus-within .fan-profile__badge-tile__action {
  opacity: 1;
  pointer-events: auto;
}

.fan-profile__list {
  display: grid;
  gap: 8px;
}

.fan-profile__list-item {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border, #e5e7eb);
  background: var(--surface-elevated, #fff);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease;
}

.fan-profile__list-item:hover {
  border-color: rgba(220, 5, 45, 0.28);
}

.fan-profile__list-item strong {
  display: block;
  font-size: 0.95rem;
}

.fan-profile__list-item span {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--text-mute, #6b7280);
}

.fan-profile__shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.fan-profile__shop-grid--popular {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}

.fan-profile__section--popular {
  margin-top: 0;
}

.fan-profile__section--popular .fan-profile__section-title {
  font-size: 0.95rem;
}

.fan-profile__shop-card {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border, #e5e7eb);
  background: var(--surface-elevated, #fff);
}

.fan-profile__shop-card h4 {
  margin: 0 0 4px;
  font-size: 0.92rem;
}

.fan-profile__shop-card p {
  margin: 0 0 10px;
  font-size: 0.78rem;
  color: var(--text-mute, #6b7280);
  line-height: 1.4;
}

.fan-profile__shop-card__purchases {
  margin: 0 0 8px;
  font-size: 0.72rem;
  color: var(--text-mute, #9ca3af);
  line-height: 1.3;
}

.fan-profile__shop-card--compact .fan-profile__shop-card__purchases {
  margin: 6px 0 0;
}

.fan-profile__panel-intro {
  margin: 0 0 16px;
  font-size: 0.88rem;
  color: var(--text-mute, #6b7280);
  line-height: 1.5;
}

.fan-profile__inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.fan-profile__inventory-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border, #e5e7eb);
  background: var(--surface-elevated, #fff);
}

.fan-profile__inventory-card--equipped {
  border-color: rgba(220, 5, 45, 0.28);
  background: rgba(220, 5, 45, 0.02);
}

.fan-profile__inventory-card--retired {
  opacity: 0.82;
}

.fan-profile__inventory-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.fan-profile__inventory-card h4 {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.3;
}

.fan-profile__inventory-card p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-mute, #6b7280);
}

.fan-profile__inventory-mark {
  flex: 0 0 auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(220, 5, 45, 0.1);
  color: var(--accent, #DC052D);
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}

.fan-profile__inventory-mark--retired {
  background: rgba(107, 114, 128, 0.12);
  color: var(--text-mute, #6b7280);
}

.fan-profile__inventory-mark--operator {
  background: rgba(17, 24, 39, 0.08);
  color: #111827;
}

.fan-profile__inventory-swatch {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.fan-profile__inventory-preview {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text, #111827);
}

.fan-profile__inventory-card__actions {
  margin-top: auto;
}

.fan-profile__shop-card__actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.fan-profile__shop-card--compact {
  padding: 10px;
}

.fan-profile__shop-card--compact.fan-profile__shop-card--icon {
  padding-top: 8px;
}

.fan-profile__shop-card--compact .fan-profile__shop-card__icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  margin-bottom: 4px;
}

.fan-profile__shop-card__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.fan-profile__shop-card__copy {
  min-width: 0;
  flex: 1 1 auto;
}

.fan-profile__shop-card--compact h4 {
  font-size: 0.84rem;
  line-height: 1.25;
}

.fan-profile__shop-card--compact p {
  margin: 0;
  font-size: 0.72rem;
}

.fan-profile__shop-buy-link {
  flex: 0 0 auto;
  border: 0;
  background: none;
  padding: 2px 0 0;
  color: var(--accent, #DC052D);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.fan-profile__shop-buy-link:hover {
  text-decoration: underline;
}

.fan-profile__shop-card--aside {
  padding: 12px;
}

.fan-profile__shop-card--aside h4 {
  margin: 0 0 2px;
  font-size: 0.9rem;
  line-height: 1.3;
}

.fan-profile__shop-card__type {
  margin: 0 0 10px;
  font-size: 0.76rem;
  color: var(--text-mute, #6b7280);
}

.fan-profile__shop-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.fan-profile__shop-card__price {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--accent, #DC052D);
}

.fan-profile__shop-buy-btn {
  min-width: 52px;
  padding-inline: 10px;
}

.fan-profile__shop-card--aside.fan-profile__shop-card--icon .fan-profile__shop-card__icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  margin-bottom: 6px;
}

.fan-profile__shop-grid--preview {
  grid-template-columns: 1fr;
  gap: 8px;
}

.fan-profile__customize {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border, #e5e7eb);
  background: var(--surface-elevated, #fff);
}

.fan-profile__customize .fan-profile__section-head {
  margin-bottom: 14px;
}

.fan-profile__customize .fan-profile__section-title {
  margin: 0;
}

.fan-profile__customize-grid {
  display: grid;
  gap: 14px;
}

@media (min-width: 720px) {
  .fan-profile__customize-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.9fr);
    align-items: stretch;
  }
}

.fan-profile__customize-preview {
  min-width: 0;
}

.fan-profile__customize-panel {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border, #e5e7eb);
  background: var(--surface-soft, #f9fafb);
}

.fan-profile__customize-panel-title {
  margin: 0 0 12px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-mute, #6b7280);
}

.fan-profile__customize-equipped {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.fan-profile__customize-equipped-row {
  display: grid;
  gap: 4px;
}

.fan-profile__customize-equipped-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-mute, #6b7280);
}

.fan-profile__customize-equipped-value {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.fan-profile__customize-equipped-value strong {
  font-size: 0.9rem;
  line-height: 1.35;
  word-break: break-word;
}

.fan-profile__customize-equipped-row.is-empty .fan-profile__customize-equipped-value strong {
  color: var(--text-mute, #9ca3af);
  font-weight: 500;
}

.fan-profile__customize-equipped-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  object-fit: contain;
}

.fan-profile__customize-equipped-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  flex: 0 0 auto;
}

.fan-profile__preview-stage {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  padding: 18px 16px 14px;
  color: #fff;
  min-height: 168px;
}

.fan-profile__preview-stage-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.fan-profile__preview-avatar-wrap {
  position: relative;
  flex: 0 0 auto;
}

.fan-profile__preview-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.12);
  display: block;
}

.fan-profile__preview-avatar--fallback {
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  font-weight: 700;
}

.fan-profile__preview-frame {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  pointer-events: none;
}

.fan-profile__preview-identity {
  min-width: 0;
}

.fan-profile__preview-author .community-author__name,
.fan-profile__preview-author .community-author__title {
  color: #fff;
}

.fan-profile__preview-level {
  margin: 6px 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0.92;
}

.fan-profile__preview-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.fan-profile__preview-badge {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  font-size: 0.72rem;
  font-weight: 600;
}

.fan-profile__preview-caption {
  margin: 12px 0 0;
  font-size: 0.72rem;
  opacity: 0.78;
}


.fan-profile__btn-equipped {
  border-color: var(--accent, #DC052D);
  color: var(--accent, #DC052D);
}

.fan-profile__ledger {
  display: grid;
  gap: 6px;
}

.fan-profile__ledger--full {
  gap: 8px;
}

.fan-profile__ledger-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--surface, #f9fafb);
  border: 1px solid var(--border, #e5e7eb);
}

.fan-profile__ledger-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.fan-profile__ledger-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text, #111827);
}

.fan-profile__ledger-meta {
  display: block;
  margin-top: 3px;
  font-size: 0.74rem;
  color: var(--text-mute, #6b7280);
  line-height: 1.35;
}

.fan-profile__ledger-amount {
  flex: 0 0 auto;
  font-size: 0.92rem;
  font-weight: 800;
  white-space: nowrap;
}

.fan-profile__ledger-amount.positive { color: #059669; }
.fan-profile__ledger-amount.negative { color: #dc2626; }

.fan-profile__empty,
.fan-profile__error,
.fan-profile__loading {
  padding: 28px 16px;
  text-align: center;
  color: var(--text-mute, #6b7280);
}

.fan-profile__empty--compact {
  padding: 16px 12px;
  font-size: 0.86rem;
}

.fan-profile__empty--card {
  padding: 20px 16px;
  border-radius: 12px;
  border: 1px dashed var(--border, #e5e7eb);
  background: var(--surface-elevated, #fff);
}

.fan-profile__empty--card p {
  margin: 0 0 12px;
  font-size: 0.9rem;
  line-height: 1.5;
}

body.page-profile .layout--intel {
  min-height: 100dvh;
}

body.page-profile.theme-intel .layout.layout--intel {
  max-width: 1280px;
  padding-left: 24px;
  padding-right: 24px;
}

body.page-profile #view-profile {
  width: 100%;
}

body.page-profile .site-footer {
  display: none;
}

@media (min-width: 768px) {
  .fan-profile-shell {
    padding: 24px 12px 56px;
  }

  .fan-profile__hero {
    min-height: 150px;
    padding: 28px 32px;
  }

  .fan-profile__avatar {
    width: 88px;
    height: 88px;
  }

  .fan-profile__avatar--fallback {
    font-size: 2rem;
  }

  .fan-profile__nickname {
    font-size: 1.75rem;
  }

  .fan-profile__equipped-title {
    font-size: 1.05rem;
  }

  .fan-profile__level {
    margin-top: 10px;
    font-size: 0.95rem;
  }

  .fan-profile__exp {
    margin-top: 12px;
    max-width: min(560px, 100%);
  }

  .fan-profile__exp-label {
    font-size: 0.84rem;
  }

  .fan-profile__exp-bar {
    height: 10px;
  }

  .fan-profile__exp-hint {
    font-size: 0.82rem;
  }

  .fan-profile__hero-activity {
    flex: 0 1 260px;
    min-width: 220px;
    padding: 14px 16px;
  }

  .fan-profile__stats--compact .fan-profile__stat strong {
    font-size: 1.375rem;
  }

  .fan-profile__stats--compact .fan-profile__stat span {
    font-size: 0.75rem;
  }

  .fan-profile__customize {
    padding: 20px 22px;
  }

  .fan-profile__customize-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(260px, 1fr);
    gap: 18px;
  }

  .fan-profile__preview-stage {
    min-height: 180px;
    padding: 22px 20px 16px;
  }

  .fan-profile__badge-collect {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .fan-profile__badge-tile {
    min-height: 88px;
    padding: 14px 10px 12px;
  }

  .fan-profile__badge-tile__icon {
    font-size: 1.75rem;
    margin-bottom: 4px;
  }

  .fan-profile__badge-tile__name {
    font-size: 0.82rem;
  }

  .fan-profile__section-title {
    font-size: 1.05rem;
  }
}

@media (min-width: 1024px) {
  .fan-profile__overview-main {
    gap: 22px;
  }

  .fan-profile__stats--bar {
    margin-bottom: 22px;
  }
}

.topbar-more__fan-meta {
  display: block;
  margin-top: 2px;
  font-size: 0.74rem;
  color: var(--text-mute, #6b7280);
}

.community-author {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  font-weight: inherit;
}

.community-author__icon {
  width: var(--author-icon-size);
  height: var(--author-icon-size);
  min-width: var(--author-icon-size);
  min-height: var(--author-icon-size);
  object-fit: contain;
  flex: 0 0 auto;
  aspect-ratio: 1;
}

.community-author--strong,
.community-author--strong .community-author__name {
  font-weight: 700;
}

.community-author__title {
  font-weight: 600;
  margin-right: 0.15em;
}

.community-comment-compose__author {
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
}

.community-comment-compose__author .community-author__title,
.community-comment-compose__author .community-author__name {
  color: inherit;
}

.community-board-author .community-author,
.community-board-row-author .community-author {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  max-width: 100%;
  min-width: 0;
  font-size: 12px;
  line-height: 1.35;
}

.community-board-author .community-author__icon,
.community-board-row-author .community-author__icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
}

.community-board-author .community-author__title,
.community-board-row-author .community-author__title {
  flex: 0 0 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1em;
  font-weight: 600;
}

.community-board-author .community-author__name,
.community-board-row-author .community-author__name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1em;
  font-weight: 600;
}

.fan-profile__nickname-edit {
  flex: 0 0 auto;
  margin-left: 4px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.fan-profile__nickname-edit:hover,
.fan-profile__nickname-edit:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.fan-profile__account {
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--border, #e5e7eb);
  background: var(--surface, #fff);
}

.fan-profile__account[hidden] {
  display: none !important;
}

.fan-profile__account .fan-profile__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.fan-profile__account-grid {
  display: grid;
  gap: 14px;
  max-width: 420px;
}

.fan-profile__account-field {
  display: grid;
  gap: 6px;
}

.fan-profile__account-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dim, #6b7280);
}

.fan-profile__account-readonly {
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
  background: var(--surface-soft, #f9fafb);
  color: var(--text-mute, #9ca3af);
  line-height: 42px;
}

.fan-profile__nickname-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.fan-profile__nickname-row .fan-profile__account-input {
  flex: 1 1 auto;
  min-width: 0;
}

.fan-profile__account-input {
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
  background: var(--surface, #fff);
  color: var(--text, #111827);
}

.fan-profile__account-input:focus {
  outline: none;
  border-color: var(--accent, #dc052d);
  box-shadow: 0 0 0 3px var(--accent-soft, rgba(220, 5, 45, 0.12));
}

.fan-profile__nickname-save {
  width: 100%;
  height: 42px;
  margin-top: 2px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #dc052d 0%, #b80426 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s ease, opacity 0.15s ease;
}

.fan-profile__nickname-save:hover:not(:disabled),
.fan-profile__nickname-save:focus-visible:not(:disabled) {
  background: linear-gradient(135deg, #e80633 0%, #c9052b 100%);
  color: #fff;
  filter: brightness(1.06);
}

.fan-profile__nickname-save:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
