/* BluBellFun — personal profile, card showcase, binder and media shelves. */

.profile-page {
  padding: 26px 0 90px;
}

/* Cover */

.profile-cover {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    radial-gradient(ellipse at 72% 18%, rgba(var(--primary-rgb), 0.22), transparent 55%),
    radial-gradient(ellipse at 18% 90%, rgba(242, 167, 187, 0.14), transparent 55%),
    #101019;
  box-shadow: var(--shadow-lg);
}

.profile-cover-art {
  position: absolute;
  inset: -24px;
  background-image: var(--profile-art);
  background-position: center 28%;
  background-size: cover;
  filter: blur(2px) saturate(0.8);
  opacity: 0.62;
  transform: scale(1.04);
}

.profile-cover-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 7, 11, 0.1) 0%, rgba(7, 7, 11, 0.12) 35%, rgba(7, 7, 11, 0.82) 78%, var(--bg) 100%),
    linear-gradient(90deg, rgba(7, 7, 11, 0.45), transparent 55%);
}

:root[data-theme='light'] .profile-cover-shade {
  background:
    linear-gradient(180deg, rgba(244, 242, 237, 0.06) 0%, rgba(244, 242, 237, 0.12) 35%, rgba(244, 242, 237, 0.75) 78%, var(--bg) 100%),
    linear-gradient(90deg, rgba(20, 18, 26, 0.28), transparent 55%);
}

.profile-cover-actions {
  position: absolute;
  top: 17px;
  right: 17px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.profile-cover-btn {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 11px;
  background: rgba(8, 8, 14, 0.42);
  color: #fff;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.profile-cover-btn:hover {
  background: rgba(8, 8, 14, 0.62);
  color: #fff;
}

.profile-identity {
  position: absolute;
  right: 24px;
  bottom: 23px;
  left: 24px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 17px;
}

.profile-avatar {
  width: 102px;
  height: 102px;
  flex: none;
  border: 3px solid rgba(10, 10, 16, 0.92);
  box-shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.18);
  font-size: 32px;
}

.profile-identity-copy {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  padding-bottom: 5px;
}

