html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
  background: var(--ff-bg);
}

body {
  margin-bottom: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--ff-bg);
  color: #e7ecf5;
}

body > header,
body > .site-footer {
  flex: 0 0 auto;
}

body > #layoutContainer {
  flex: 1 0 auto;
  width: 100%;
}

.home-index-page .navbar {
  margin-bottom: 0 !important;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

:root {
  --ff-bg: #0f1115;
  --ff-surface: #171a21;
  --ff-surface-2: #1c2028;
  --ff-border: #2a303b;
  --ff-text: #e7ecf5;
  --ff-muted: #a8b0bf;
  --ff-link: #8ec8ff;
  --ff-link-hover: #b5dcff;
}

a {
  color: var(--ff-link);
}

a:hover {
  color: var(--ff-link-hover);
}

.ff-kick-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  background-color: currentColor;
  -webkit-mask-image: url('/icons/Kick.svg');
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: url('/icons/Kick.svg');
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.navbar,
.footer,
.dropdown-menu,
.card,
.list-group-item,
.toast,
.modal-content {
  background-color: var(--ff-surface) !important;
  color: var(--ff-text) !important;
  border-color: var(--ff-border) !important;
}

.dropdown-item,
.dropdown-header,
.toast-header,
.toast-body,
.text-muted,
small {
  color: var(--ff-muted) !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: rgba(255, 255, 255, 0.06) !important;
  color: var(--ff-text) !important;
}

.form-control,
.form-select,
.input-group-text {
  background-color: var(--ff-surface-2) !important;
  border-color: var(--ff-border) !important;
  color: var(--ff-text) !important;
}

.form-control::placeholder {
  color: var(--ff-muted) !important;
}

.bg-white,
.bg-body-tertiary {
  background-color: var(--ff-surface) !important;
}

.border-top,
.border-bottom,
.border {
  border-color: var(--ff-border) !important;
}

.site-footer.footer,
.site-footer {
  position: static;
  bottom: auto;
  width: 100%;
  white-space: normal;
  line-height: normal;
}

.site-footer {
  margin-top: var(--site-footer-gap, clamp(1.75rem, 3.5vw, 3rem));
  border-top: 1px solid var(--ff-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)),
    var(--ff-surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  color: var(--ff-muted);
}

.home-index-page .site-footer {
  margin-top: 0;
}

.settings-layout-page .site-footer {
  margin-top: var(--site-footer-gap, clamp(1rem, 2.5vw, 1.75rem));
}

.swipe-layout-body #layoutContainer,
.profile-theme-page #layoutContainer {
  padding-bottom: 0;
}

.site-footer__inner {
  width: min(1320px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(1.25rem, 2.8vw, 2rem) 0 1.05rem;
  display: grid;
  grid-template-columns: minmax(18rem, 1.2fr) minmax(22rem, 0.8fr);
  gap: clamp(1.5rem, 4vw, 3.75rem);
  align-items: center;
}

.site-footer__summary {
  max-width: 42rem;
}

.site-footer__brand,
.site-footer__brand:hover,
.site-footer__brand:focus-visible {
  color: var(--ff-text);
  text-decoration: none;
}

.site-footer__brand {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-size: 1.05rem;
  font-weight: 750;
  line-height: 1.15;
}

.site-footer__tagline {
  margin: 0;
  max-width: 40rem;
  color: var(--ff-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.site-footer__nav-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.6vw, 1.75rem);
}

.site-footer__group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  gap: 0.36rem;
}

.site-footer__group h2 {
  margin: 0 0 0.2rem;
  color: var(--ff-text);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.site-footer__group a {
  color: var(--ff-muted);
  font-size: 0.88rem;
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.16s ease;
}

.site-footer__group a:hover,
.site-footer__group a:focus-visible {
  color: var(--ff-link-hover);
  text-decoration: none;
}

.site-footer__bottom {
  width: min(1320px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.72rem 0 0.88rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  color: color-mix(in srgb, var(--ff-muted) 76%, var(--ff-bg) 24%);
  font-size: 0.8rem;
}

@media (max-width: 991.98px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .site-footer__nav-grid {
    grid-template-columns: repeat(2, minmax(8rem, 1fr));
  }
}

@media (max-width: 575.98px) {
  .site-footer__nav-grid {
    grid-template-columns: 1fr;
  }

  .site-footer__bottom {
    flex-direction: column;
  }
}

/* Make table surfaces inherit their container/card background in dark mode */
.table {
  --bs-table-bg: transparent;
  --bs-table-striped-bg: rgba(255, 255, 255, 0.02);
  --bs-table-hover-bg: rgba(255, 255, 255, 0.04);
  --bs-table-border-color: var(--ff-border);
  color: var(--ff-text);
}

.table > :not(caption) > * > * {
  background-color: transparent !important;
  color: inherit;
}

/* Browse profile meta table: keep labels flush with username above */
.ff-profile-meta-table > :not(caption) > * > * {
  padding-left: 0 !important;
}

.ff-country-flag {
  display: inline-block;
  width: 1.9rem;
  height: 1.25rem;
  vertical-align: -0.18rem;
  border-radius: 2px;
  object-fit: cover;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.24),
    0 1px 4px rgba(0, 0, 0, 0.25);
}

.ff-profile-meta-table .ff-country-flag {
  width: 2rem;
  height: 1.32rem;
}

/* Shared tier organize toggle look (Profile + Horizontal cards) */
.ff-profile-tier-category-header .form-check-input {
  cursor: pointer;
  transform: scale(1.05);
}

/* Swipe animations (Browse + Swipe pages) */
.swipe-layout-body .swipe-profile,
.swipe-layout-body .browse-profile-card {
  will-change: transform, opacity;
}

.swipe-layout-body .browse-profile-card {
  transition: transform 180ms ease, opacity 180ms ease;
}

.swipe-layout-body .swipe-profile {
  transition: transform 220ms ease, opacity 220ms ease;
}

.profile-username-link,
.profile-username-link:hover,
.profile-username-link:focus {
  text-decoration: none;
}

.swipe-layout-body .swipe-profile #lefColumn .ff-profile-avatar {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.swipe-anim-out-left {
  transform: translateX(-70px) rotate(-2deg);
  opacity: 0;
}

.swipe-anim-out-right {
  transform: translateX(70px) rotate(2deg);
  opacity: 0;
}

/* Browse: horizontal slide + fade only (no rotation) */
.browse-swipe-out-left {
  transform: translateX(-90px);
  opacity: 0;
}

.browse-swipe-out-right {
  transform: translateX(90px);
  opacity: 0;
}

.swipe-anim-in {
  animation: swipeFadeIn 180ms ease-out;
}

@keyframes swipeFadeIn {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Game note popovers (Profile + GameStatus) */
.ff-note-host {
  position: relative;
}

/* Profile game covers: denser responsive grid with 5 columns on desktop */
.ff-profile-game-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 576px) {
  .ff-profile-game-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .ff-profile-game-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .ff-profile-game-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.ff-profile-game-grid .card[data-game-id] {
  width: 100%;
  height: 100%;
}

.ff-profile-game-grid .card[data-game-id] img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 17 / 25;
  object-fit: cover;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.9rem;
    align-items: start;
    align-content: start;
}

@media (max-width: 1199.98px) {
  .game-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .game-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .game-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
  }
}