.profile-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-name-row h1 {
  max-width: 100%;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.profile-role {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.profile-role.admin {
  border-color: rgba(255, 210, 122, 0.4);
  background: rgba(255, 210, 122, 0.13);
  color: #ffd27a;
}

.profile-identity-copy p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 11.5px;
}

/* Stats */

.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.profile-stat {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 1px 11px;
  align-items: center;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.profile-stat-icon {
  display: grid;
  grid-row: span 2;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
}

.profile-stat-icon .icon {
  width: 16px;
  height: 16px;
}

.profile-stat b {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.profile-stat > span:last-child {
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.2;
}

/* Sections */

.profile-space,
.profile-section {
  margin-top: 42px;
}

.profile-space-note {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.profile-space-note .icon {
  width: 13px;
  height: 13px;
}

.profile-space .section-head,
.profile-section .section-head {
  align-items: flex-end;
  margin-bottom: 15px;
}

.profile-section-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.16s;
}

.section-link:hover {
  color: var(--primary);
}

.section-link .icon {
  width: 13px;
  height: 13px;
}

.section-sub {
  max-width: 470px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

/* Collection tiles */

.collection-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.collection-tile {
  position: relative;
  display: grid;
  grid-template-columns: minmax(150px, 0.9fr) minmax(0, 1fr);
  min-height: 224px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.collection-tile:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lg);
}

.tile-book {
  background:
    radial-gradient(ellipse at 18% 30%, rgba(157, 130, 255, 0.13), transparent 60%),
    linear-gradient(135deg, var(--surface-2), var(--surface));
}

.tile-binder {
  background:
    radial-gradient(ellipse at 22% 30%, rgba(120, 178, 255, 0.13), transparent 60%),
    linear-gradient(135deg, var(--surface-2), var(--surface));
}

.collection-tile-illus {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 210px;
}

.collection-tile-copy {
  align-self: center;
  padding: 24px 24px 24px 4px;
}

.collection-tile-kicker {
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.collection-tile-copy h3 {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.collection-tile-copy p {
  max-width: 290px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
}

.collection-tile-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 14px;
  color: var(--primary);
  font-size: 10.5px;
  font-weight: 700;
}

.collection-tile-link .icon {
  width: 13px;
  height: 13px;
  transition: transform 0.16s;
}

.collection-tile:hover .collection-tile-link .icon {
  transform: translateX(3px);
}

/* CSS illustration: book */

.illus-book {
  width: 100%;
  height: 100%;
  min-height: 220px;
  perspective: 900px;
}

.illus-book-page,
.illus-book-cover,
.illus-feather {
  position: absolute;
  display: block;
}

.illus-book-page {
  z-index: 1;
  width: 102px;
  height: 142px;
  margin: 10px 0 0 30px;
  border-radius: 5px 12px 12px 5px;
  background: linear-gradient(90deg, #e9e2d3, #fff8eb 55%, #d9cfbe);
  box-shadow: 0 18px 32px -20px rgba(0, 0, 0, 0.75);
  transform: rotate(-7deg) translate(15px, -2px);
}

.illus-book-cover {
  z-index: 2;
  width: 104px;
  height: 146px;
  margin: 8px 0 0 22px;
  overflow: hidden;
  border-radius: 5px 12px 12px 5px;
  background:
    radial-gradient(circle at 30% 12%, rgba(255, 255, 255, 0.26), transparent 34%),
    linear-gradient(145deg, #7c63d8 0%, #5c44b8 55%, #3b2d83 100%);
  box-shadow:
    0 22px 38px -22px rgba(0, 0, 0, 0.85),
    inset 9px 0 14px -10px rgba(0, 0, 0, 0.65),
    inset -1px 0 0 rgba(255, 255, 255, 0.14);
  color: #f7eeff;
  font-family: var(--font-display);
  transform: rotate(-7deg);
}

.illus-book-cover::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 9px;
  width: 2px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 4px 0 0 rgba(0, 0, 0, 0.14);
}

.illus-book-cover small,
.illus-book-cover strong {
  position: absolute;
  left: 22px;
  display: block;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.illus-book-cover small {
  top: 40px;
  font-size: 11px;
  opacity: 0.8;
}

.illus-book-cover strong {
  top: 53px;
  font-size: 16px;
}

.illus-book-cover i {
  position: absolute;
  right: 17px;
  bottom: 19px;
  width: 19px;
  height: 19px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.12), 0 0 18px rgba(255, 255, 255, 0.18);
}

.illus-feather {
  z-index: 3;
  top: 34px;
  left: 9px;
  width: 28px;
  height: 104px;
  border-radius: 100% 4% 100% 8%;
  background: linear-gradient(100deg, #f7f0df 0%, #c8bca9 48%, #938a7b 100%);
  box-shadow: 0 10px 22px -14px rgba(0, 0, 0, 0.7);
  transform: rotate(23deg);
  opacity: 0.9;
}

.illus-feather::after {
  content: '';
  position: absolute;
  top: 6%;
  bottom: 8%;
  left: 54%;
  width: 1px;
  background: rgba(79, 68, 52, 0.42);
  transform: rotate(2deg);
}

/* CSS illustration: binder */

.illus-binder {
  width: 100%;
  height: 100%;
  min-height: 220px;
  perspective: 900px;
}

.illus-binder-back,
.illus-binder-sheet,
.illus-binder-cover {
  position: absolute;
  display: block;
  width: 112px;
  height: 154px;
  border-radius: 10px;
}

.illus-binder-back {
  z-index: 1;
  margin: 12px 0 0 10px;
  background: linear-gradient(140deg, #2c354d, #151b2b);
  box-shadow: 0 22px 38px -24px rgba(0, 0, 0, 0.85);
  transform: rotate(-9deg);
}

.illus-binder-sheet {
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(226, 231, 246, 0.68));
  box-shadow: 0 12px 20px -16px rgba(0, 0, 0, 0.6);
  transform: rotate(-6deg);
}

.illus-binder-sheet.s1 {
  margin: 7px 0 0 22px;
  background:
    repeating-linear-gradient(180deg, transparent 0 16px, rgba(54, 61, 91, 0.18) 16px 17px),
    linear-gradient(145deg, #f7f4ee, #dde5f5);
}

.illus-binder-sheet.s2 {
  margin: 4px 0 0 30px;
  transform: rotate(2deg);
}

.illus-binder-cover {
  z-index: 4;
  display: grid;
  margin: 5px 0 0 37px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(circle at 25% 30%, rgba(123, 230, 193, 0.4), transparent 20%),
    radial-gradient(circle at 70% 22%, rgba(253, 160, 203, 0.44), transparent 19%),
    radial-gradient(circle at 45% 72%, rgba(255, 201, 102, 0.44), transparent 19%),
    linear-gradient(145deg, #30406a, #131a2c);
  box-shadow:
    0 24px 40px -24px rgba(0, 0, 0, 0.9),
    inset 8px 0 12px -9px rgba(0, 0, 0, 0.7),
    inset -1px 0 0 rgba(255, 255, 255, 0.16);
  color: #e9f1ff;
  transform: rotate(4deg);
}

.illus-binder-cover::before {
  content: '';
  position: absolute;
  top: 13px;
  bottom: 13px;
  left: 8px;
  width: 3px;
  border-radius: 3px;
  background: #aebbe8;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.22),
    0 42px 0 0 #aebbe8,
    0 84px 0 0 #aebbe8;
  opacity: 0.8;
}

.illus-binder-cover .icon {
  width: 28px;
  height: 28px;
  opacity: 0.9;
}

/* Showcase */

.showcase-row {
  display: flex;
  align-items: stretch;
  gap: 16px;
}

.showcase-card {
  width: 178px;
  flex: none;
  transform: rotate(calc((var(--i) - 1.5) * 1.15deg));
  transition: transform 0.2s, filter 0.2s;
}

.showcase-card:nth-child(odd) {
  transform: translateY(5px) rotate(calc((var(--i) - 1.5) * 1.15deg));
}

.showcase-card:hover {
  transform: translateY(-5px) rotate(0deg) scale(1.015);
  filter: brightness(1.06);
}

.showcase-card .game-card {
  width: 100%;
}

.showcase-placeholder {
  display: flex;
  width: 178px;
  aspect-ratio: 3 / 4;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.025), transparent),
    var(--surface);
  color: var(--muted);
  text-align: center;
  transition: border-color 0.16s, color 0.16s, background 0.16s;
}

.showcase-placeholder:hover {
  border-color: color-mix(in srgb, var(--primary) 55%, var(--line));
  background: var(--primary-soft);
  color: var(--primary);
}

.showcase-placeholder > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.showcase-placeholder .icon {
  width: 15px;
  height: 15px;
}

.showcase-placeholder b {
  font-size: 10px;
  font-weight: 700;
}

.showcase-placeholder small {
  color: var(--muted-2);
  font-size: 8.5px;
}

.showcase-side {
  display: flex;
  flex: 1;
  min-width: 220px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.showcase-kicker {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.showcase-kicker .icon {
  width: 13px;
  height: 13px;
  color: var(--primary);
}

.showcase-side b {
  margin-top: 9px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.showcase-side p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
}

.showcase-side .btn {
  margin-top: 14px;
}

.showcase-empty {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 22px;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  background: var(--surface);
}

.showcase-empty-art {
  display: grid;
  width: 48px;
  height: 48px;
  flex: none;
  place-items: center;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
}

.showcase-empty-art .icon {
  width: 21px;
  height: 21px;
}

.showcase-empty h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
}

.showcase-empty p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10.5px;
}

.showcase-empty .btn {
  margin-left: auto;
  flex: none;
}

/* Media shelf */

.disc-shelf-wrap {
  position: relative;
  padding: 24px 22px 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(157, 130, 255, 0.1), transparent 54%),
    linear-gradient(180deg, var(--surface), var(--surface-2));
  overflow: hidden;
}

.disc-shelf {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  justify-content: center;
  min-height: 174px;
  perspective: 1000px;
}

.disc-case {
  position: relative;
  display: flex;
  width: clamp(48px, 6.2vw, 70px);
  height: 146px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 9px 7px 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px 6px 6px 4px;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.42), transparent 37%),
    linear-gradient(160deg, hsl(calc(218 + var(--i) * 18) 44% 58%), hsl(calc(218 + var(--i) * 18) 48% 26%));
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.22) inset,
    0 16px 24px -16px rgba(0, 0, 0, 0.75);
  transform: translateY(calc((var(--i) % 3) * -3px)) rotate(calc((var(--i) % 5) * -0.7deg));
  transition: transform 0.2s, filter 0.2s;
}

.disc-case:hover {
  z-index: 4;
  filter: brightness(1.12);
  transform: translateY(-9px) rotate(0deg);
}

.disc-case::after {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  width: 55%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.12);
  opacity: 0.55;
}

.disc-case-top {
  display: block;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.45);
}

.disc-case-label {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-display);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.disc-case-label small {
  font-family: var(--font-body);
  font-size: 7px;
  font-weight: 700;
  opacity: 0.7;
}

.disc-case em {
  position: absolute;
  right: 6px;
  bottom: 7px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.5);
  font-size: 6.5px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.disc-add {
  display: grid;
  width: clamp(48px, 6.2vw, 70px);
  height: 146px;
  place-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  transition: border-color 0.16s, color 0.16s, background 0.16s;
}

.disc-add:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
}

.disc-add .icon {
  width: 17px;
  height: 17px;
}

.shelf-rail {
  position: relative;
  z-index: 1;
  height: 8px;
  margin: -2px 3px 0;
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(168, 190, 255, 0.34), rgba(168, 190, 255, 0.06));
  box-shadow:
    0 0 28px rgba(120, 152, 255, 0.18),
    0 3px 0 rgba(255, 255, 255, 0.06) inset;
}

/* Lower grid */

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.genre-bars {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 18px;
}

.genre-bar-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  color: var(--text-soft);
  font-size: 10.5px;
  font-weight: 700;
}

.genre-bar-head span:last-child {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.progress-track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-3);
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--rose));
  box-shadow: 0 0 12px rgba(var(--primary-rgb), 0.4);
}

.empty-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 15px;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 13px;
}

.empty-inline > .icon {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--primary);
}

.empty-inline > div {
  min-width: 0;
  flex: 1;
}

.empty-inline b {
  display: block;
  font-size: 11px;
}

.empty-inline span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9.5px;
}

.profile-grid .mini-list {
  margin-top: 12px;
}

.profile-grid .mini-row {
  padding: 8px 0;
}

/* Settings */

.settings-list {
  display: flex;
  flex-direction: column;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 8px;
  border-bottom: 1px solid var(--line);
}

.settings-row:last-child {
  border-bottom: 0;
}

.settings-row b {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
}

.settings-row span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9.5px;
}

.profile-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 12px;
  color: var(--muted-2);
  font-size: 9.5px;
  line-height: 1.5;
}

.profile-note .icon {
  width: 12px;
  height: 12px;
  flex: none;
  margin-top: 1px;
}

/* Binder modal */

.modal.modal-wide {
  width: min(1100px, calc(100vw - 32px));
  max-width: 1100px;
}

.binder-modal .modal-body {
  max-height: min(68vh, 720px);
  overflow: auto;
}

.binder-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.binder-toolbar .search-field {
  flex: 1;
}

.binder-count {
  flex: none;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.binder-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.binder-filters .chip {
  gap: 7px;
  height: 30px;
  padding: 0 10px;
  font-size: 10.5px;
}

.chip-count {
  display: inline-grid;
  min-width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: inherit;
  font-size: 8px;
  font-weight: 800;
}

.binder-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.binder-entry .game-card {
  width: 100%;
}

.binder-entry[hidden] {
  display: none !important;
}

.binder-empty {
  display: flex;
  grid-column: 1 / -1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 30px;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  text-align: center;
}

.binder-empty > .icon {
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  color: var(--primary);
}

.binder-empty h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
}

.binder-empty p {
  max-width: 340px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
}

.binder-empty .btn {
  margin-top: 16px;
}