@media (max-width: 479.98px) {
  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.game-grid > .card[data-game-id],
.game-grid > .selected-game-tile {
    width: 100%;
}

.drop-zone {
    background: rgba(255, 255, 255, 0.03);
    min-height: 200px;
}

/* Showcase cards should keep their own surface so uneven rows don't expose page background */
.ff-profile-game-grid > .card[data-game-id] {
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

/* Video cards should match the framed showcase treatment used by the other profile cards */
.ff-video-card {
  height: auto !important;
  align-self: start;
  display: block;
  overflow: hidden;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.ff-video-poster-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 17 / 25;
  object-fit: cover;
  border: 0 !important;
  box-shadow: none !important;
}

.ff-video-card .card-img-placeholder.emoji,
.ff-music-card .card-img-placeholder.emoji {
  flex: 1 0 auto;
}

.ff-video-card .card-img-placeholder.emoji {
  border: 0 !important;
  box-shadow: none !important;
}

.ff-artwork-placeholder {
  width: 100%;
  min-height: 10rem;
  aspect-ratio: 2 / 3;
  background-color: #20242d !important;
  color: #d8dee9;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 0 !important;
  padding: 0.75rem;
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.45rem;
  text-align: center;
  overflow: hidden;
}

.ff-artwork-placeholder--square {
  aspect-ratio: 1 / 1;
}

.ff-artwork-placeholder i {
  font-size: 1.8rem;
  line-height: 1;
  opacity: 0.72;
}

.ff-artwork-placeholder span {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  font-size: 0.88rem;
  line-height: 1.18;
  color: #e8edf7;
}

/* Square corners for game/video/music cards and covers */
.card[data-game-id],
.ff-video-card,
.ff-music-card,
.selected-game-tile,
.selected-game-card {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.card[data-game-id] img,
.ff-video-card img,
.ff-music-card img,
.selected-game-tile img,
.selected-game-card img,
.card[data-game-id] .card-img-placeholder.emoji,
.ff-video-card .card-img-placeholder.emoji,
.ff-music-card .card-img-placeholder.emoji,
.selected-game-tile .card-img-placeholder.emoji,
.selected-game-card .card-img-placeholder.emoji {
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

.card[data-game-id] img,
.ff-video-card img,
.ff-music-card img,
.selected-game-tile img,
.selected-game-card img {
  aspect-ratio: 17 / 25;
  object-fit: cover;
  box-shadow: none !important;
}

.ff-note-host.ff-note-open,
.ff-note-host.ff-review-open {
  z-index: 2000;
}

.ff-note-trigger,
.ff-review-trigger,
.ff-backseat-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.2rem 0.4rem;
  opacity: 0.9;
  background-color: rgba(15, 18, 24, 0.62) !important;
  border-color: rgba(15, 18, 24, 0.84) !important;
  color: #f8f9fa !important;
}

.ff-card-actions {
  --ff-card-action-size: 2rem;
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 0.35rem;
  z-index: 3;
}

.ff-card-actions--profile {
  width: calc((var(--ff-card-action-size) * 2) + 0.35rem);
  height: calc((var(--ff-card-action-size) * 3) + 0.7rem);
}

.ff-card-actions--profile .ff-action-tier {
  position: absolute;
  top: 0;
  right: 0;
}

.ff-card-actions--profile .ff-action-review {
  position: absolute;
  top: 0;
  right: calc(var(--ff-card-action-size) + 0.35rem);
}

/* Auth: high-contrast Google button for dark theme */
.google-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  border: 1px solid rgba(230, 236, 245, 0.72) !important;
  background: transparent !important;
  color: #e9eef7 !important;
  font-weight: 600;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.google-auth-btn:hover,
.google-auth-btn:focus-visible {
  background: #f7faff !important;
  border-color: #f7faff !important;
  color: #111827 !important;
}

.google-auth-btn .bi-google {
  font-size: 1.05rem;
  line-height: 1;
}

.google-auth-mark {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  line-height: 1;
  color: #ffffff;
  background: conic-gradient(#4285f4 0 25%, #34a853 25% 50%, #fbbc05 50% 75%, #ea4335 75% 100%);
}

/* If review is the only visible action (no tier + no player card button),
   place it in the normal top-right corner. */
.ff-card-actions--profile .ff-action-review:only-child {
  right: 0;
}

.ff-card-actions--profile .ff-action-card {
  position: absolute;
  top: 0;
  right: 0;
}

.ff-card-actions--profile.ff-has-tier .ff-action-card {
  top: calc(var(--ff-card-action-size) + 0.35rem);
}

.ff-card-actions--profile .ff-action-backseat {
  position: absolute;
  top: 0;
  right: 0;
}

.ff-card-actions--profile.ff-has-tier .ff-action-backseat,
.ff-card-actions--profile.ff-has-card .ff-action-backseat {
  top: calc(var(--ff-card-action-size) + 0.35rem);
}

.ff-card-actions--profile.ff-has-tier.ff-has-card .ff-action-backseat {
  top: calc((var(--ff-card-action-size) * 2) + 0.7rem);
}

.ff-card-actions .ff-note-trigger,
.ff-card-actions .ff-review-trigger,
.ff-card-actions .ff-backseat-trigger,
.ff-card-actions .ff-tier-trigger {
  margin: 0 !important;
}

.ff-card-actions .ff-note-trigger,
.ff-card-actions .ff-review-trigger,
.ff-card-actions .ff-backseat-trigger,
.ff-card-actions .ff-tier-trigger {
  width: var(--ff-card-action-size);
  height: var(--ff-card-action-size);
}

.ff-card-actions .ff-tier-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  line-height: 1;
}

.ff-card-actions .ff-note-trigger,
.ff-card-actions .ff-review-trigger,
.ff-card-actions .ff-backseat-trigger {
  padding: 0 !important;
  line-height: 1;
}

/* Shared remove trigger for game/video/music selected cards.
   The visible "X" and clickable hitbox are centered by the same element. */
.ff-remove-trigger {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translateX(-50%);
  width: 2.75rem;
  height: 2.75rem;
  padding: 0 !important;
  display: grid !important;
  place-items: center;
  border: 0 !important;
  border-radius: 999px;
  background: transparent !important;
  box-shadow: none !important;
  color: #fff !important;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  z-index: 4;
}

.ff-remove-trigger i,
.ff-remove-trigger .bi {
  display: none !important;
}

.ff-remove-trigger::before {
  content: "+";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  font-size: 3rem;
  line-height: 1;
  color: #fff;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
  pointer-events: none;
}

.ff-remove-trigger:hover,
.ff-remove-trigger:focus-visible,
.ff-remove-trigger:active {
  background: transparent !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: none !important;
}

.ff-tier-trigger,
.ff-tier-badge {
  min-width: 1.9rem;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.2rem !important;
  color: #ffffff !important;
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.9),
    0 0 4px rgba(255, 255, 255, 0.9),
    0 0 8px rgba(255, 255, 255, 0.7),
    0 0 12px rgba(255, 255, 255, 0.5);
}

.ff-tier-trigger {
  background-color: rgba(15, 18, 24, 0.62) !important;
  border-color: rgba(15, 18, 24, 0.84) !important;
}

.ff-tier-trigger[data-editable="false"] {
  cursor: default !important;
  pointer-events: none;
  user-select: none;
}

.ff-tier-trigger[data-editable="false"]:hover,
.ff-tier-trigger[data-editable="false"]:active,
.ff-tier-trigger[data-editable="false"]:focus {
  transform: none !important;
  box-shadow: none !important;
}

.ff-tier-trigger[data-tier="1"] { color: #ff3b30 !important; }
.ff-tier-trigger[data-tier="2"] { color: #ff7a1a !important; }
.ff-tier-trigger[data-tier="3"] { color: #ffcc00 !important; }
.ff-tier-trigger[data-tier="4"] { color: #9adf00 !important; }
.ff-tier-trigger[data-tier="5"] { color: #00c853 !important; }
.ff-tier-trigger[data-tier="6"] { color: #00c2ff !important; }
.ff-tier-trigger[data-tier="7"] { color: #2f6bff !important; }
.ff-tier-trigger[data-tier="8"] { color: #6a3dff !important; }
.ff-tier-trigger[data-tier="9"] { color: #c03dff !important; }
.ff-tier-badge[data-tier="1"] { color: #ff3b30 !important; }
.ff-tier-badge[data-tier="2"] { color: #ff7a1a !important; }
.ff-tier-badge[data-tier="3"] { color: #ffcc00 !important; }
.ff-tier-badge[data-tier="4"] { color: #9adf00 !important; }
.ff-tier-badge[data-tier="5"] { color: #00c853 !important; }
.ff-tier-badge[data-tier="6"] { color: #00c2ff !important; }
.ff-tier-badge[data-tier="7"] { color: #2f6bff !important; }
.ff-tier-badge[data-tier="8"] { color: #6a3dff !important; }
.ff-tier-badge[data-tier="9"] { color: #c03dff !important; }

.ff-tier-badge--consecutive,
.ff-tier-badge--consecutive[data-tier] {
  color: #ffffff !important;
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.9),
    0 3px 10px rgba(0, 0, 0, 0.7),
    1px 1px 0 rgba(0, 0, 0, 0.45),
    0 0 4px rgba(255, 255, 255, 0.9),
    0 0 8px rgba(255, 255, 255, 0.7),
    0 0 12px rgba(255, 255, 255, 0.5);
}

.ff-tier-trigger--consecutive,
.ff-tier-trigger--consecutive[data-tier] {
  color: #ffffff !important;
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.9),
    0 0 4px rgba(255, 255, 255, 0.9),
    0 0 8px rgba(255, 255, 255, 0.7),
    0 0 12px rgba(255, 255, 255, 0.5);
}

.ff-tier-trigger[data-editable="false"].ff-tier-trigger--grouped[data-group-role="lead"][data-group-count] {
  min-width: 2.65rem;
  padding: 0 0.35rem !important;
  font-size: 0.95rem !important;
  color: #ffffff !important;
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.9),
    0 0 4px rgba(255, 255, 255, 0.9),
    0 0 8px rgba(255, 255, 255, 0.7),
    0 0 12px rgba(255, 255, 255, 0.5);
}

.ff-tier-trigger[data-editable="false"].ff-tier-trigger--grouped[data-group-role="member"] {
  min-width: 1.9rem !important;
  padding: 0.25rem 0.5rem !important;
  box-shadow: none !important;
  color: #ffffff !important;
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.9),
    0 0 4px rgba(255, 255, 255, 0.9),
    0 0 8px rgba(255, 255, 255, 0.7),
    0 0 12px rgba(255, 255, 255, 0.5);
  line-height: 1;
  opacity: 1;
}

.ff-tier-trigger[data-editable="false"].ff-tier-trigger--grouped[data-group-role="member"] .bi {
  font-size: 1.1rem;
}

.ff-cosmetic-surface .btn-outline-primary,
.ff-cosmetic-surface .btn-outline-secondary,
.ff-cosmetic-surface .btn-outline-success,
.ff-cosmetic-surface .btn-outline-danger {
  border-color: color-mix(in srgb, var(--ff-cosmetic-border) 70%, white 30%) !important;
  color: var(--ff-cosmetic-text) !important;
}

.ff-tier-menu {
  position: absolute;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ff-tier-menu-btn {
  width: var(--ff-card-action-size);
  height: var(--ff-card-action-size);
  min-width: var(--ff-card-action-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  line-height: 1;
}

.ff-tier-menu-btn.active {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 1px;
}

.ff-tier-menu-btn[data-tier="1"] { color: #ff3b30 !important; }
.ff-tier-menu-btn[data-tier="2"] { color: #ff7a1a !important; }
.ff-tier-menu-btn[data-tier="3"] { color: #ffcc00 !important; }
.ff-tier-menu-btn[data-tier="4"] { color: #9adf00 !important; }
.ff-tier-menu-btn[data-tier="5"] { color: #00c853 !important; }
.ff-tier-menu-btn[data-tier="6"] { color: #00c2ff !important; }
.ff-tier-menu-btn[data-tier="7"] { color: #2f6bff !important; }
.ff-tier-menu-btn[data-tier="8"] { color: #6a3dff !important; }
.ff-tier-menu-btn[data-tier="9"] { color: #c03dff !important; }

/* Keep tier ranks on the final white/glowy treatment instead of a rainbow first pass. */
.ff-tier-trigger[data-tier],
.ff-tier-badge[data-tier],
.ff-tier-menu-btn[data-tier] {
  color: #ffffff !important;
}

.ff-rank-hint {
  opacity: 0;
  transform: translateY(-3px);
  max-height: 0;
  margin-bottom: 0;
  overflow: hidden;
  transition: opacity 140ms ease, transform 140ms ease, max-height 140ms ease, margin-bottom 140ms ease;
  color: #b9d3ff;
  font-size: 0.8rem;
  pointer-events: none;
}

.ff-rank-hint.ff-rank-hint--visible {
  opacity: 1;
  transform: translateY(0);
  max-height: 1.2rem;
  margin-bottom: 0.35rem;
}


.ff-note-popover {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.6rem);
  transform: translateX(-50%);
  z-index: 2050;
  width: min(360px, 92vw);
  max-height: min(420px, 70vh);
  overflow: auto;
  background: var(--ff-surface);
  border: 1px solid var(--ff-border);
  border-radius: 0.75rem;
  padding: 0.75rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.ff-note-popover.ff-note-popover--below {
  bottom: auto;
  top: calc(100% + 0.6rem);
}

.ff-note-popover__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.ff-note-popover__title {
  font-size: 0.9rem;
  color: var(--ff-muted);
  margin: 0;
}

.ff-note-popover__body {
  overflow-wrap: anywhere;
  max-height: 240px;
  overflow: auto;
}

.ff-note-popover__body p {
  margin-bottom: 0.4rem;
}

/* Player game card popovers: keep a small inset between content and vertical scrollbar */
.ff-note-popover[aria-label="Player game card"] .ff-note-popover__body {
  scrollbar-gutter: stable;
  padding-right: 0.45rem;
}

.ff-card-sections {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.ff-card-section {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  padding: 0.45rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.5rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    linear-gradient(135deg, rgba(73, 79, 90, 0.94), rgba(39, 44, 53, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 24px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.03);
}

.ff-note-popover[aria-label="Player game card"] .ff-card-section {
  border-color: rgba(158, 201, 255, 0.18);
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.ff-card-section__label {
  margin: 0;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ec9ff;
}

.ff-card-section__value {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.28;
  color: #edf4ff;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.ff-card-section__meta {
  margin: 0;
  font-size: 0.72rem;
  color: #a8b0bf;
}

.ff-note-popover__form {
  display: grid;
  gap: 0.35rem;
}

.ff-note-popover__form > * {
  margin-top: 0;
  margin-bottom: 0;
}

.ff-note-field-label {
  margin-bottom: 0;
  font-size: 0.78rem;
  color: var(--ff-muted);
}

.ff-note-popover__form .ff-note-field-label {
  margin-top: 0.55rem;
}

.ff-note-popover__form .ff-note-field-label:first-child {
  margin-top: 0;
}

.ff-note-popover__form .ff-multiselect {
  margin-bottom: 0;
}

.ff-note-textarea-sm {
  min-height: 72px !important;
  max-height: 30vh !important;
}

.ff-note-popover__timestamp {
  margin: 0;
}

.ff-note-popover textarea {
  width: 100%;
  min-height: 140px;
  max-width: 100%;
  max-height: 50vh;
  resize: vertical;
  box-sizing: border-box;
}

.game-player-count {
  font-size: 0.8rem;
  color: #6b7280;
  text-align: center;
  padding: 6px 4px 2px;
}

/* When a game card is selected/dragged into a drop zone, hide the player-count label */
.drop-zone .game-player-count {
  display: none !important;
}
/* Profile - Politics details */
.politics-details summary {
    cursor: pointer;
    list-style: none;
}

.politics-details summary::-webkit-details-marker {
    display: none;
}

.politics-caret {
    transition: transform 0.15s ease;
    transform: translateY(-1px);
}

.politics-details[open] .politics-caret {
    transform: rotate(90deg) translateX(1px);
}

.home-hero-3d {
  --home-hero-card-gap: 0.75rem;
  --home-hero-model-height: 1;
  --home-hero-model-y: -0.15;
  --home-hero-camera-frame: 1.1;
  position: relative;
  width: 100%;
  min-height: 320px;
  background: transparent;
  overflow: hidden;
}

.home-index-page .home-hero-3d {
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  margin-top: calc(-1 * var(--home-navbar-height, 60px));
  margin-bottom: 0 !important;
}

.home-index-page header {
  position: relative;
  z-index: 5;
}

.home-hero-3d__canvas {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.home-hero-3d.is-model-active .home-hero-3d__canvas {
  opacity: 1;
  pointer-events: auto;
}

.home-hero-3d__wallpaper {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #151820;
  pointer-events: none;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.home-hero-3d__wallpaper img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.home-hero-3d.is-model-active .home-hero-3d__wallpaper {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.home-hero-3d__steps {
  --home-step-side-inset: clamp(2.5rem, 12vw, 12rem);
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.home-hero-3d.is-model-active .home-hero-3d__steps {
  z-index: 2;
}

.home-hero-3d__step-card {
  position: absolute;
  width: max-content;
  max-width: min(31rem, calc(50vw - var(--home-step-side-inset) - 1.5rem));
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: clamp(0.75rem, 1.2vw, 1rem) clamp(0.9rem, 1.5vw, 1.25rem);
  border: 1px solid rgba(111, 255, 163, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(38, 192, 91, 0.28), rgba(20, 135, 68, 0.14)),
    rgba(6, 27, 17, 0.34);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(210, 255, 225, 0.18),
    0 0 30px rgba(55, 214, 112, 0.13);
  color: #ecfff2;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  transform: translateY(0);
  animation: homeStepHover 4.8s ease-in-out infinite;
}

.home-hero-3d__step-card--one {
  left: var(--home-step-side-inset);
  top: clamp(9rem, 28vh, 16rem);
}

.home-hero-3d__step-card--two {
  right: var(--home-step-side-inset);
  top: clamp(16rem, 46vh, 26rem);
  animation-delay: -1.1s;
}

.home-hero-3d__step-card--three {
  left: var(--home-step-side-inset);
  top: clamp(22rem, 62vh, 34rem);
  animation-delay: -2.2s;
}

.home-hero-3d__step-card--four {
  right: var(--home-step-side-inset);
  top: clamp(27rem, 74vh, 40rem);
  max-width: min(18rem, calc(50vw - var(--home-step-side-inset) - 1.5rem));
  justify-content: center;
  font-weight: 900;
  text-transform: lowercase;
  animation-delay: -3.3s;
}

.home-hero-3d__step-number {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(107, 255, 155, 0.2);
  color: #baffcf;
  font-weight: 900;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(190, 255, 209, 0.3);
}

.home-hero-3d__step-text {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: clamp(1rem, 1.45vw, 1.35rem);
  font-weight: 800;
  line-height: 1.05;
}

@keyframes homeStepHover {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.85rem);
  }
}

@media (max-width: 900px) {
  .home-hero-3d {
    --home-hero-model-height: 0.92;
    --home-hero-model-y: 0.03;
    --home-hero-camera-frame: 1.24;
  }

  .home-hero-3d__steps {
    --home-step-side-inset: clamp(1.25rem, 7vw, 4rem);
  }

  .home-hero-3d__step-card {
    max-width: min(22rem, calc(50vw - var(--home-step-side-inset) - 0.75rem));
    padding: 0.7rem 0.8rem;
  }

  .home-hero-3d__step-card--one {
    left: var(--home-step-side-inset);
    top: 18vh;
  }

  .home-hero-3d__step-card--two {
    right: var(--home-step-side-inset);
    top: 38vh;
  }

  .home-hero-3d__step-card--three {
    left: var(--home-step-side-inset);
    top: 56vh;
  }

  .home-hero-3d__step-card--four {
    right: var(--home-step-side-inset);
    top: 72vh;
    max-width: min(13rem, calc(50vw - var(--home-step-side-inset) - 0.75rem));
  }
}

@media (max-width: 575.98px) {
  .home-index-page .home-hero-3d {
    height: 100svh;
    height: 100dvh;
    min-height: 100svh;
    min-height: 100dvh;
    display: block;
  }

  .home-hero-3d {
    --home-hero-model-height: 0.82;
    --home-hero-model-y: 0.1;
    --home-hero-camera-frame: 1.4;
  }

  .home-hero-3d__canvas {
    grid-row: auto;
  }

  .home-hero-3d__steps {
    --home-step-side-inset: 1rem;
    position: absolute;
    inset: auto 0 0;
    z-index: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--home-hero-card-gap);
    width: min(100% - 1.35rem, 26rem);
    margin: 0 auto;
    padding: 0 0 clamp(1rem, 4svh, 1.65rem);
  }

  .home-hero-3d__step-card {
    position: static;
    width: 100%;
    justify-content: flex-start;
    gap: 0.55rem;
    max-width: none;
    padding: 0.58rem 0.72rem;
    animation-name: homeStepHoverMobile;
    animation-duration: 5.4s;
  }

  .home-hero-3d__step-card--one {
    justify-self: start;
    width: min(100%, 18rem);
  }

  .home-hero-3d__step-card--two {
    justify-self: end;
    width: min(100%, 17rem);
  }

  .home-hero-3d__step-card--three {
    justify-self: start;
    width: min(100%, 19rem);
  }

  .home-hero-3d__step-card--four {
    justify-self: end;
    width: min(100%, 9rem);
    max-width: none;
  }

  .home-hero-3d__step-number {
    width: 1.65rem;
    height: 1.65rem;
  }

  .home-hero-3d__step-text {
    font-size: clamp(0.92rem, 4.1vw, 1.05rem);
  }

}

@media (max-width: 380px) {
  .home-hero-3d__steps {
    width: calc(100% - 1rem);
    padding-bottom: 0.8rem;
  }

  .home-hero-3d__step-card {
    padding: 0.5rem 0.62rem;
  }
}

@keyframes homeStepHoverMobile {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.38rem);
  }
}

.home-origin-heatmap {
  flex: 1 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(23, 26, 33, 0.96), rgba(13, 16, 22, 0.98));
}

.home-bottom-viewport {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.home-origin-heatmap__inner {
  width: min(1320px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0;
}

.home-origin-heatmap__header,
.home-origin-heatmap__body {
  display: grid;
}

.home-origin-heatmap__header {
  margin-bottom: 1rem;
}

.home-origin-heatmap__eyebrow {
  margin: 0 0 0.35rem;
  color: #79d8c5;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home-origin-heatmap__title {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.65rem;
  color: #f4f8ff;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 0.96;
}

.home-origin-heatmap__title-count {
  color: #93c5fd;
  font-size: 1em;
  font-weight: 800;
  line-height: 1;
}

.home-origin-heatmap__body {
  --home-origin-card-height: clamp(28rem, 32vw, 36rem);
  grid-template-columns: minmax(0, 1fr);
}

.home-origin-heatmap__map {
  --home-origin-map-inset: 1.1rem;
  box-sizing: border-box;
  position: relative;
  height: var(--home-origin-card-height);
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 24%, rgba(59, 130, 246, 0.16), transparent 24rem),
    linear-gradient(180deg, #101722, #0c1119);
}

.home-origin-heatmap__map.jvm-container {
  height: var(--home-origin-card-height) !important;
  width: 100% !important;
}

.home-origin-heatmap__map .jvm-container,
.home-origin-heatmap__map > svg {
  position: absolute;
  inset: var(--home-origin-map-inset);
  height: calc(100% - (var(--home-origin-map-inset) * 2)) !important;
  width: calc(100% - (var(--home-origin-map-inset) * 2)) !important;
  border-radius: 6px;
}

.home-origin-heatmap__map .jvm-container svg {
  display: block;
  width: 100%;
  height: 100%;
  margin-inline: auto;
}

.home-origin-heatmap__map > svg {
  display: block;
  max-width: none;
  overflow: visible;
  transform: translate(-1.125rem, -1.125rem) scale(0.96);
  transform-origin: center;
}

.home-origin-heatmap__status {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #c7d6e9;
  font-weight: 600;
}

.home-origin-heatmap__rankings {
  box-sizing: border-box;
  display: block;
  margin-top: 1.25rem;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.home-origin-heatmap__countries-card {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.9rem 0.65rem 0.75rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.home-origin-heatmap__rankings-title {
  margin: 0;
  padding: 0 0.35rem 0 0;
  color: #dfe8f7;
  font-size: 1rem;
  font-weight: 700;
}

.home-origin-heatmap__rankings-list {
  counter-reset: origin-country-rank;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  gap: 0.3rem 0.6rem;
  align-content: start;
  min-height: 0;
  max-height: 16rem;
  overflow: auto;
  scrollbar-gutter: stable both-edges;
  margin: 0;
  padding: 0 0.25rem 0 0;
  border: 0;
  background: transparent;
  list-style: none;
}

.home-origin-heatmap__rankings-list li {
  counter-increment: origin-country-rank;
  display: grid;
  grid-template-columns: 1.9rem minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: baseline;
  color: #aab8ca;
  border-radius: 6px;
  cursor: default;
  margin: 0;
  padding: 0.25rem 0.35rem;
  transition: background-color 120ms ease, color 120ms ease;
}

.home-origin-heatmap__rankings-list li::before {
  content: counter(origin-country-rank) ".";
  color: #9ca3af;
  font-weight: 800;
  text-align: right;
}

.home-origin-heatmap__rankings-list span,
.home-origin-heatmap__rankings-list strong {
  display: block;
}

.home-origin-heatmap__rankings-list span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #eef4ff;
  line-height: 1.15;
}

.home-origin-heatmap__rankings-list strong {
  color: #93c5fd;
  text-align: right;
}

.home-origin-heatmap__rankings-list li:hover,
.home-origin-heatmap__rankings-list li.is-origin-hovered {
  background: rgba(147, 197, 253, 0.1);
  color: #dbeafe;
}

.home-origin-heatmap__rankings-list li:hover span,
.home-origin-heatmap__rankings-list li.is-origin-hovered span {
  color: #ffffff;
}

.home-origin-heatmap__region-hover {
  fill: #dbeafe !important;
  stroke: #f8fbff !important;
  stroke-width: 1.1 !important;
}

.home-origin-heatmap__legend {
  position: absolute;
  left: calc(var(--home-origin-map-inset) + 0.7rem);
  bottom: calc(var(--home-origin-map-inset) + 0.7rem);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-width: min(9rem, calc(100% - ((var(--home-origin-map-inset) + 0.7rem) * 2)));
  padding: 0.5rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(9, 12, 18, 0.78);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
  pointer-events: auto;
}

.home-origin-heatmap__legend-item {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  width: 100%;
  gap: 0.28rem;
  color: #eef4ff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: default;
  margin: 0;
  padding: 0.2rem 0.25rem;
  border-radius: 4px;
  outline: 1px solid transparent;
  transition: background-color 120ms ease, color 120ms ease, outline-color 120ms ease;
}

.home-origin-heatmap__legend-item:hover,
.home-origin-heatmap__legend-item:focus-visible,
.home-origin-heatmap__legend-item.is-origin-legend-hovered {
  background: rgba(147, 197, 253, 0.16);
  color: #ffffff;
  outline-color: rgba(219, 234, 254, 0.4);
}

.home-origin-heatmap__legend-swatch {
  width: 0.7rem;
  height: 0.7rem;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.22);
}

.home-origin-heatmap__map[data-origin-legend-bucket] .jvm-region,
.home-origin-heatmap__map[data-origin-legend-bucket] .jvm-marker {
  opacity: 0.42;
}

.home-origin-heatmap__bucket-hover {
  opacity: 1 !important;
  stroke: #f8fbff !important;
  stroke-width: 1.25 !important;
  filter: drop-shadow(0 0 7px rgba(248, 251, 255, 0.7));
}

.jvm-marker.home-origin-heatmap__bucket-hover {
  fill-opacity: 1 !important;
  stroke-opacity: 1 !important;
  stroke-width: 2.6 !important;
  r: 5;
}

.home-origin-heatmap__hover-beacon {
  position: absolute;
  z-index: 2;
  width: 0.85rem;
  height: 0.85rem;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.home-origin-heatmap__hover-beacon::before,
.home-origin-heatmap__hover-beacon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.home-origin-heatmap__hover-beacon::before {
  border: 2px solid rgba(248, 251, 255, 0.95);
  background: var(--origin-beacon-color, #60a5fa);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.28), 0 0 16px rgba(147, 197, 253, 0.8);
}

.home-origin-heatmap__hover-beacon::after {
  border: 1px solid rgba(147, 197, 253, 0.8);
  animation: home-origin-hover-beacon 1100ms ease-out infinite;
}

@keyframes home-origin-hover-beacon {
  from {
    opacity: 0.85;
    transform: scale(1);
  }

  to {
    opacity: 0;
    transform: scale(2.8);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-origin-heatmap__hover-beacon::after {
    animation: none;
    opacity: 0;
  }
}

.home-origin-heatmap__map--fallback {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(5rem, 1fr));
  align-content: center;
  gap: 0.7rem;
  padding: 1.25rem;
}

.home-origin-heatmap__fallback-country {
  min-height: 4.5rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(37, 99, 235, var(--origin-alpha));
}

.home-origin-heatmap__fallback-country span,
.home-origin-heatmap__fallback-country strong {
  display: block;
  line-height: 1;
}

.home-origin-heatmap__fallback-country span {
  color: #091017;
  font-weight: 800;
}

.home-origin-heatmap__fallback-country strong {
  color: #f8fbff;
}

.jvm-tooltip {
  position: absolute !important;
  z-index: 10 !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 8px !important;
  background: rgba(9, 12, 18, 0.95) !important;
  color: #f3f7ff !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

@media (max-width: 767.98px) {
  .home-origin-heatmap__header,
  .home-origin-heatmap__body,
  .home-origin-heatmap__rankings {
    grid-template-columns: 1fr;
  }

  .home-origin-heatmap__body {
    --home-origin-card-height: 23rem;
  }

  .home-origin-heatmap__rankings-list {
    padding-left: 0;
  }
}

.admin-cosmetics-page {
  --ff-cosmetic-page-bg: rgba(8, 12, 18, 0.98);
  --ff-cosmetic-page-panel: rgba(12, 17, 25, 0.98);
  --ff-cosmetic-page-panel-2: rgba(10, 14, 21, 0.98);
  position: relative;
}

.admin-cosmetics-image-preload {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  inset: 0 auto auto 0;
}

.admin-cosmetics-image-preload img {
  display: block;
  width: 1px;
  height: 1px;
}

.admin-cosmetics-hero,
.admin-cosmetics-current,
.admin-preview-frame,
.admin-cosmetic-cardlet {
  background: var(--ff-cosmetic-page-panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-cosmetics-eyebrow {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #92b7ff;
  font-size: 0.8rem;
  font-weight: 700;
}

.admin-preview-stack {
  display: grid;
  gap: 1.5rem;
}

.admin-preview-frame {
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.admin-cosmetic-preview {
  --ff-cosmetic-border: rgba(109, 199, 255, 0.9);
  --ff-cosmetic-border-highlight: #d7f3ff;
  --ff-cosmetic-surface-start: #102237;
  --ff-cosmetic-surface-end: #08131f;
  --ff-cosmetic-page-bg-image: none;
  --ff-cosmetic-card-bg-image: none;
  --ff-cosmetic-horizontal-image: none;
  --ff-cosmetic-horizontal-size: cover;
  --ff-cosmetic-horizontal-position: center center;
  --ff-cosmetic-horizontal-repeat: no-repeat;
  --ff-cosmetic-bg-size: cover;
  --ff-cosmetic-bg-position: center;
  --ff-cosmetic-bg-repeat: no-repeat;
  --ff-cosmetic-accent: #7ae2ff;
  --ff-cosmetic-glow: rgba(84, 192, 255, 0.36);
  --ff-cosmetic-text: #f5fbff;
  --ff-cosmetic-muted: #b9d7ea;
  --ff-cosmetic-text-shadow:
    -1px -1px 0 rgba(35, 6, 6, 0.95),
    1px -1px 0 rgba(35, 6, 6, 0.95),
    -1px 1px 0 rgba(35, 6, 6, 0.95),
    1px 1px 0 rgba(35, 6, 6, 0.95),
    0 2px 8px rgba(0, 0, 0, 0.55);
  --ff-cosmetic-border-shadow:
    0 0 0 1px rgba(35, 6, 6, 0.95),
    0 2px 8px rgba(0, 0, 0, 0.55);
  --ff-cosmetic-image-shadow:
    0 0 0 1px rgba(35, 6, 6, 0.95),
    0 2px 8px rgba(0, 0, 0, 0.55);
  position: relative;
  padding: 0.5rem;
  border-radius: 1.4rem;
  background: var(--ff-cosmetic-page-panel-2);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 22px 65px -28px var(--ff-cosmetic-glow),
    0 26px 60px rgba(0, 0, 0, 0.24);
}

.admin-cosmetic-preview[data-preview-surface="horizontal"] {
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.admin-cosmetic-preview[data-preview-surface="vertical"] {
  width: min(100%, 1440px);
  margin: 0 auto;
  min-height: min(100svh, 900px);
  max-height: min(100svh, 900px);
  overflow: auto;
  padding: 1.5rem 1rem 1rem;
  border-radius: 0;
  background:
    var(--ff-cosmetic-page-bg-image),
    linear-gradient(135deg, var(--ff-cosmetic-surface-start), var(--ff-cosmetic-surface-end));
  background-position: var(--ff-cosmetic-bg-position);
  background-repeat: var(--ff-cosmetic-bg-repeat);
  background-size: var(--ff-cosmetic-bg-size);
  background-attachment: scroll;
  box-shadow: none;
}

.admin-cosmetic-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, var(--ff-cosmetic-border-highlight), var(--ff-cosmetic-border), rgba(255, 255, 255, 0.18));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.admin-cosmetic-preview[data-preview-surface="horizontal"]::before {
  display: none;
}

.admin-cosmetic-preview[data-preview-surface="vertical"]::before {
  display: none;
}

.admin-cosmetic-preview .swipe-profile {
  margin-top: 0 !important;
}

.admin-cosmetic-preview .container {
  max-width: 100%;
}

.admin-cosmetic-preview[data-preview-surface="vertical"] > .swipe-profile {
  padding-top: 0.8rem;
}

.admin-cosmetic-preview[data-preview-surface="vertical"] > .swipe-profile > .row > .col-md-8 > .mb-4 {
  background: transparent !important;
}

.admin-cosmetic-preview[data-preview-surface="horizontal"] > .browse-profile-card .card:not(.ff-note-host):not(.ff-video-card):not(.ff-music-card),
.admin-cosmetic-preview[data-preview-surface="vertical"] #lefColumn > .card,
.admin-cosmetic-preview[data-preview-surface="vertical"] > .swipe-profile > .row > .col-md-8 > .mb-4 > .card:not(.ff-note-host):not(.ff-video-card):not(.ff-music-card),
.admin-cosmetic-preview[data-preview-surface="vertical"] #politics.card {
  background:
    none,
    var(--ff-cosmetic-card-surface, linear-gradient(135deg, var(--ff-cosmetic-surface-start), var(--ff-cosmetic-surface-end))) !important;
  background-position: var(--ff-cosmetic-bg-position) !important;
  background-repeat: var(--ff-cosmetic-bg-repeat) !important;
  background-size: var(--ff-cosmetic-bg-size) !important;
  background-blend-mode: normal, normal, normal !important;
  border: 1px solid color-mix(in srgb, var(--ff-cosmetic-border) 48%, rgba(255, 255, 255, 0.04)) !important;
  color: var(--ff-cosmetic-text) !important;
  box-shadow: none;
}

.admin-cosmetic-preview[data-preview-surface="horizontal"] > .browse-profile-card {
  background: linear-gradient(135deg, var(--ff-cosmetic-surface-start), var(--ff-cosmetic-surface-end)) !important;
  border: 1px solid color-mix(in srgb, var(--ff-cosmetic-border) 72%, rgba(255, 255, 255, 0.12)) !important;
  border-radius: 0.375rem !important;
  margin-bottom: 0 !important;
}

.admin-cosmetic-preview[data-preview-surface="vertical"] #lefColumn > .card,
.admin-cosmetic-preview[data-preview-surface="vertical"] > .swipe-profile > .row > .col-md-8 > .mb-4 > .card:not(.ff-note-host):not(.ff-video-card):not(.ff-music-card),
.admin-cosmetic-preview[data-preview-surface="vertical"] #politics.card {
  border-color: color-mix(in srgb, var(--ff-cosmetic-border) 48%, rgba(255, 255, 255, 0.04)) !important;
  border-radius: 0.375rem !important;
  box-shadow: none !important;
}

.admin-cosmetic-preview h1,
.admin-cosmetic-preview h2,
.admin-cosmetic-preview h3,
.admin-cosmetic-preview h4,
.admin-cosmetic-preview h5,
.admin-cosmetic-preview h6,
.admin-cosmetic-preview th,
.admin-cosmetic-preview td,
.admin-cosmetic-preview p,
.admin-cosmetic-preview span,
.admin-cosmetic-preview label,
.admin-cosmetic-preview a {
  color: inherit;
}

.admin-cosmetic-preview .text-muted,
.admin-cosmetic-preview .small,
.admin-cosmetic-preview .card-text,
.admin-cosmetic-preview .ff-availability-card__meta,
.admin-cosmetic-preview .ff-availability-card__subtext {
  color: var(--ff-cosmetic-muted) !important;
  text-shadow: var(--ff-cosmetic-text-shadow);
}

.admin-cosmetic-preview .profile-username-link,
.admin-cosmetic-preview a:not(.btn) {
  color: var(--ff-cosmetic-text);
  text-shadow: var(--ff-cosmetic-text-shadow);
}

.admin-cosmetic-preview h1,
.admin-cosmetic-preview h2,
.admin-cosmetic-preview h3,
.admin-cosmetic-preview h4,
.admin-cosmetic-preview h5,
.admin-cosmetic-preview h6,
.admin-cosmetic-preview th,
.admin-cosmetic-preview td,
.admin-cosmetic-preview p,
.admin-cosmetic-preview span,
.admin-cosmetic-preview label {
  text-shadow: var(--ff-cosmetic-text-shadow);
}

.admin-cosmetic-preview .btn-primary,
.admin-cosmetic-preview .badge.bg-danger,
.admin-cosmetic-preview .badge.text-bg-dark {
  background: linear-gradient(135deg, var(--ff-cosmetic-accent), color-mix(in srgb, var(--ff-cosmetic-accent) 55%, white 45%)) !important;
  border-color: transparent !important;
  color: #081019 !important;
}

.admin-cosmetic-preview .btn-outline-primary,
.admin-cosmetic-preview .btn-outline-secondary,
.admin-cosmetic-preview .btn-outline-success,
.admin-cosmetic-preview .btn-outline-danger {
  border-color: color-mix(in srgb, var(--ff-cosmetic-border) 70%, white 30%) !important;
  color: var(--ff-cosmetic-text) !important;
}

.admin-cosmetic-preview .ff-note-host,
.admin-cosmetic-preview .ff-note-popover {
  background:
    none,
    var(--ff-cosmetic-card-surface, linear-gradient(135deg, var(--ff-cosmetic-surface-start), var(--ff-cosmetic-surface-end))) !important;
  background-position: var(--ff-cosmetic-bg-position) !important;
  background-repeat: var(--ff-cosmetic-bg-repeat) !important;
  background-size: var(--ff-cosmetic-bg-size) !important;
}

.admin-cosmetic-preview .ff-card-section {
  background: var(--ff-cosmetic-section-surface, rgba(255, 255, 255, 0.05)) !important;
}

.admin-cosmetic-preview[data-preview-surface="horizontal"] .table,
.admin-cosmetic-preview[data-preview-surface="vertical"] #lefColumn .table,
.admin-cosmetic-preview[data-preview-surface="vertical"] .ff-availability-card .table,
.admin-cosmetic-preview[data-preview-surface="vertical"] > .swipe-profile > .row > .col-md-8 > .mb-4 > .card:not(.ff-note-host):not(.ff-video-card):not(.ff-music-card) .table,
.admin-cosmetic-preview[data-preview-surface="vertical"] #politics.card .table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--ff-cosmetic-text);
  --bs-table-border-color: rgba(255, 255, 255, 0.08);
}

.admin-cosmetic-preview[data-preview-surface="horizontal"] img.rounded,
.admin-cosmetic-preview[data-preview-surface="vertical"] .card-img-top {
  box-shadow: var(--ff-cosmetic-image-shadow);
}

.swipe-profile.ff-cosmetic-profile-shell .ff-profile-avatar,
.browse-profile-card.ff-cosmetic-surface .ff-profile-avatar {
  box-shadow:
    0 7px 16px rgba(0, 0, 0, 0.42),
    0 14px 30px rgba(0, 0, 0, 0.28) !important;
}

.admin-cosmetic-preview .ff-video-poster-img,
.admin-cosmetic-preview .ff-music-card img,
.admin-cosmetic-preview .ff-game-card img,
.admin-cosmetic-preview .profile-game-card img,
.admin-cosmetic-preview .selected-game-tile img {
  box-shadow: none !important;
}

.admin-cosmetic-preview .ff-note-popover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.admin-cosmetic-preview .ff-cosmetic-transparent-panels,
.admin-cosmetic-preview .ff-cosmetic-transparent-panels .card:not(.ff-note-host):not(.ff-video-card):not(.ff-music-card):not(.ff-availability-card),
.admin-cosmetic-preview .ff-cosmetic-transparent-panels #politics.card,
.admin-cosmetic-preview .ff-cosmetic-transparent-panels .card.ff-availability-card,
.admin-cosmetic-preview .ff-cosmetic-transparent-panels .ff-note-host,
.admin-cosmetic-preview .ff-cosmetic-transparent-panels .ff-note-popover,
.admin-cosmetic-preview .ff-cosmetic-transparent-panels .ff-card-section {
  border-color: var(--ff-cosmetic-emphasis-border, color-mix(in srgb, var(--ff-cosmetic-border) 70%, white 30%)) !important;
  box-shadow: var(--ff-cosmetic-border-shadow) !important;
}

.admin-cosmetic-preview .ff-cosmetic-transparent-availability .card.ff-availability-card {
  border-color: var(--ff-cosmetic-emphasis-border, color-mix(in srgb, var(--ff-cosmetic-border) 70%, white 30%)) !important;
  box-shadow: var(--ff-cosmetic-border-shadow) !important;
}

.admin-cosmetic-cardlets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  width: 100%;
  max-width: calc((30rem * 3) + (0.9rem * 2));
  justify-content: start;
}

@media (max-width: 1199.98px) {
  .admin-cosmetic-cardlets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: calc((30rem * 2) + 0.9rem);
  }
}

@media (max-width: 767.98px) {
  .admin-cosmetic-cardlets {
    grid-template-columns: 1fr;
    max-width: none;
  }
}

.admin-cosmetic-cardlet {
  display: flex;
  align-items: stretch;
  gap: 0.9rem;
  width: 100%;
  padding: 0.9rem;
  border-radius: 1rem;
  text-align: left;
  color: #edf5ff;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.admin-cosmetic-cardlet:hover,
.admin-cosmetic-cardlet:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.admin-cosmetic-cardlet.is-active {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 20px 42px rgba(0, 0, 0, 0.22);
}

.admin-cosmetic-cardlet__mini {
  flex: 0 0 64px;
  align-self: center;
  width: 64px;
  height: 72px;
  min-width: 64px;
  min-height: 72px;
  max-width: 64px;
  max-height: 72px;
  border-radius: 0.95rem;
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid color-mix(in srgb, var(--ff-border, #ffffff) 70%, rgba(255, 255, 255, 0.18));
}

.admin-cosmetic-cardlet__mini-surface {
  position: absolute;
  inset: 7px;
  border-radius: 0.7rem;
  background:
    linear-gradient(135deg, rgba(10, 14, 18, 0.16), rgba(10, 14, 18, 0.6)),
    var(--ff-bg-image, none),
    linear-gradient(135deg, var(--ff-start, #102237), var(--ff-end, #08131f));
  background-position: var(--ff-bg-position, center);
  background-repeat: var(--ff-bg-repeat, no-repeat);
  background-size: var(--ff-bg-size, cover);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

#cosmeticThemeStatus {
  min-height: 1.25rem;
  font-size: 0.95rem;
}

#cosmeticThemeStatus.is-success {
  color: #8ce7ad;
}

#cosmeticThemeStatus.is-error {
  color: #ffb2b2;
}

#cosmeticThemeStatus.is-info {
  color: #b9d7ea;
}

.admin-cosmetic-cardlet__mini-chip {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  height: 9px;
  border-radius: 999px;
  background: var(--ff-accent, #7ae2ff);
  box-shadow: 0 0 16px var(--ff-glow, rgba(84, 192, 255, 0.36));
}

.admin-cosmetic-cardlet__body,
.admin-cosmetic-cardlet__title-row {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
}

.admin-cosmetic-cardlet__body {
  flex-direction: column;
  gap: 0.45rem;
  padding-top: 0.28rem;
}

.admin-cosmetic-cardlet__title-row {
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 1.5rem;
}

.admin-cosmetic-cardlet__title {
  font-weight: 700;
}

.admin-cosmetic-cardlet__description {
  color: #b9c7d9;
  font-size: 0.92rem;
  line-height: 1.4;
}

.admin-cosmetic-cardlet__swatches {
  display: flex;
  gap: 0.4rem;
}

.admin-cosmetic-cardlet__swatch {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.admin-cosmetic-divider {
  margin: 1.5rem 0;
  border-color: rgba(255, 255, 255, 0.08);
  opacity: 1;
}

.admin-cosmetics-current__swatch {
  --ff-selected-border: #6dc7ff;
  --ff-selected-start: #102237;
  --ff-selected-end: #08131f;
  --ff-selected-accent: #7ae2ff;
  --ff-selected-glow: rgba(84, 192, 255, 0.36);
  --ff-selected-image: none;
  --ff-selected-size: cover;
  --ff-selected-position: center;
  --ff-selected-repeat: no-repeat;
  position: relative;
  width: 64px;
  height: 72px;
  min-width: 64px;
  min-height: 72px;
  flex: 0 0 64px;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid color-mix(in srgb, var(--ff-selected-border) 70%, rgba(255, 255, 255, 0.18));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.admin-cosmetics-current__swatch::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 0.7rem;
  background:
    linear-gradient(135deg, rgba(10, 14, 18, 0.16), rgba(10, 14, 18, 0.6)),
    var(--ff-selected-image),
    linear-gradient(135deg, var(--ff-selected-start), var(--ff-selected-end));
  background-position: var(--ff-selected-position);
  background-repeat: var(--ff-selected-repeat);
  background-size: var(--ff-selected-size);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-cosmetics-current__swatch::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  height: 9px;
  border-radius: 999px;
  background: var(--ff-selected-accent);
  box-shadow: 0 0 16px var(--ff-selected-glow);
}

.admin-cosmetic-cardlet .admin-cosmetic-cardlet__mini {
  border-color: color-mix(in srgb, var(--ff-border) 70%, rgba(255, 255, 255, 0.18));
}

@media (max-width: 991.98px) {
  .admin-preview-frame {
    padding: 0.75rem;
  }

  .admin-cosmetic-preview {
    padding: 0.35rem;
  }
}

/* Critical cosmetic/theme rules duplicated here so first paint does not wait for
   partial-local <style> blocks rendered later in the body. */
.ff-cosmetic-surface {
  --ff-cosmetic-border: rgba(109, 199, 255, 0.9);
  --ff-cosmetic-border-highlight: #d7f3ff;
  --ff-cosmetic-surface-start: #102237;
  --ff-cosmetic-surface-end: #08131f;
  --ff-cosmetic-page-bg-image: none;
  --ff-cosmetic-card-bg-image: none;
  --ff-cosmetic-horizontal-image: none;
  --ff-cosmetic-horizontal-size: cover;
  --ff-cosmetic-horizontal-position: center center;
  --ff-cosmetic-horizontal-repeat: no-repeat;
  --ff-cosmetic-bg-size: cover;
  --ff-cosmetic-bg-position: center;
  --ff-cosmetic-bg-repeat: no-repeat;
  --ff-cosmetic-accent: #7ae2ff;
  --ff-cosmetic-glow: rgba(84, 192, 255, 0.36);
  --ff-cosmetic-text: #f5fbff;
  --ff-cosmetic-muted: #b9d7ea;
  --ff-cosmetic-text-shadow:
    -1px -1px 0 rgba(35, 6, 6, 0.95),
    1px -1px 0 rgba(35, 6, 6, 0.95),
    -1px 1px 0 rgba(35, 6, 6, 0.95),
    1px 1px 0 rgba(35, 6, 6, 0.95),
    0 2px 8px rgba(0, 0, 0, 0.55);
  --ff-cosmetic-border-shadow:
    0 0 0 1px rgba(35, 6, 6, 0.95),
    0 2px 8px rgba(0, 0, 0, 0.55);
  --ff-cosmetic-emphasis-border: color-mix(in srgb, var(--ff-cosmetic-border) 70%, white 30%);
  background: linear-gradient(135deg, var(--ff-cosmetic-surface-start), var(--ff-cosmetic-surface-end)) !important;
  border: 1px solid color-mix(in srgb, var(--ff-cosmetic-border) 72%, rgba(255, 255, 255, 0.12)) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  color: var(--ff-cosmetic-text) !important;
}

.browse-profile-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.browse-profile-card .card-body {
  position: relative;
  z-index: 1;
}

.ff-horizontal-crop-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background-image: var(--ff-cosmetic-horizontal-image);
  background-position: var(--ff-cosmetic-horizontal-position);
  background-repeat: var(--ff-cosmetic-horizontal-repeat);
  background-size: var(--ff-cosmetic-horizontal-size);
  opacity: 1;
}

.ff-cosmetic-surface .card-body,
.ff-cosmetic-surface .table,
.ff-cosmetic-surface .text-muted,
.ff-cosmetic-surface .small,
.ff-cosmetic-surface .card-text,
.ff-cosmetic-surface .ff-availability-card__meta,
.ff-cosmetic-surface .ff-availability-card__subtext,
.ff-cosmetic-profile-shell .card-body,
.ff-cosmetic-profile-shell .table,
.ff-cosmetic-profile-shell .text-muted,
.ff-cosmetic-profile-shell .small,
.ff-cosmetic-profile-shell .card-text,
.ff-cosmetic-profile-shell .ff-availability-card__meta,
.ff-cosmetic-profile-shell .ff-availability-card__subtext {
  color: var(--ff-cosmetic-muted) !important;
  text-shadow: var(--ff-cosmetic-text-shadow);
}

.ff-cosmetic-surface h1,
.ff-cosmetic-surface h2,
.ff-cosmetic-surface h3,
.ff-cosmetic-surface h4,
.ff-cosmetic-surface h5,
.ff-cosmetic-surface h6,
.ff-cosmetic-surface th,
.ff-cosmetic-surface td,
.ff-cosmetic-surface p,
.ff-cosmetic-surface span,
.ff-cosmetic-surface label,
.ff-cosmetic-surface a:not(.btn),
.ff-cosmetic-profile-shell h1,
.ff-cosmetic-profile-shell h2,
.ff-cosmetic-profile-shell h3,
.ff-cosmetic-profile-shell h4,
.ff-cosmetic-profile-shell h5,
.ff-cosmetic-profile-shell h6,
.ff-cosmetic-profile-shell th,
.ff-cosmetic-profile-shell td,
.ff-cosmetic-profile-shell p,
.ff-cosmetic-profile-shell span,
.ff-cosmetic-profile-shell label,
.ff-cosmetic-profile-shell a:not(.btn) {
  color: var(--ff-cosmetic-text) !important;
  text-shadow: var(--ff-cosmetic-text-shadow);
}

.ff-profile-friend-codes-summary,
.ff-profile-friend-codes-summary .bi {
  color: var(--ff-cosmetic-text, var(--ff-text)) !important;
}


.ff-platform-icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    background-color: currentColor;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.ff-copy-row-icon,
.ff-cosmetic-profile-shell .small .ff-copy-row-icon {
    color: var(--ff-text) !important;
}

.match-sidebar {
  flex-shrink: 0;
  width: 280px;
}

.filter-group {
  border-bottom: 1px solid var(--ff-border);
  padding-bottom: 0.5rem;
}

.filter-group > summary.filter-summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.875rem;
  user-select: none;
  color: var(--ff-text);
}

.filter-active-indicator {
  display: none;
  margin-left: 0.35rem;
  color: rgba(13, 110, 253, 0.9);
  font-size: 1em;
  line-height: 1em;
  vertical-align: baseline;
  position: relative;
  top: 0.13em;
}

.filter-active-indicator.is-visible {
  display: inline-block;
}

.filter-active-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.filter-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  min-height: 1.4rem;
  flex: 1 1 auto;
}

.filter-chip-list.is-empty::before {
  content: "No active filters";
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.72rem;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  line-height: 1.15;
  color: #dce9ff;
  background: rgba(13, 110, 253, 0.18);
  border: 1px solid rgba(13, 110, 253, 0.42);
  border-radius: 999px;
  padding: 0.22rem 0.5rem;
  white-space: nowrap;
}

.filter-chip-remove {
  border: none;
  background: transparent;
  color: rgba(220, 233, 255, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  padding: 0;
  line-height: 1;
  cursor: pointer;
}

.filter-chip-remove:hover {
  color: #ffffff;
}

.filter-chip-remove:focus-visible {
  outline: 2px solid rgba(220, 233, 255, 0.9);
  outline-offset: 1px;
  border-radius: 999px;
}

.filter-clear-btn {
  white-space: nowrap;
  font-size: 0.72rem;
}

.filter-group > summary.filter-summary::-webkit-details-marker {
  display: none;
}

.filter-caret {
  font-size: 0.6rem;
  transition: transform 180ms ease;
  opacity: 0.6;
  flex-shrink: 0;
}

.filter-group[open] > summary .filter-caret {
  transform: rotate(90deg);
}

.filter-body {
  padding: 0.25rem 0 0.5rem 1rem;
}

.filter-group summary.filter-summary:hover {
  color: var(--ff-link);
}

.filter-group summary.filter-summary:hover .filter-caret {
  opacity: 1;
}

.exclude-icon {
  background: transparent;
  border: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1;
}

.exclude-icon:hover {
  color: rgba(255, 255, 255, 0.8);
}

.exclude-icon:focus-visible {
  outline: 2px solid rgba(13, 110, 253, 0.8);
  outline-offset: 2px;
  border-radius: 4px;
}

.party-browse-page {
  width: 100%;
  align-items: flex-start;
}

.party-browse-main {
  min-width: 0;
}

.party-list {
  display: grid;
  gap: 1rem;
}

.party-list__item {
  min-width: 0;
}

.party-list .party-browse-card {
  margin-bottom: 0 !important;
}

.party-browse-card {
  border-color: var(--ff-border) !important;
  border-radius: var(--bs-card-border-radius, 0.375rem) !important;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    linear-gradient(135deg, rgba(20, 24, 34, 0.98), rgba(13, 17, 24, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 16px 36px rgba(0, 0, 0, 0.16);
}

.browse-profile-card.party-browse-card,
.browse-profile-card.party-browse-card .card-body {
  border-radius: var(--bs-card-border-radius, 0.375rem) !important;
}

.party-browse-card--mine {
  border-color: var(--ff-border) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 16px 36px rgba(0, 0, 0, 0.16);
}

.party-browse-card__cover {
  display: block;
  width: 148px;
  height: 188px;
  object-fit: cover;
  background: #1c2028;
}

.party-browse-card__cover--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8ea0b8;
  font-size: 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.party-browse-card__layout {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 1.05rem;
  align-items: stretch;
}

.party-browse-card__media-col {
  width: 148px;
  height: 100%;
}

.party-browse-card__media-col > a {
  display: block;
  height: 100%;
}

.party-browse-card__content-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.party-browse-card__top {
  display: flex;
  gap: 0.85rem;
  align-items: start;
  justify-content: space-between;
}

.party-browse-card__identity {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.party-browse-card__game-title {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7da6ff;
}

.party-browse-card .profile-username-link h4 {
  margin-bottom: 0;
  font-size: 1.15rem;
}

.party-browse-card__name-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28em 0.72em;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  border: none;
  cursor: default;
}

.party-browse-card__name-pill--danger {
  background-color: var(--bs-danger);
  color: #fff;
}

.party-browse-card__name-pill--success {
  background-color: rgba(25, 135, 84, 0.15);
  color: var(--bs-success-text-emphasis, #0a3622);
}

.party-browse-card__name-pill--warning {
  background-color: rgba(255, 193, 7, 0.15);
  color: var(--bs-warning-text-emphasis, #664d03);
}

.party-browse-card__name-pill--secondary {
  background-color: rgba(108, 117, 125, 0.15);
  color: var(--bs-secondary-text-emphasis, #2b2d2f);
}

.party-browse-card__name-pill--interactive {
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--ff-text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background-color 0.15s ease;
}

.party-browse-card__name-pill--interactive:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.party-browse-card__member-count {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.party-browse-card__description {
  color: var(--ff-muted);
  line-height: 1.5;
  max-width: none;
  font-size: 0.88rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin-top: -0.05rem;
}

.party-browse-card__bio-block {
  display: grid;
  gap: 0.35rem;
  padding: 0.72rem 0.82rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
}

.party-browse-card__bio-label {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7da6ff;
}

.party-browse-card__chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
}

.party-browse-card__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(168, 85, 247, 0.35);
  background: rgba(168, 85, 247, 0.12);
  color: #d8b4fe;
  font-size: 0.73rem;
  line-height: 1.2;
}

.party-browse-card__chip-action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.22rem 0.68rem;
  border-radius: 999px;
  font-size: 0.73rem;
  line-height: 1.2;
}

.party-browse-card__chip--requirement,
.party-browse-card__chip--auto {
  background: rgba(13, 110, 253, 0.1);
  color: #9ec5fe;
}

.party-browse-card__actions-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.party-browse-card__actions-row--top {
  justify-content: flex-end;
  flex: 0 0 auto;
}

.party-browse-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 0.7rem;
  white-space: nowrap;
}

.party-browse-card__cta--square {
  flex: 0 0 auto;
}

.party-browse-card__cta--primary {
  width: auto;
  padding: 0.45rem 0.8rem;
  font-weight: 600;
}

.party-browse-card__cta .bi {
  font-size: 0.95rem;
}

.party-browse-card__member-count-value {
  line-height: 1;
  font-weight: 600;
}

.party-members-popup .modal-content {
  overflow: hidden;
}

.party-members-popup__body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    linear-gradient(135deg, rgba(20, 24, 34, 0.98), rgba(13, 17, 24, 0.98));
}

.party-members-popup__list {
  display: grid;
}

.party-members-popup__item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  padding: 0.8rem 1rem;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  transition: background-color 0.16s ease, transform 0.16s ease;
}

.party-members-popup__item:last-child {
  border-bottom: none;
}

.party-members-popup__item:hover,
.party-members-popup__item:focus-visible {
  color: inherit;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.party-members-popup__avatar-wrap {
  flex: 0 0 auto;
}

.party-members-popup__avatar-image,
.party-members-popup__avatar-fallback {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
}

.party-members-popup__avatar-image {
  display: block;
  object-fit: cover;
}

.party-members-popup__avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2d3748, #4a5568);
  color: #fff;
}

.party-members-popup__meta {
  min-width: 0;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.15rem;
}

.party-members-popup__title-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.party-members-popup__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.party-members-popup__subtitle {
  color: var(--ff-muted);
  font-size: 0.79rem;
  line-height: 1.25;
}

.party-members-popup__you {
  margin-left: auto;
  color: var(--ff-muted);
  font-size: 0.76rem;
  white-space: nowrap;
}

.party-members-popup__empty,
.party-members-popup__status {
  padding: 1rem;
  text-align: center;
  color: var(--ff-muted);
  font-size: 0.85rem;
}

.party-browse-card .card-body {
  padding: 1rem;
}

.party-browse-card__description--modal {
  font-size: 0.85rem;
}

.party-browse-card .card-body,
.party-browse-card__layout,
.party-browse-card__media-col,
.party-browse-card__media-col > a {
  border-radius: inherit;
}

@media (max-width: 767.98px) {
  .party-browse-card__layout {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 0.85rem;
  }

  .party-browse-card__media-col {
    width: 108px;
  }

  .party-browse-card__cover {
    width: 108px;
    height: 140px;
  }

  .party-browse-card__cta {
    width: 34px;
  }

  .party-browse-card__cta--primary {
    width: auto;
  }


  .party-browse-card__top {
    flex-wrap: wrap;
  }

  .party-browse-card__actions-row--top {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 991.98px) {
  .party-browse-page {
    flex-direction: column;
  }

  .party-browse-main {
    width: 100%;
  }
}

.party-finder-page {
  position: relative;
}

.party-finder-hero,
.party-finder-sidebar,
.party-card,
.party-room__panel,
.party-room__chat-panel {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    linear-gradient(135deg, rgba(25, 30, 42, 0.95), rgba(15, 18, 26, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 22px 50px rgba(0, 0, 0, 0.26);
}

.party-finder-hero {
  position: relative;
  overflow: hidden;
  border-radius: 1.6rem;
  padding: 1.75rem;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
}

.party-finder-hero::before,
.party-room__panel--hero::before,
.party-room__chat-panel::before {
  content: "";
  position: absolute;
  inset: auto;
  width: 18rem;
  height: 18rem;
  border-radius: 999px;
  background: none;
  pointer-events: none;
}

.party-finder-hero::before {
  top: -6rem;
  right: -4rem;
}

.party-finder-hero__copy,
.party-finder-hero__actions {
  position: relative;
  z-index: 1;
}

.party-finder-hero__eyebrow,
.party-finder-sidebar__eyebrow,
.party-room__eyebrow,
.party-room__section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #89b7ff;
}

.party-finder-hero__title,
.party-room__title {
  margin: 0.35rem 0 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.party-finder-hero__subtitle,
.party-room__description {
  max-width: 42rem;
  margin: 0.85rem 0 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #b8c6db;
}

.party-finder-hero__actions {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.party-finder-hero__cta {
  border-radius: 999px;
  padding-inline: 1.25rem;
}

.party-finder-hero__notice {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.06);
  color: #d7e3f6;
}

.party-finder-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.15rem;
}

.party-finder-hero__stat {
  min-width: 8.5rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.party-finder-hero__stat-value {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: #f5f8ff;
}

.party-finder-hero__stat-label {
  display: block;
  font-size: 0.82rem;
  color: #aab6c8;
}

.party-finder-empty-state {
  padding: 4rem 1.25rem;
  border-radius: 1.5rem;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.party-finder-empty-state i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: 1rem;
  border-radius: 1.25rem;
  font-size: 2rem;
  background: rgba(110, 168, 254, 0.1);
  color: #9ec5fe;
}

.party-finder-empty-state h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.party-finder-empty-state p {
  margin: 0;
  color: #aeb9ca;
}

.party-card {
  overflow: hidden;
  min-height: 23.5rem;
  border-radius: 1.4rem;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.party-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 28px 65px rgba(0, 0, 0, 0.34);
}

.party-card--mine {
  border-color: rgba(255, 99, 132, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(255, 99, 132, 0.18),
    0 22px 50px rgba(0, 0, 0, 0.26);
}

.party-card__shell {
  display: flex;
  min-height: 100%;
}

.party-card__cover {
  width: 9rem;
  min-width: 9rem;
  position: relative;
}

.party-card__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(15, 18, 26, 0.55));
}

.party-card__cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.party-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1rem 1rem 0.95rem;
}

.party-card__topline,
.party-card__footer,
.party-card__title-wrap,
.party-card__buttons,
.party-card__actions {
  display: flex;
  gap: 0.6rem;
}

.party-card__topline,
.party-card__footer {
  justify-content: space-between;
  align-items: flex-start;
}

.party-card__headline {
  min-width: 0;
  flex: 1;
}

.party-card__title-wrap {
  align-items: center;
  flex-wrap: wrap;
}

.party-card__title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.15;
}

.party-card__owner-pill {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 99, 132, 0.16);
  color: #ffb7c5;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.party-card__game-badge,
.party-card__status {
  width: fit-content;
}

.party-card__actions {
  flex-direction: column;
  align-items: flex-end;
}

.party-card__icon-btn,
.party-card__view-btn {
  border-radius: 999px;
}

.party-card__description {
  margin: 0;
  color: #b2c0d2;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.party-card__tags,
.party-card__requirements {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.party-card__tag,
.party-card__requirement,
.party-room__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.3rem 0.62rem;
  border-radius: 999px;
  font-size: 0.76rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.party-card__tag,
.party-room__tag {
  background: rgba(255, 255, 255, 0.05);
  color: #dbe6f5;
}

.party-card__requirement {
  background: rgba(110, 168, 254, 0.08);
  color: #aecdff;
}

.party-card__member-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: auto;
}

.party-card__member-avatar {
  aspect-ratio: 1;
  border-radius: 0.8rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #31415a, #1a2434);
  color: #fff;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.party-card__member-avatar img,
.party-card__host-avatar img,
.party-member-item__avatar,
.party-room__message-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.party-card__member-avatar--overflow {
  color: #cdd7e7;
  background: rgba(255, 255, 255, 0.06);
}

.party-card__footer {
  align-items: center;
  margin-top: 0.1rem;
}

.party-card__host-avatar {
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #31415a, #1a2434);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

.party-card__host-copy {
  min-width: 0;
}

.party-card__host-label {
  font-size: 0.68rem;
  color: #8ea0b8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.party-card__host-name {
  font-size: 0.88rem;
  color: #eef3fb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.party-card__member-count {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  color: #b2c0d2;
}

.party-card__member-count img {
  width: 0.8rem;
  height: 0.8rem;
  opacity: 0.75;
  filter: invert(1);
}

.party-room {
  min-height: calc(100vh - 130px);
}

.party-room__layout {
  display: grid;
  grid-template-columns: minmax(18rem, 24rem) minmax(0, 1fr);
  gap: 1rem;
  min-height: calc(100vh - 130px);
}

.party-room__sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.party-room__panel,
.party-room__chat-panel {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
}

.party-room__panel {
  padding: 1.2rem;
}

.party-room__panel--hero::before {
  top: -7rem;
  right: -5rem;
}

.party-room__hero-top,
.party-room__hero-meta,
.party-room__actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  align-items: center;
}

.party-room__hero-top {
  justify-content: space-between;
}

.party-room__back {
  border-radius: 999px;
}

.party-room__capacity {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #d7e4f5;
}

.party-room__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.party-room__actions {
  margin-top: 1.1rem;
}

.party-room__primary-action {
  border-radius: 999px;
}

.party-room__member-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 0.85rem;
}

.party-member-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 0.9rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.party-member-item__avatar {
  width: 2.6rem;
  height: 2.6rem;
  min-width: 2.6rem;
  border-radius: 999px;
  overflow: hidden;
}

.party-member-item__avatar--fallback,
.party-room__message-avatar--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #31415a, #1a2434);
  color: #d7e4f5;
}

.party-member-item__body {
  min-width: 0;
  flex: 1;
}

.party-member-item__name-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.party-member-item__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.party-member-item__you {
  margin-left: auto;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  background: rgba(110, 168, 254, 0.16);
  color: #aacdff;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.party-room__chat-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.party-room__chat-panel::before {
  bottom: -7rem;
  left: -4rem;
}

.party-room__chat-header,
.party-room__composer {
  position: relative;
  z-index: 1;
  padding: 1.2rem 1.25rem;
}

.party-room__chat-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.party-room__chat-title {
  margin: 0.35rem 0 0;
  font-size: 1.6rem;
}

.party-room__messages {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  padding: 1.2rem 1.25rem;
  position: relative;
  z-index: 1;
}

.party-room__message {
  display: flex;
  gap: 0.7rem;
  max-width: min(42rem, 100%);
}

.party-room__message--own {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.party-room__message-avatar {
  width: 2.2rem;
  height: 2.2rem;
  min-width: 2.2rem;
  border-radius: 999px;
  overflow: hidden;
}

.party-room__message-body {
  min-width: 0;
}

.party-room__message-author,
.party-room__message-time {
  font-size: 0.74rem;
  color: #92a3ba;
}

.party-room__message-author {
  margin-bottom: 0.28rem;
}

.party-room__message-bubble {
  display: inline-block;
  max-width: min(34rem, 78vw);
  padding: 0.85rem 1rem;
  border-radius: 1.05rem;
  background: rgba(255, 255, 255, 0.06);
  color: #edf3fb;
  line-height: 1.45;
  word-break: break-word;
}

.party-room__message--own .party-room__message-bubble {
  background: linear-gradient(135deg, #2f6bff, #6ea8fe);
  color: #081019;
  font-weight: 600;
}

.party-room__message-time {
  margin-top: 0.28rem;
}

.party-room__composer {
  display: flex;
  gap: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.party-room__composer-input {
  border-radius: 999px !important;
  padding-inline: 1rem;
}

.party-room__composer-send {
  min-width: 3rem;
  border-radius: 999px;
}

.party-room__locked-chat {
  min-height: 24rem;
  margin: auto;
  padding: 2rem;
  text-align: center;
  color: #b2c0d2;
}

.party-room__locked-chat i {
  font-size: 2.4rem;
  color: #9ec5fe;
}

.party-room__locked-chat h2 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 1199.98px) {
  .party-room__layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991.98px) {
  .party-finder-hero {
    flex-direction: column;
  }

  .party-card__shell {
    flex-direction: column;
  }

  .party-card__cover {
    width: 100%;
    min-width: 0;
    height: 11rem;
  }
}

@media (max-width: 767.98px) {
  .party-finder-page {
    padding-top: 0.5rem !important;
  }

  .party-finder-hero,
  .party-room__panel,
  .party-room__chat-panel {
    border-radius: 1.2rem;
  }

  .party-card {
    min-height: 0;
  }

  .party-card__member-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .party-room__messages {
    padding-inline: 0.9rem;
  }

  .party-room__message-bubble {
    max-width: 100%;
  }
}
.chat-inbox-row {
  height: calc(100dvh - 110px);
  min-height: 0;
}

.chat-sidebar-col,
.chat-main-col {
  height: 100%;
  min-height: 0;
}

.chat-main-col {
  display: flex;
  flex-direction: column;
}

.chat-composer {
  flex-shrink: 0;
  position: relative;
}

.conversation-list-wrap {
  max-height: calc(100% - 56px);
  overflow-y: auto;
}

#chat-container {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.chat-empty-state {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  color: #667085;
}

.chat-empty-state__icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: #5b8def;
  background: linear-gradient(180deg, rgba(91, 141, 239, 0.18), rgba(91, 141, 239, 0.08));
  border: 1px solid rgba(91, 141, 239, 0.22);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.chat-empty-state__title {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 600;
  color: #98a2b3;
}

.chat-empty-state__text {
  margin: 0;
  max-width: 320px;
  font-size: 0.98rem;
  line-height: 1.5;
  color: #667085;
}

.conversation-item {
  padding: 0.75rem 0.95rem;
  margin: 0.2rem 0;
  border-left: 3px solid transparent;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.conversation-item:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

.conversation-avatar-wrap {
  position: relative;
}

.conversation-avatar-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 12px;
}

.conversation-title-row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.party-inbox-layout {
  padding-inline: 0.5rem;
}

.party-inbox-sidebar {
  display: flex;
  flex-direction: column;
}

.party-inbox-sidebar-header {
  min-height: 2.5rem;
}

.party-inbox-hero,
.party-member-list-wrap,
.party-chat-container {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: rgba(17, 24, 39, 0.32);
  backdrop-filter: blur(14px);
}

.party-inbox-hero {
  padding: 1rem;
}

.party-member-list-wrap {
  padding: 0.25rem 0;
}

.party-chat-main {
  padding-bottom: 1rem;
}

.party-inbox-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #7da6ff;
  margin-bottom: 0.5rem;
}

.party-inbox-title {
  font-size: clamp(2.2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 0.95;
  margin: 0 0 1rem;
  color: #e5eefc;
}

.party-avatar-fallback {
  background: rgba(30, 41, 59, 0.95);
  color: #c7d2fe;
  border-radius: 12px;
}

.party-member-row:last-child {
  border-bottom: 0 !important;
}

.party-chat-header {
  margin-bottom: 0.75rem;
}

.party-chat-title {
  margin: 0;
  font-size: 2rem;
  color: #f3f7ff;
}

.party-chat-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1rem 1rem 0.5rem;
}

.party-message-row {
  margin-bottom: 0.85rem;
}

.party-message-row--group-start,
.party-message-row--group-middle {
  margin-bottom: 0.3rem;
}

.party-message-row--own {
  text-align: right;
}

.party-message-meta {
  font-size: 0.72rem;
  color: #94a3b8;
  margin: 0 0 0.3rem 3rem;
}

.party-message-meta--own {
  margin: 0 3rem 0.3rem 0;
}

.party-message-row--group-middle .party-message-meta,
.party-message-row--group-end .party-message-meta {
  display: none;
}

.party-message-bubble-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.party-message-bubble-wrap--own {
  justify-content: flex-end;
}

.party-message-avatar {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 999px;
  flex: 0 0 auto;
}

.party-message-avatar--hidden {
  visibility: hidden;
}

.party-message-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: min(70%, 560px);
}

.party-message-stack--own {
  align-items: flex-end;
}

.party-message-bubble {
  padding: 8px 14px;
  font-size: 14px;
  border-radius: 18px;
  background: #2a3140;
  color: #e6ebf5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.party-message-row--own .party-message-bubble {
  background: #0d6efd;
  color: #ffffff;
}

.party-chat-bubble--single {
  border-radius: 18px;
}

.party-chat-bubble--start {
  border-radius: 18px 18px 18px 6px;
}

.party-chat-bubble--middle {
  border-radius: 6px 18px 18px 6px;
}

.party-chat-bubble--end {
  border-radius: 6px 18px 18px 18px;
}

.party-message-row--own .party-chat-bubble--start {
  border-radius: 18px 18px 6px 18px;
}

.party-message-row--own .party-chat-bubble--middle {
  border-radius: 18px 6px 6px 18px;
}

.party-message-row--own .party-chat-bubble--end {
  border-radius: 18px 6px 18px 18px;
}

.party-message-time {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: #94a3b8;
}

.party-message-row--group-start .party-message-time,
.party-message-row--group-middle .party-message-time {
  display: none;
}

@media (max-width: 991px) {
  .chat-inbox-row {
    height: auto;
  }

  .chat-sidebar-col,
  .chat-main-col {
    height: auto;
  }

  .conversation-list-wrap {
    max-height: none;
    overflow-y: visible;
  }

  #chat-container {
    min-height: 45vh;
  }
}

/* Responsive hardening for tablet and phone layouts. */
body {
  overflow-x: clip;
}

img,
video,
canvas,
iframe {
  max-width: 100%;
}

.navbar .container-fluid {
  gap: 0.75rem;
}

.navbar-collapse,
.navbar-nav {
  min-width: 0;
}

.navbar-nav .nav-link {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    padding-top: 0.75rem;
  }

  .navbar-nav .nav-link,
  .navbar-nav .btn.nav-link {
    width: 100%;
    justify-content: flex-start !important;
    padding: 0.65rem 0.25rem;
  }

  .ff-right-nav {
    align-items: stretch;
    gap: 0;
    padding-top: 0.45rem;
  }

  .ff-right-nav .dropdown-menu {
    position: static !important;
    width: 100%;
    margin-top: 0.25rem;
  }

  .match-sidebar {
    width: 100% !important;
    max-width: 100% !important;
  }

  .match-sidebar,
  .party-browse-main,
  .swipe-content-area,
  .swipe-profile,
  .browse-profile-card {
    min-width: 0;
  }

  .party-browse-page {
    gap: 0.75rem;
  }
}

@media (max-width: 767.98px) {
  .home-index-page .home-hero-3d {
    min-height: min(560px, calc(100dvh - var(--home-navbar-height, 60px)));
  }

  .home-hero-3d__step-card {
    max-width: min(20rem, calc(100vw - 2rem));
  }

  .home-origin-heatmap__inner,
  .site-footer__inner,
  .site-footer__bottom {
    width: min(100% - 1.25rem, 1320px);
  }

  .home-origin-heatmap__title {
    font-size: clamp(1.65rem, 8vw, 2.25rem);
    line-height: 1.02;
  }

  .home-origin-heatmap__map {
    height: 23rem;
    min-width: 0;
  }

  .swipe-profile > .row {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
  }

  .swipe-profile .card-body,
  .browse-profile-card .card-body,
  .party-browse-card .card-body {
    padding: 0.85rem;
  }

  .ff-profile-game-grid--games,
  .ff-profile-game-grid--games .ff-profile-tier-items.ff-profile-game-grid,
  .ff-profile-game-grid--videos,
  .ff-profile-game-grid--videos .ff-profile-tier-items.ff-profile-game-grid,
  .ff-profile-game-grid--music,
  .ff-profile-game-grid--music .ff-profile-tier-items.ff-profile-game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.75rem !important;
  }

  .ff-profile-tier-lane {
    grid-template-columns: 2.6rem minmax(0, 1fr);
    padding: 0.45rem;
  }

  .party-browse-card__layout {
    grid-template-columns: minmax(5.8rem, 34vw) minmax(0, 1fr);
  }

  .party-browse-card__media-col,
  .party-browse-card__cover {
    width: 100%;
  }

  .party-browse-card__cover {
    height: auto;
    aspect-ratio: 3 / 4;
  }

  .party-browse-card__top {
    gap: 0.65rem;
  }

  .party-browse-card__actions-row--top {
    justify-content: flex-start;
  }

  .party-room,
  .party-room__layout {
    min-height: 0;
  }

  .party-room__composer {
    padding: 0.85rem;
    gap: 0.5rem;
  }

  .party-room__composer-input {
    min-width: 0;
  }
}

@media (max-width: 575.98px) {
  .container,
  .container-fluid {
    --bs-gutter-x: 1.35rem;
  }

  .navbar-brand {
    font-size: 1.05rem;
  }

  .ff-profile-game-grid--games,
  .ff-profile-game-grid--games .ff-profile-tier-items.ff-profile-game-grid,
  .ff-profile-game-grid--videos,
  .ff-profile-game-grid--videos .ff-profile-tier-items.ff-profile-game-grid,
  .ff-profile-game-grid--music,
  .ff-profile-game-grid--music .ff-profile-tier-items.ff-profile-game-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .party-browse-card__layout {
    grid-template-columns: 1fr;
  }

  .party-browse-card__media-col {
    max-height: 13rem;
    overflow: hidden;
  }

  .party-browse-card__cover {
    aspect-ratio: 16 / 9;
  }

  .party-browse-card__cta--primary {
    flex: 1 1 100%;
  }

  .modal-dialog {
    margin: 0.75rem;
  }
}

@media (max-width: 991.98px) {
  .chat-inbox-row {
    height: auto !important;
    min-height: calc(100dvh - 76px);
    margin: 0;
  }

  .chat-sidebar-col,
  .chat-main-col {
    width: 100%;
    height: auto !important;
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
  }

  .chat-sidebar-col > .pt-3 {
    margin-left: 0 !important;
    padding-left: 0 !important;
  }

  .conversation-list-wrap {
    max-height: 32dvh !important;
    overflow-y: auto !important;
  }

  #chat-container {
    min-height: 44dvh !important;
  }

  .chat-actions {
    justify-content: flex-start !important;
  }

  .chat-actions .btn {
    margin-right: 0 !important;
  }

  .bubble-wrapper {
    max-width: 86%;
  }

  .youtube-embed-frame,
  .twitter-embed-wrap iframe,
  .instagram-embed-wrap .instagram-media {
    width: min(100%, 540px) !important;
  }
}

@media (max-width: 575.98px) {
  .conversation-item {
    padding: 0.65rem 0.5rem;
  }

  .conversation-avatar-img {
    width: 48px;
    height: 48px;
  }

  .conversation-title-row {
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
  }

  .chat-main-col {
    padding-bottom: 0.75rem;
  }

  .chat-composer .form-control-lg {
    font-size: 1rem;
  }

  .chat-actions .btn {
    width: 2.45rem;
    height: 2.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  .bubble-wrapper {
    max-width: 92%;
  }

  .avatar-wrapper {
    width: 42px;
  }

  .chat-avatar {
    width: 34px;
    height: 34px;
  }

  .youtube-card,
  .twitter-card,
  .instagram-card {
    flex-direction: column;
    width: min(100%, 320px);
  }

  .youtube-card-thumb,
  .twitter-card-thumb,
  .instagram-card-thumb {
    width: 100%;
    min-width: 0;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  emoji-picker {
    max-width: calc(100vw - 1.5rem);
  }
}

/* Professional responsive pass for shared app surfaces. */
.settings-page {
  width: min(100%, 760px);
  margin-inline: auto;
  padding-inline: clamp(0.85rem, 2.5vw, 1.5rem);
  padding-block: clamp(1.5rem, 3vw, 2.35rem) clamp(1.5rem, 3vw, 2.5rem);
}

.settings-page--social {
  max-width: 820px;
}

.settings-page .form-control,
.settings-page .form-select,
.settings-page textarea,
#mainForm .form-control,
#searchForm .form-control {
  min-width: 0;
}

#searchBtn:has(> .spinner-border:not(.d-none)),
[id$="SearchBtn"]:has(> .spinner-border:not(.d-none)) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: calc(1.5em + 0.75rem + 2px);
}

#searchBtn:has(> .spinner-border:not(.d-none)) > .spinner-border,
[id$="SearchBtn"]:has(> .spinner-border:not(.d-none)) > .spinner-border {
  margin-left: 0 !important;
}

.pond-create-form {
  display: block;
  max-width: 520px;
}

.table-responsive,
.table {
  max-width: 100%;
}

.pagination {
  flex-wrap: wrap;
  gap: 0.25rem;
}

.modal-body {
  overflow-wrap: anywhere;
}

@media (max-width: 991.98px) {
  main,
  .container,
  .container-fluid,
  .card,
  .card-body,
  .modal-content,
  .settings-page,
  .membership-page,
  .party-room,
  .party-browse-page,
  .swipe-layout-main,
  .swipe-content-area {
    min-width: 0;
  }

  .card-body {
    overflow-wrap: anywhere;
  }

  .settings-page h1 {
    font-size: clamp(1.8rem, 5vw, 2.35rem);
  }

  .settings-page .ms-2 {
    margin-left: 0 !important;
  }

  .settings-page .form-check {
    display: grid;
    grid-template-columns: 1.25rem minmax(0, 1fr);
    gap: 0.45rem;
  }

  .settings-page .form-check-label {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  #searchForm .d-flex.d-row,
  #mainForm > .d-flex,
  #mainForm .showcase-category > .d-flex {
    flex-wrap: wrap;
    align-items: stretch !important;
  }

  #searchForm .d-flex.d-row > .form-control,
  #mainForm .showcase-category-name {
    flex: 1 1 18rem;
  }

  #searchForm .d-flex.d-row > .btn,
  #mainForm .showcase-category > .d-flex > .btn {
    margin-left: 0 !important;
  }

  #mainForm > .d-flex {
    gap: 0.75rem;
  }

  #mainForm > .d-flex > h2 {
    flex: 1 1 14rem;
  }

  #mainForm .showcase-category {
    min-width: 0;
  }

  #mainForm .showcase-category-zone,
  #selectedGames,
  #results {
    min-height: 7rem;
  }

  #mainForm #resultsFilter {
    width: 100%;
  }

  #mainForm .w-50:has(#resultsFilter) {
    width: 100% !important;
    flex: 1 1 16rem;
  }

  .pond-chip {
    max-width: 100%;
  }

  .pond-chip-main {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .pond-member-item {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .pond-member-main {
    flex: 1 1 14rem;
  }

  .pond-member-actions {
    flex: 1 1 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .membership-page {
    overflow-x: clip;
  }

  .membership-shell {
    width: min(100% - 1.5rem, 1180px);
  }

  .membership-title,
  .membership-section-title,
  .membership-plan-card__title {
    letter-spacing: 0;
  }

  .membership-preview-stack,
  .membership-selected-theme {
    grid-template-columns: 1fr !important;
  }

  .membership-preview-frame,
  .membership-vertical-viewport,
  .admin-cosmetic-preview {
    max-width: 100%;
    min-width: 0;
  }
}

@media (max-width: 767.98px) {
  .settings-page {
    padding-inline: 0.85rem;
  }

  .settings-page .card,
  .settings-page--social .card {
    padding: 1rem !important;
  }

  .settings-page--user .d-flex.align-items-center.gap-3 {
    align-items: flex-start !important;
    flex-direction: column;
  }

  .input-group:not(.chat-composer):not(.pond-create-input-group) {
    min-width: 0;
  }

  .pond-create-form {
    max-width: 100%;
  }

  .pond-create-input-group {
    flex-direction: column;
    gap: 0.65rem;
  }

  .pond-create-input-group > .form-control,
  .pond-create-input-group > .btn {
    width: 100%;
    border-radius: var(--bs-border-radius) !important;
  }

  .pond-chip {
    border-radius: 0.75rem;
    flex-wrap: wrap;
    width: 100%;
  }

  .pond-chip-main-form {
    flex: 1 1 100%;
    min-width: 0;
  }

  .pond-chip-main {
    width: 100%;
    text-align: left;
  }

  .pond-chip-avatar {
    margin-left: 0.85rem;
  }

  .pond-chip-rename-toggle,
  .pond-chip-delete-icon-btn,
  .pond-chip-leave {
    min-height: 2.5rem;
  }

  .table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  #searchForm .d-flex.d-row {
    flex-direction: column;
    gap: 0.65rem;
  }

  #searchForm .d-flex.d-row > .btn,
  #searchForm .d-flex.d-row > .form-control {
    width: 100%;
  }

  #mainForm .showcase-category > .d-flex {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr);
  }

  #mainForm .showcase-category > .d-flex .remove-category-btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  #mainForm .d-flex.flex-row.justify-content-between {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem;
  }

  .ff-note-popover,
  .ff-review-popover {
    width: min(22rem, calc(100vw - 1.5rem));
    max-width: calc(100vw - 1.5rem);
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
  }

  .membership-stat-grid,
  .membership-explainer,
  .membership-theme-gallery .admin-cosmetic-cardlets {
    grid-template-columns: 1fr !important;
  }

  .membership-cadence-picker,
  .membership-plan-card__actions {
    grid-template-columns: 1fr !important;
  }

  .membership-buy-btn,
  .membership-secondary-btn {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .settings-page {
    padding-inline: 0.35rem;
  }

  .settings-page h1 {
    font-size: 1.65rem;
  }

  .settings-page h2.h5 {
    font-size: 1rem;
    line-height: 1.35;
  }

  .form-control,
  .form-select,
  .btn {
    min-height: 2.55rem;
  }

  .modal-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .modal-footer > .btn {
    width: 100%;
    margin-left: 0 !important;
  }

  .membership-shell {
    width: min(100% - 1rem, 1180px);
  }

  .membership-hero,
  .membership-plan-card,
  .membership-explainer-card,
  .membership-selected-theme.card,
  .membership-theme-category {
    border-radius: 0.5rem;
  }

  .membership-title {
    font-size: clamp(2rem, 11vw, 3rem);
    line-height: 0.98;
  }
}