.binder-empty-search {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 26px;
  color: var(--muted);
  font-size: 11px;
}

.binder-empty-search .icon {
  width: 16px;
  height: 16px;
}

/* Responsive */

@media (max-width: 1100px) {
  .showcase-card {
    width: 154px;
  }
  .collection-tile {
    grid-template-columns: 140px minmax(0, 1fr);
  }
  .collection-tile-copy {
    padding: 18px 18px 18px 0;
  }
  .collection-tile-copy h3 {
    font-size: 21px;
  }
  .profile-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .profile-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .collection-tile {
    min-height: 200px;
  }
  .collection-tile-illus {
    min-height: 190px;
    transform: scale(0.88);
  }
  .showcase-row {
    overflow-x: auto;
    padding: 6px 2px 14px;
    scrollbar-width: thin;
  }
  .showcase-side {
    min-width: 250px;
  }
  .disc-shelf {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 6px;
  }
}

@media (max-width: 720px) {
  .profile-page {
    padding-top: 16px;
  }
  .profile-cover {
    min-height: 310px;
  }
  .profile-cover-actions {
    top: 12px;
    right: 12px;
  }
  .profile-identity {
    right: 16px;
    bottom: 16px;
    left: 16px;
    gap: 12px;
  }
  .profile-avatar {
    width: 74px;
    height: 74px;
    font-size: 24px;
  }
  .profile-name-row h1 {
    font-size: 28px;
  }
  .profile-identity-copy p {
    font-size: 10px;
    line-height: 1.4;
  }
  .profile-cover-shade {
    background: linear-gradient(180deg, rgba(7, 7, 11, 0.1), rgba(7, 7, 11, 0.35) 38%, rgba(7, 7, 11, 0.9) 82%, var(--bg));
  }
  .profile-space,
  .profile-section {
    margin-top: 30px;
  }
  .profile-space .section-head,
  .profile-section .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .profile-section-actions {
    justify-content: flex-start;
  }
  .collection-tiles {
    grid-template-columns: 1fr;
  }
  .collection-tile {
    display: block;
    min-height: 174px;
    padding: 0;
  }
  .collection-tile-illus {
    position: absolute;
    top: 50%;
    right: -4px;
    width: 150px;
    height: 180px;
    min-height: 0;
    transform: translateY(-50%) scale(0.82);
    transform-origin: center;
    opacity: 0.9;
    pointer-events: none;
  }
  .collection-tile-copy {
    position: relative;
    z-index: 3;
    padding: 19px 132px 19px 18px;
  }
  .showcase-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    overflow: visible;
    padding: 0 0 4px;
  }
  .showcase-card,
  .showcase-card:nth-child(odd) {
    width: 100%;
    transform: none;
  }
  .showcase-placeholder {
    width: 100%;
  }
  .showcase-side {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    padding: 20px;
  }
  .showcase-empty {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .showcase-empty .btn {
    width: 100%;
    margin-left: 0;
  }
  .disc-shelf-wrap {
    padding: 16px 14px 8px;
  }
  .disc-case,
  .disc-add {
    height: 126px;
  }
  .binder-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .binder-toolbar {
    flex-wrap: wrap;
  }
  .binder-toolbar .search-field {
    flex-basis: 100%;
  }
  .profile-stat {
    padding: 11px 12px;
  }
  .settings-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }
  .settings-row .btn {
    width: 100%;
  }
}

@media (max-width: 460px) {
  .profile-cover {
    min-height: 290px;
    border-radius: 20px;
  }
  .profile-identity {
    align-items: center;
  }
  .profile-avatar {
    width: 62px;
    height: 62px;
    font-size: 20px;
  }
  .profile-name-row h1 {
    font-size: 24px;
  }
  .profile-role {
    height: 20px;
    font-size: 7.5px;
  }
  .profile-identity-copy p {
    margin-top: 5px;
  }
  .profile-stat {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 0 9px;
  }
  .profile-stat-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }
  .profile-stat b {
    font-size: 17px;
  }
  .collection-tile {
    min-height: 162px;
  }
  .collection-tile-illus {
    right: -20px;
    width: 132px;
    height: 160px;
    opacity: 0.62;
    transform: translateY(-50%) scale(0.7);
  }
  .collection-tile-copy {
    padding: 17px 106px 17px 16px;
  }
  .collection-tile-copy h3 {
    font-size: 19px;
  }
  .collection-tile-copy p {
    font-size: 9.5px;
  }
  .showcase-card {
    width: 100%;
  }
  .showcase-side {
    min-width: 0;
    padding: 18px;
  }
  .disc-case,
  .disc-add {
    height: 112px;
  }
}

/* ================= Book, binder and feather ================= */

.collection-book-3d,
.collection-binder-3d {
  position: relative;
  width: 150px;
  height: 190px;
  filter: drop-shadow(0 22px 22px rgba(0, 0, 0, 0.34));
  animation: decorFloat 6s ease-in-out infinite;
  will-change: transform;
}

.collection-book-3d {
  perspective: 1000px;
}

.collection-book-pages,
.collection-book-cover {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.collection-book-pages {
  z-index: 1;
  transform: translate(4px, 4px);
}

.collection-book-cover {
  z-index: 3;
  transform-origin: 7% 50%;
  transition: transform 0.55s cubic-bezier(0.3, 0.7, 0.25, 1);
  will-change: transform;
}

.collection-book-pages svg,
.collection-book-cover svg,
.collection-binder-cover svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.collection-book-ribbon {
  position: absolute;
  z-index: 2;
  left: 62%;
  bottom: -8%;
  width: 12px;
  height: 36px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
  background: linear-gradient(90deg, color-mix(in srgb, var(--ribbon) 65%, #000), var(--ribbon) 46%, color-mix(in srgb, var(--ribbon) 65%, #000));
  transform-origin: 50% 0;
  animation: decorRibbon 3.2s ease-in-out infinite;
}

.collection-book-feather {
  position: absolute;
  z-index: 4;
  left: -8px;
  bottom: -2px;
  width: 48px;
  height: 128px;
  transform: rotate(-20deg);
  transform-origin: 50% 100%;
  filter: drop-shadow(3px 6px 4px rgba(0, 0, 0, 0.4));
  animation: decorFeather 4.4s ease-in-out infinite;
  pointer-events: none;
}

.collection-book-feather svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.collection-book-3d:hover .collection-book-cover,
.collection-book-3d.is-peeking .collection-book-cover {
  transform: rotateY(-27deg);
}

.collection-book-3d.is-peeking .collection-book-cover {
  animation: bookPeek 1.6s ease-in-out;
}

.collection-book-3d.is-opening .collection-book-cover {
  transform: rotateY(-160deg);
  transition-duration: 0.5s;
}

.collection-book-3d.is-opening .collection-book-pages {
  transform: translate(6px, 3px);
}

.collection-binder-3d {
  animation-delay: -2.5s;
}

.collection-binder-fan {
  position: absolute;
  z-index: 1;
  top: 15%;
  right: 0;
  width: 56%;
  height: 62%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 7px;
  background:
    radial-gradient(circle at 50% 32%, #ffe0cc 0 9%, transparent 10%),
    radial-gradient(ellipse 22% 12% at 50% 68%, rgba(255, 255, 255, 0.8), transparent 100%),
    linear-gradient(145deg, var(--fan-a), var(--fan-b));
  box-shadow: 0 8px 16px -8px rgba(0, 0, 0, 0.7);
  transform-origin: 75% 92%;
  transition: transform 0.5s cubic-bezier(0.3, 0.7, 0.25, 1);
}

.collection-binder-fan::after {
  content: '';
  position: absolute;
  right: 16%;
  bottom: 9%;
  left: 16%;
  height: 9%;
  border-radius: 3px;
  background: rgba(30, 20, 52, 0.55);
}

.collection-binder-fan.f1 {
  transform: rotate(8deg) translate(3px, -2px);
}

.collection-binder-fan.f2 {
  top: 18%;
  right: 5px;
  opacity: 0.9;
  transform: rotate(-9deg);
}

.collection-binder-fan.f3 {
  top: 20%;
  right: 11px;
  opacity: 0.75;
  transform: rotate(17deg);
}

.collection-binder-cover {
  position: absolute;
  z-index: 3;
  inset: 0;
  transform-origin: 8% 50%;
  transition: transform 0.5s cubic-bezier(0.3, 0.7, 0.25, 1);
  will-change: transform;
}

.collection-binder-3d:hover .f1 {
  transform: translate(10px, -12px) rotate(17deg);
}

.collection-binder-3d:hover .f2 {
  transform: translate(13px, -4px) rotate(-14deg);
}

.collection-binder-3d:hover .f3 {
  transform: translate(15px, 5px) rotate(24deg);
}

.collection-binder-3d.is-peeking .f1 {
  animation: fanPeek1 1.6s ease-in-out;
}

.collection-binder-3d.is-peeking .f2 {
  animation: fanPeek2 1.6s ease-in-out;
}

.collection-binder-3d.is-opening .collection-binder-cover {
  transform: rotateY(-22deg);
}

.collection-binder-3d.is-opening .f1 {
  transform: translate(26px, -20px) rotate(28deg);
  opacity: 0.3;
}

.collection-binder-3d.is-opening .f2 {
  transform: translate(30px, -8px) rotate(-24deg);
  opacity: 0.3;
}

.collection-binder-3d.is-opening .f3 {
  transform: translate(32px, 8px) rotate(35deg);
  opacity: 0.3;
}

@keyframes decorFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(-0.6deg); }
}

@keyframes decorFeather {
  0%, 100% { transform: rotate(-20deg) translateY(0); }
  50% { transform: rotate(-16deg) translateY(-4px); }
}

@keyframes decorRibbon {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(5deg); }
}

@keyframes bookPeek {
  0%, 100% { transform: rotateY(0deg); }
  35%, 65% { transform: rotateY(-27deg); }
}

@keyframes fanPeek1 {
  0%, 100% { transform: rotate(8deg) translate(3px, -2px); }
  40%, 65% { transform: translate(10px, -12px) rotate(17deg); }
}

@keyframes fanPeek2 {
  0%, 100% { transform: rotate(-9deg); }
  40%, 65% { transform: translate(13px, -4px) rotate(-14deg); }
}

/* ================= Apparence picker in the edit modal ================= */

.decor-field {
  margin-top: 17px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.decor-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.decor-head > span {
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.decor-head > small {
  color: var(--muted-2);
  font-size: 8.5px;
}

.decor-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}

.decor-tab {
  flex: 1;
  height: 29px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.decor-tab.is-active {
  background: var(--primary-soft);
  color: var(--primary);
}

.decor-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.decor-choice {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 7px 5px 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.16s, background 0.16s, color 0.16s;
}

.decor-choice:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.decor-choice.is-active {
  border-color: color-mix(in srgb, var(--primary) 58%, var(--line));
  background: var(--primary-soft);
  color: var(--primary);
}

.decor-choice small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  font-size: 7.5px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.decor-thumb {
  position: relative;
  display: block;
  width: 44px;
  height: 55px;
  flex: none;
}

.decor-thumb-book {
  display: grid;
  place-items: center;
  border: 2px solid var(--trim);
  border-radius: 3px 7px 7px 3px;
  background: linear-gradient(145deg, var(--c1), var(--c2));
  box-shadow: inset 5px 0 0 rgba(0, 0, 0, 0.24);
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 13px;
}

.decor-thumb-book::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid color-mix(in srgb, var(--trim) 70%, transparent);
  border-radius: 2px;
}

.decor-thumb-book i {
  position: absolute;
  top: 23px;
  left: 12px;
  right: 12px;
  height: 1px;
  background: var(--trim);
  opacity: 0.65;
}

.decor-thumb-binder {
  display: grid;
  grid-template-columns: repeat(2, 10px);
  grid-template-rows: repeat(2, 12px);
  place-content: center;
  gap: 3px;
  border: 2px solid color-mix(in srgb, var(--accent) 70%, transparent);
  border-radius: 5px;
  background: linear-gradient(145deg, var(--bg1), var(--bg2));
  box-shadow: inset 6px 0 0 rgba(0, 0, 0, 0.26);
}

.decor-thumb-binder i {
  display: block;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.72;
}

.decor-thumb-binder i:nth-child(1) { background: #f4a7c0; }
.decor-thumb-binder i:nth-child(2) { background: #8eddd2; }
.decor-thumb-binder i:nth-child(3) { background: #f5cf7d; }
.decor-thumb-binder b {
  position: absolute;
  right: 6px;
  bottom: 5px;
  left: 12px;
  height: 4px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--accent) 55%, transparent);
}

.decor-thumb-feather {
  display: grid;
  place-items: center;
}

.decor-thumb-feather i {
  display: block;
  width: 20px;
  height: 46px;
  background: linear-gradient(145deg, var(--f1), var(--f2));
  clip-path: polygon(50% 0, 83% 28%, 70% 86%, 52% 100%, 34% 86%, 17% 28%);
  transform: rotate(15deg);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
}

.decor-thumb-feather i::after {
  content: '';
  display: block;
  width: 1px;
  height: 100%;
  margin: 0 auto;
  background: var(--shaft);
  opacity: 0.75;
}

@media (max-width: 520px) {
  .decor-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .decor-thumb {
    width: 40px;
    height: 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .collection-book-3d,
  .collection-binder-3d,
  .collection-book-feather,
  .collection-book-ribbon,
  .collection-book-cover,
  .collection-binder-fan {
    animation: none !important;
    transition: none !important;
  }
}

/* Open the cover when the whole collection tile is hovered. */
.tile-book:hover .collection-book-cover {
  transform: rotateY(-27deg);
}

.tile-binder:hover .collection-binder-fan.f1 {
  transform: translate(10px, -12px) rotate(17deg);
}

.tile-binder:hover .collection-binder-fan.f2 {
  transform: translate(13px, -4px) rotate(-14deg);
}

.tile-binder:hover .collection-binder-fan.f3 {
  transform: translate(15px, 5px) rotate(24deg);
}

.decor-note {
  margin: 9px 1px 0;
  color: var(--muted-2);
  font-size: 8.5px;
  line-height: 1.4;
}

.binder-entry .pack-card-preview {
  width: 100%;
}

.binder-entry-pack {
  min-width: 0;
}

/* Profile header parameters from the old MyBlueBell profile */
.profile-cover {
  height: 178px;
  min-height: 178px;
  border-radius: 20px;
  box-shadow: 0 10px 30px #00000018;
}

.profile-cover-art {
  inset: 0;
  background-position: var(--profile-art-x, 50%) var(--profile-art-y, 50%);
  filter: none;
  opacity: .82;
  transform: scale(var(--profile-art-z, 1));
}

.profile-cover-shade {
  background: linear-gradient(180deg, transparent 55%, #08061738);
}

:root[data-theme='light'] .profile-cover-shade {
  background: linear-gradient(180deg, transparent 55%, #08061720);
}

.profile-cover-actions {
  top: 14px;
  right: 14px;
}

.profile-cover-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.profile-identity {
  position: relative;
  right: auto;
  bottom: auto;
  left: auto;
  z-index: 2;
  margin: -42px 24px 18px;
  align-items: center;
  gap: 18px;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border: 4px solid rgba(10, 10, 16, .92);
  box-shadow: 0 6px 20px #0004;
  font-size: 32px;
}

.avatar-frame .avatar-img {
  inset: 4px;
}

.profile-identity-copy {
  padding: 32px 0 0;
}

.profile-name-row h1 {
  color: var(--text);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.2;
}

.profile-identity-copy p {
  margin-top: 4px;
  color: var(--muted);
  font-size: .9rem;
}

.profile-stats {
  margin-top: 0;
  margin-bottom: 20px;
}

@media (max-width: 900px) {
  .profile-cover {
    height: 150px;
    min-height: 150px;
  }
  .profile-identity {
    margin: -36px 16px 14px;
    gap: 12px;
  }
  .profile-avatar {
    width: 82px !important;
    height: 82px !important;
    font-size: 26px;
  }
  .profile-identity-copy {
    padding-top: 24px;
  }
  .profile-name-row h1 {
    font-size: 1.5rem;
  }
  .profile-identity-copy p {
    font-size: .82rem;
  }
}

@media (max-width: 560px) {
  .profile-cover {
    height: 130px;
    min-height: 130px;
    border-radius: 16px;
  }
  .profile-identity {
    margin: -30px 12px 12px;
    gap: 10px;
  }
  .profile-avatar {
    width: 68px !important;
    height: 68px !important;
    font-size: 21px;
  }
  .profile-identity-copy {
    padding-top: 18px;
  }
  .profile-name-row h1 {
    font-size: 1.25rem;
  }
  .profile-role {
    height: 19px;
    font-size: 7px;
  }
}

/* Restore the original large profile cover */
.profile-cover {
  height: 340px;
  min-height: 340px;
  border-radius: 26px;
  box-shadow: var(--shadow-lg);
}

.profile-identity {
  position: absolute;
  right: 24px;
  bottom: 23px;
  left: 24px;
  margin: 0;
  align-items: flex-end;
  gap: 17px;
}

.profile-avatar {
  width: 100px;
  height: 100px;
}

.profile-identity-copy {
  padding: 0 0 5px;
}

.profile-name-row h1 {
  color: #fff;
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 600;
}

.profile-identity-copy p {
  margin-top: 6px;
  color: rgba(255, 255, 255, .7);
  font-size: 11px;
}

.profile-stats {
  margin-top: 16px;
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .profile-cover {
    height: 310px;
    min-height: 310px;
    border-radius: 22px;
  }
  .profile-identity {
    right: 16px;
    bottom: 16px;
    left: 16px;
    gap: 12px;
  }
  .profile-avatar {
    width: 82px !important;
    height: 82px !important;
    font-size: 26px;
  }
  .profile-identity-copy {
    padding-bottom: 2px;
  }
  .profile-name-row h1 {
    font-size: 25px;
  }
}

@media (max-width: 560px) {
  .profile-cover {
    height: 290px;
    min-height: 290px;
    border-radius: 20px;
  }
  .profile-identity {
    right: 12px;
    bottom: 12px;
    left: 12px;
    gap: 10px;
  }
  .profile-avatar {
    width: 68px !important;
    height: 68px !important;
    font-size: 21px;
  }
  .profile-name-row h1 {
    font-size: 21px;
  }
  .profile-identity-copy p {
    font-size: 9px;
  }
}

/* Public profile */
.public-profile-loading {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 90px 20px;
  color: var(--muted);
  font-size: 14px;
}

.public-profile-loading .icon {
  width: 30px;
  height: 30px;
  color: var(--accent);
  animation: publicPulse 1.4s ease-in-out infinite;
}

@keyframes publicPulse {
  50% { opacity: .4; transform: scale(.92); }
}

.public-profile-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.public-profile-cards {
  margin-top: 34px;
}

.public-profile-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.public-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(142px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.public-profile-card {
  display: block;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  transition: transform .2s var(--ease), filter .2s var(--ease);
}

.public-profile-card:hover {
  transform: translateY(-3px);
  filter: brightness(1.06);
}

.public-profile-card .game-card {
  width: 100%;
}

.public-profile-empty {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 70px 20px;
  text-align: center;
}

.public-profile-empty-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--accent);
}

.public-profile-empty h2 {
  margin: 0;
  font-size: 20px;
}

@media (max-width: 620px) {
  .public-profile-grid {
    grid-template-columns: repeat(auto-fill, minmax(124px, 1fr));
    gap: 10px;
  }
  .public-profile-stats {
    grid-template-columns: 1fr;
  }
}

/* Favourite media discs */
.disc-case-favorite {
  color: #fff;
  text-decoration: none;
}

.disc-case-cover {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--disc-cover);
  background-position: center;
  background-size: cover;
  opacity: .78;
  transform: scale(1.03);
}

.disc-case-favorite::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(5, 4, 12, .12), rgba(5, 4, 12, .78));
}

.disc-case-favorite .disc-case-top,
.disc-case-favorite .disc-case-label,
.disc-case-favorite em {
  position: relative;
  z-index: 2;
}

.disc-case-favorite .disc-case-label {
  max-height: 112px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.disc-case-favorite .disc-case-label small {
  display: block;
  margin-top: 4px;
}

.disc-case-favorite em {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: rgba(255, 255, 255, .72);
}

.disc-case-favorite em .icon {
  width: 7px;
  height: 7px;
}

.disc-shelf-empty {
  align-items: center;
  justify-content: center;
}

.disc-empty-copy {
  display: grid;
  justify-items: center;
  gap: 8px;
  max-width: 330px;
  text-align: center;
}

.disc-empty-copy > .icon {
  width: 26px;
  height: 26px;
  color: var(--accent);
}

.disc-empty-copy b {
  font-family: var(--font-display);
  font-size: 18px;
}

.disc-empty-copy span {
  color: var(--muted);
  font-size: 12px;
}
.showcase-card {
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

/* Readable favourite discs: wide cases with a poster and a horizontal caption */
.disc-shelf {
  justify-content: flex-start;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  padding-bottom: 6px;
}

.disc-shelf-empty {
  justify-content: center;
  overflow: visible;
}

.disc-case-favorite {
  width: clamp(116px, 12vw, 150px);
  height: 190px;
  flex: 0 0 auto;
  padding: 0;
  transform: translateY(calc((var(--i) % 3) * -3px)) rotate(calc((var(--i) % 5) * -0.5deg));
}

.disc-case-favorite::before {
  background: linear-gradient(180deg, rgba(5, 4, 12, .04) 30%, rgba(5, 4, 12, .9));
}

.disc-case-favorite .disc-case-label {
  position: absolute;
  right: 8px;
  bottom: 24px;
  left: 8px;
  display: block;
  max-height: 48px;
  overflow: hidden;
  color: #fff;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.15;
  text-shadow: 0 1px 4px #000;
  writing-mode: horizontal-tb;
  transform: none;
}

.disc-case-favorite .disc-case-label small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, .7);
  font-family: var(--font-text);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .03em;
}

.disc-case-favorite em {
  right: 8px;
  bottom: 8px;
  font-size: 6px;
}

@media (max-width: 620px) {
  .disc-case-favorite {
    width: 118px;
    height: 170px;
  }
  .disc-case-favorite .disc-case-label {
    font-size: 11px;
  }
}

/* Binder source filters */
.binder-source-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
}

.binder-source-filters .chip {
  gap: 7px;
  height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.binder-source-filters .chip:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.binder-source-filters .chip.is-active {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  background: var(--primary-soft);
  color: var(--text);
}

.binder-source-filters .chip-count {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  font-size: 9px;
}

@media (max-width: 620px) {
  .binder-source-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: none;
  }
  .binder-source-filters::-webkit-scrollbar {
    display: none;
  }
  .binder-source-filters .chip {
    flex: 0 0 auto;
  }
}

/* Animated profile pets */
.pet-sprite {
  position: relative;
  display: block;
  width: var(--pet-size, 120px);
  height: var(--pet-size, 120px);
  padding: 0;
  border: 0;
  background-color: transparent;
  background-image: var(--pet-image);
  background-repeat: no-repeat;
  background-size: calc(var(--pet-size, 120px) * 7) var(--pet-size, 120px);
  image-rendering: pixelated;
  cursor: pointer;
  filter: drop-shadow(0 7px 7px rgba(0, 0, 0, .42));
  transition: transform .16s ease, filter .16s ease;
}

button.pet-sprite:hover {
  transform: translateY(-3px);
  filter: drop-shadow(0 11px 9px rgba(0, 0, 0, .5));
}

button.pet-sprite:active {
  transform: translateY(0) scale(.96);
}

.pet-sprite-shadow {
  position: absolute;
  right: 22%;
  bottom: 7%;
  left: 22%;
  height: 8%;
  border-radius: 50%;
  background: rgba(0, 0, 0, .26);
  filter: blur(3px);
  pointer-events: none;
}

.profile-pet-slot {
  position: absolute;
  right: clamp(18px, 4vw, 48px);
  bottom: 9px;
  z-index: 4;
  pointer-events: none;
}

.profile-pet-slot .pet-sprite {
  pointer-events: auto;
}

.profile-pet-slot .pet-sprite::after {
  content: 'Погладить';
  position: absolute;
  bottom: calc(100% - 4px);
  left: 50%;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 8px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-50%) translateY(3px);
  transition: opacity .16s, transform .16s;
  pointer-events: none;
}

.profile-pet-slot .pet-sprite:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Pet picker */
.pet-picker {
  display: grid;
  gap: 13px;
}

.pet-picker-grid {
  display: grid;
  gap: 8px;
}

.pet-choice {
  position: relative;
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s, background .16s, transform .16s;
}

.pet-choice:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.pet-choice.is-active {
  border-color: var(--pet-accent, var(--primary));
  background: var(--primary-soft);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--pet-accent, var(--primary)) 16%, transparent);
}

.pet-choice-art {
  display: grid;
  place-items: center;
  width: 100px;
  height: 100px;
}

.pet-choice-art .pet-sprite {
  pointer-events: none;
}

.pet-choice-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.pet-choice-copy b {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.1;
}

.pet-choice-copy small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.pet-choice-check {
  position: absolute;
  top: 9px;
  right: 9px;
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 50%;
  background: var(--pet-accent, var(--primary));
  color: #fff;
}

.pet-choice-check .icon {
  width: 11px;
  height: 11px;
}

.pet-picker-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.pet-picker-note .icon {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--primary);
}

.pet-picker-modal {
  width: min(560px, calc(100vw - 24px));
}

@media (max-width: 620px) {
  .profile-pet-slot {
    right: 8px;
    bottom: 13px;
    transform: scale(.76);
    transform-origin: bottom right;
  }
  .profile-pet-slot .pet-sprite::after {
    display: none;
  }
  .pet-choice {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 8px;
    padding: 8px;
  }
  .pet-choice-art {
    width: 78px;
    height: 78px;
  }
  .pet-choice-art .pet-sprite {
    transform: scale(.78);
    transform-origin: center;
  }
  .pet-choice-copy b {
    font-size: 17px;
  }
}

.profile-pet-empty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px dashed rgba(255, 255, 255, .3);
  border-radius: 999px;
  background: rgba(10, 8, 20, .45);
  color: rgba(255, 255, 255, .75);
  font: inherit;
  font-size: 9px;
  font-weight: 700;
  pointer-events: auto;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.profile-pet-empty:hover {
  border-style: solid;
  border-color: var(--primary);
  color: #fff;
}

.profile-pet-empty .icon {
  width: 13px;
  height: 13px;
}

.pet-choice-check {
  font-size: 12px;
  line-height: 1;
}
