/*
 * Page layouts and site features for the 2016 design (rbx2016.css holds the shared parts).
 */

/* ============================================ 2D/3D thumbnails (view3d-ui.js) */
.view3d-stage {
  position: relative;
}

.view3d-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: none;
  overflow: hidden;
  touch-action: none;
}

.view3d-on .view3d-layer,
.view3d-busy .view3d-layer {
  display: block;
}

.view3d-on > img {
  visibility: hidden;
}

.view3d-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
}

.view3d-canvas:active {
  cursor: grabbing;
}

.view3d-status {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  color: var(--rbx-text-secondary);
  font-size: 14px;
  font-weight: 400;
  text-align: center;
  pointer-events: none;
}

.view3d-status:empty {
  display: none;
}

.view3d-busy .view3d-layer {
  background: rgba(255, 255, 255, 0.75);
}

/* 2016's "3D" button in the thumbnail's top-right corner */
.view3d-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  min-width: 40px;
}

/* ===================================== headshot flair (flair.js) and emblems */
.hs-flair {
  position: relative;
  max-width: 100%;
  width: fit-content;
  line-height: 0;
  vertical-align: middle;
}

.hs-flair-mark {
  position: absolute;
  z-index: 2;
  line-height: 0;
  pointer-events: none;
}

/* Beats the .is-sm/.is-md sizes, which would leave the mark small and off to one side. */
.hs-flair .hs-flair-mark .membership-badge,
.hs-flair .hs-flair-mark .admin-shield {
  width: 100%;
  margin: 0;
}

.hs-flair-tier {
  left: 50%;
  bottom: -10%;
  transform: translateX(-50%);
  width: clamp(14px, 42%, 56px);
}

.hs-flair-admin {
  top: -5%;
  right: -5%;
  width: clamp(13px, 30%, 36px);
}

.hs-flair.is-tiny .hs-flair-tier { left: auto; right: -22%; bottom: -14%; transform: none; width: 50%; max-width: 22px; }
.hs-flair.is-tiny .hs-flair-admin { top: -18%; right: -18%; width: 15px; }
/* Very small headshots (the navigation, creator lines) carry no marks. */
.hs-flair.is-micro .hs-flair-mark { display: none; }

.membership-badge {
  display: inline-block;
  margin-left: 4px;
  line-height: 0;
  vertical-align: middle;
}

.membership-badge svg { display: block; width: 100%; height: auto; }
.membership-badge.is-sm { width: 28px; }
.membership-badge.is-md { width: 36px; }
.membership-badge.is-lg { width: 58px; }

.admin-shield {
  display: inline-block;
  line-height: 0;
  vertical-align: middle;
}

.admin-shield svg { display: block; width: 100%; height: auto; }
.admin-shield.is-sm { width: 20px; }
.admin-shield.is-md { width: 26px; }
.admin-shield.is-lg { width: 44px; }

/* ===================================================== body packages */
.package-parts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 12px;
}

.package-part {
  text-align: center;
}

.package-part img {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--rbx-border);
  background: var(--rbx-surface);
  object-fit: contain;
}

.package-part-name {
  margin: 4px 0 2px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.25;
}

/* ================================================================ home */
.home-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 6px 0 18px;
}

.home-header-avatar img {
  width: 128px;
  height: 128px;
}

.home-header-name {
  margin: 0;
  font-size: 36px;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.home-friends {
  padding: 7px 15px 6px;
}

.home-status-form {
  display: flex;
  gap: 9px;
  margin-bottom: 12px;
}

.home-status-form .input-field {
  flex: 1 1 auto;
  min-width: 0;
}

.feed-list,
.news-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.feed-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--rbx-divider);
}

.feed-item img {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
}

.feed-item-body {
  min-width: 0;
}

.feed-item-name {
  font-weight: 400;
}

.feed-item-text {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
}

.news-item {
  padding: 0 0 12px;
  margin: 0 0 12px;
  border-bottom: 1px solid var(--rbx-divider);
}

.news-item:last-child {
  margin: 0;
  padding: 0;
  border: 0;
}

.news-title {
  font-size: 18px;
  font-weight: 400;
}

.news-text {
  margin: 4px 0 0;
  color: var(--rbx-text-secondary);
  font-size: 14px;
  font-weight: 400;
}

@media (max-width: 575.98px) {
  .home-header {
    gap: 12px;
  }

  .home-header-avatar img {
    width: 84px;
    height: 84px;
  }

  .home-header-name {
    font-size: 26px;
  }
}
.feed-item .hs-flair-mark { display: none; }

/* =============================================================== games */
.games-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 12px;
}

.games-filter-bar select {
  width: 220px;
  max-width: 100%;
}

.games-search {
  flex: 0 1 300px;
}

.games-search .input-field {
  width: 100%;
}

.games-row {
  position: relative;
  margin-bottom: 12px;
}

/* 2016's white arrows at either end of a row */
.games-row-scroll {
  position: absolute;
  top: 2px;
  bottom: 10px;
  z-index: 5;
  width: 30px;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--rbx-shadow);
  color: var(--rbx-label);
  font-size: 26px;
}

.games-row-scroll:hover {
  color: var(--rbx-text);
}

.games-row-scroll.is-left {
  left: 0;
}

.games-row-scroll.is-right {
  right: 0;
}

.games-row .game-cards {
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.games-row .game-cards::-webkit-scrollbar {
  display: none;
}

@media (hover: none) {
  .games-row-scroll {
    display: none;
  }

  .games-row .game-cards {
    scrollbar-width: thin;
  }
}

@media (hover: hover) and (min-width: 576px) {
  .games-row.has-arrows .game-cards {
    padding-left: 36px;
    padding-right: 36px;
  }
}

@media (max-width: 575.98px) {
  .games-row .games-row-scroll {
    display: none;
  }
}

.games-row:not(.has-arrows) .games-row-scroll {
  display: none;
}

/* ========================================================== game page */
.game-main-content {
  display: flex;
  gap: 24px;
  padding: 12px;
}

.game-thumb-container {
  position: relative;
  flex: 0 0 auto;
  width: 640px;
  max-width: 62%;
}

.game-thumb-container img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--rbx-divider);
}

.game-calls-to-action {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  padding: 6px 12px 0 0;
}

.game-title-container {
  position: relative;
  flex: 1 1 auto;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rbx-divider);
}

.game-title-container h2 {
  margin: 0 28px 0 0;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.game-creator {
  margin-top: 4px;
  color: var(--rbx-label);
  font-size: 16px;
}

.game-tags {
  margin-top: 8px;
}

.game-manage {
  position: absolute;
  top: 0;
  right: 0;
}

.game-manage .rbx-menu-item {
  color: var(--rbx-text);
  font-size: 22px;
  line-height: 1;
}

.game-play-container {
  padding: 24px 0;
  border-bottom: 1px solid var(--rbx-divider);
  text-align: center;
}

.game-play-container .btn-primary-lg {
  width: 100%;
  max-width: 216px;
}

.game-stats-container {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 0 0;
}

.game-favorite {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--rbx-orange);
  font-size: 14px;
}

.game-favorite i {
  font-size: 26px;
}

.game-votes {
  display: flex;
  flex: 1 1 auto;
  align-items: flex-start;
  gap: 6px;
  max-width: 220px;
}

.game-vote-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--rbx-green);
  font-size: 26px;
  line-height: 1;
}

.game-vote-btn.is-down {
  color: var(--rbx-red-soft);
}

.game-vote-btn.is-on {
  filter: drop-shadow(0 0 1px currentColor);
}

.game-vote-bar {
  flex: 1 1 auto;
  padding-top: 8px;
}

.game-vote-bar .vote-container {
  margin: 0;
}

.game-vote-bar .vote-percentage {
  background: var(--rbx-green);
}

.game-vote-bar .vote-background {
  background: var(--rbx-red-soft);
}

.game-vote-bar .vote-background.no-votes {
  background: var(--rbx-label);
}

.game-vote-counts {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.game-vote-counts .is-up { color: var(--rbx-green); }
.game-vote-counts .is-down { color: var(--rbx-red-soft); }

.game-tabs {
  margin-top: 6px;
}

.game-about {
  padding: 15px;
}

.game-description {
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rbx-divider);
  font-size: 16px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.game-stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px 6px;
  margin: 0;
  padding: 6px 0 12px;
  list-style: none;
  text-align: center;
}

.game-stat .text-label {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 300;
}

.game-stat .text-lead {
  font-size: 18px;
  font-weight: 400;
}

.game-comments {
  padding: 15px;
}

/* Server rows: who's in it on the left, slots and Join on the right */
.game-servers {
  margin: 0;
  padding: 0;
  list-style: none;
}

.game-server {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 6px;
  padding: 12px 15px;
  background: var(--rbx-surface);
  box-shadow: var(--rbx-shadow);
}

.game-server-players {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.game-server-players img {
  width: 48px;
  height: 48px;
}

.game-server-details {
  flex: 0 0 auto;
  text-align: right;
}

.game-server-status {
  margin-bottom: 6px;
  font-size: 14px;
}

.game-server-bar {
  height: 6px;
  width: 140px;
  margin: 0 0 8px auto;
  background: var(--rbx-divider);
}

.game-server-bar span {
  display: block;
  height: 100%;
  background: var(--rbx-blue);
}

@media (max-width: 991.98px) {
  .game-main-content {
    flex-direction: column;
    gap: 12px;
  }

  .game-thumb-container {
    width: 100%;
    max-width: none;
  }

  .game-calls-to-action {
    padding: 0;
  }

  .game-title-container h2 {
    font-size: 26px;
  }

  .game-play-container {
    padding: 15px 0;
  }

  .game-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

  .game-server {
    flex-direction: column;
    align-items: stretch;
  }

  .game-server-details {
    text-align: left;
  }

  .game-server-bar {
    margin-left: 0;
  }
}
.game-tags .item-card-pill { position: static; display: inline-block; margin-right: 4px; }

/* ============================================================= catalog */
.catalog-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}

.catalog-header h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 600;
}

.catalog-search {
  display: flex;
  flex: 0 1 560px;
  gap: 6px;
  min-width: 0;
}

.catalog-search input {
  flex: 1 1 auto;
  min-width: 0;
}

.catalog-search select {
  flex: 0 0 170px;
}

.catalog-layout {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.catalog-sidebar {
  flex: 0 0 150px;
  padding-right: 15px;
  border-right: 1px solid var(--rbx-border);
  align-self: stretch;
}

/* 2016's grey "Browse by Category" box */
.catalog-browse {
  border: 1px solid #6b6b6b;
  background: var(--rbx-surface);
}

.catalog-browse-title {
  padding: 3px 7px 4px;
  background: linear-gradient(#7d7d7d, #5d5d5d);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}

.catalog-browse-title small {
  display: block;
  font-size: 11px;
  font-weight: 600;
}

.catalog-browse-list {
  margin: 0;
  padding: 4px 0;
  list-style: none;
}

.catalog-browse-list a {
  display: block;
  padding: 4px 7px;
  color: var(--rbx-text);
  font-size: 14px;
  font-weight: 400;
}

.catalog-browse-list a.is-sub {
  padding-left: 18px;
}

.catalog-browse-list a:hover {
  background: var(--rbx-hover);
  text-decoration: none;
}

.catalog-browse-list a.active {
  background: var(--rbx-blue);
  color: #fff;
}

.catalog-browse-group {
  padding: 6px 7px 2px;
  color: var(--rbx-text-secondary);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.catalog-legend {
  margin-top: 18px;
  font-size: 14px;
}

.catalog-legend h4 {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 600;
}

.catalog-legend-item {
  margin-bottom: 12px;
}

.catalog-legend-item b {
  display: block;
  margin-top: 4px;
  font-weight: 600;
}

.catalog-legend-item p {
  margin: 0;
  color: var(--rbx-text-secondary);
  font-weight: 400;
}

.limited-tag {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  letter-spacing: 0;
}

.limited-tag.is-static,
.item-card-pill.is-static {
  position: static;
  display: inline-flex;
}

.catalog-results {
  flex: 1 1 auto;
  min-width: 0;
}

.catalog-results-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.catalog-results-header h2 {
  flex: 1 1 auto;
  margin: 0;
  font-size: 30px;
  font-weight: 300;
}

.catalog-results-header select {
  width: 190px;
}

.catalog-offsale-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  color: var(--rbx-text-secondary);
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
}

.catalog-items {
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
}

/* the red "NEW" sash across the top-right corner */
.item-card-new {
  position: absolute;
  top: 9px;
  right: -26px;
  z-index: 2;
  width: 90px;
  background: var(--rbx-red);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 15px;
  text-align: center;
  transform: rotate(45deg);
}

.item-card-pill.is-members {
  background: var(--rbx-orange);
}

/* bottom-right stack of stock + sale timer: the top-right corner belongs to the NEW sash
   (cards) and the 3D button (item page); on limiteds it sits above the LIMITED ribbon */
.item-card-corner {
  position: absolute;
  right: 4px;
  bottom: 4px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.item-card-corner.is-above-tag {
  bottom: 20px;
}

.item-card-corner .item-card-stock,
.item-card-corner .item-card-timer {
  position: static;
}

.item-card-timer {
  position: absolute;
  bottom: 4px;
  right: 4px;
  padding: 0 4px;
  border-radius: 3px;
  background: var(--rbx-red);
  color: #fff;
  font-size: 11px;
  font-weight: 400;
}

@media (max-width: 767.98px) {
  .catalog-sidebar {
    display: none;
  }

  .catalog-header h1 {
    font-size: 26px;
  }

  .catalog-search {
    flex: 1 1 100%;
  }

  .catalog-search select {
    flex-basis: 130px;
  }

  .catalog-results-header h2 {
    flex-basis: 100%;
    font-size: 24px;
  }

  .catalog-results-header select {
    flex: 1 1 auto;
    width: auto;
  }
}

/* ============================================================ item page */
.item-main {
  display: flex;
  gap: 15px;
  padding: 15px;
}

.item-thumb-column {
  flex: 0 0 auto;
  width: 420px;
  max-width: 45%;
}

.item-thumb-container {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid var(--rbx-border);
  background: var(--rbx-surface);
  overflow: hidden;
}

.item-thumb-container > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.item-thumb-container .limited-tag {
  z-index: 2;
  font-size: 15px;
  line-height: 20px;
}

.item-thumb-container .limited-tag::after {
  border-left-width: 15px;
  border-top-width: 20px;
}

.item-thumb-container .item-card-corner {
  right: 8px;
  bottom: 8px;
  gap: 4px;
}

.item-thumb-container .item-card-corner.is-above-tag {
  bottom: 28px;
}

.item-thumb-container .item-card-timer,
.item-thumb-container .item-card-stock {
  padding: 1px 6px;
  font-size: 13px;
}

.item-try-on {
  margin-top: 9px;
}

.item-details {
  flex: 1 1 auto;
  min-width: 0;
}

.item-name-container {
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--rbx-divider);
}

.item-name-container h2 {
  margin: 0 28px 0 0;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.item-price-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.item-price-row .item-field {
  flex: 1 1 auto;
}

.item-price-value {
  font-size: 22px;
}

.item-price-value .text-secondary,
.item-sale-note {
  font-size: 13px;
}

.item-sale-note {
  color: var(--rbx-red);
  font-weight: 400;
}

.item-action .btn-primary-lg,
.item-action .btn-control-lg {
  display: inline-block;
  min-width: 180px;
  text-align: center;
}

.item-field {
  display: flex;
  gap: 12px;
  margin-bottom: 9px;
  font-size: 16px;
}

.item-field-label {
  flex: 0 0 90px;
  font-weight: 300;
}

.item-description {
  margin: 0;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.item-owned {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px 102px;
  font-size: 14px;
}

.price-chart-container {
  padding: 15px;
}

.price-chart-legend {
  margin-bottom: 8px;
  color: var(--rbx-text-secondary);
  font-size: 13px;
}

.price-chart-legend span {
  display: inline-block;
  width: 14px;
  height: 4px;
  margin-right: 6px;
  vertical-align: middle;
  background: var(--rbx-green);
  border-radius: 2px;
}

.price-chart {
  display: block;
  width: 100%;
  height: 150px;
}

.price-chart-line {
  fill: none;
  stroke: var(--rbx-green);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.price-chart-grid,
.price-chart-axis {
  stroke: var(--rbx-divider);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.price-chart-axis {
  stroke: #b8d4e8;
}

.item-price-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
  text-align: center;
  font-size: 18px;
}

.item-price-stats .text-label {
  display: block;
  font-size: 16px;
  font-weight: 300;
}

.resellers {
  margin: 0;
  padding: 0;
  list-style: none;
}

.reseller {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rbx-divider);
}

.reseller:first-child {
  padding-top: 0;
}

.reseller:last-child {
  padding-bottom: 0;
  border: 0;
}

.reseller img {
  width: 60px;
  height: 60px;
}

.reseller-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

.reseller-price {
  font-size: 16px;
}

.reseller-btn {
  min-width: 90px;
  text-align: center;
}

.item-comments {
  padding: 15px;
}

@media (max-width: 767.98px) {
  .item-main {
    flex-direction: column;
  }

  .item-thumb-column {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }

  .item-name-container h2 {
    font-size: 24px;
  }

  .item-price-row {
    flex-direction: column;
  }

  .item-action,
  .item-action .btn-primary-lg,
  .item-action .btn-control-lg {
    width: 100%;
  }

  .item-owned {
    margin-left: 0;
  }

  .item-field-label {
    flex-basis: 80px;
  }

  .item-price-stats {
    font-size: 15px;
  }

  .item-price-stats .text-label {
    font-size: 13px;
  }

  .reseller {
    flex-wrap: wrap;
  }

  .reseller img {
    width: 44px;
    height: 44px;
  }
}

/* ============================================================== profile */
.profile-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 15px;
}

.profile-header-avatar {
  position: relative;
  flex: 0 0 auto;
}

.profile-header-avatar img {
  width: 110px;
  height: 110px;
}

.profile-header-avatar .avatar-status {
  right: 6px;
  bottom: 6px;
  width: 16px;
  height: 16px;
}

.profile-header-details {
  flex: 1 1 auto;
  min-width: 0;
}

.profile-name {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 28px;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.profile-presence {
  color: var(--rbx-blue);
  font-size: 13px;
  font-weight: 400;
}

.profile-presence.is-game {
  color: var(--rbx-green);
}

.profile-presence a {
  color: inherit;
  text-decoration: underline;
}

.profile-status {
  margin: 2px 0 6px;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.profile-status:empty {
  display: none;
}

.profile-header-social {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

.profile-header-social .text-label {
  display: block;
  font-size: 13px;
  font-weight: 300;
}

.profile-header-social .text-lead {
  font-size: 20px;
  font-weight: 300;
}

.profile-header-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  align-self: flex-end;
}

.profile-more {
  color: var(--rbx-text);
  font-size: 22px;
}

.profile-tabs {
  margin-top: 12px;
}

.profile-about {
  padding: 15px;
}

.profile-blurb {
  margin: 0;
  font-size: 15px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

/* Currently Wearing: avatar on white, worn items on the blue panel */
.profile-wearing {
  display: flex;
  margin-bottom: 18px;
  box-shadow: var(--rbx-shadow);
}

.profile-avatar-stage {
  position: relative;
  flex: 1 1 50%;
  min-height: 300px;
  background: var(--rbx-surface);
}

.profile-avatar-stage > img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: contain;
}

.profile-accoutrements {
  flex: 1 1 50%;
  padding: 24px 20px;
  background: #3a77ad;
}

.profile-accoutrement-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile-accoutrement-list a {
  display: block;
  aspect-ratio: 1;
  background: var(--rbx-surface);
}

.profile-accoutrement-list img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.profile-wearing-empty {
  grid-column: 1 / -1;
  color: #fff;
  font-weight: 400;
}

.profile-row-cards {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.profile-badge-art {
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-badge-art img,
.profile-badge-art svg {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.profile-badge-art i {
  color: var(--rbx-blue);
  font-size: 56px;
}

.item-card-name.text-dark {
  color: var(--rbx-text) !important;
}

.profile-stats {
  margin: 0;
}

/* Inventory: categories on the left, items on the right */
.profile-inventory {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.profile-inv-categories {
  flex: 0 0 170px;
}

.profile-inv-select {
  display: none;
}

.profile-inv-results {
  flex: 1 1 auto;
  min-width: 0;
  padding: 15px;
}

.profile-inv-search {
  width: 100%;
  max-width: 280px;
  margin-bottom: 15px;
}

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

@media (max-width: 767.98px) {
  .profile-header {
    flex-wrap: wrap;
  }

  .profile-header-avatar img {
    width: 84px;
    height: 84px;
  }

  .profile-name {
    font-size: 22px;
  }

  .profile-header-social {
    gap: 18px;
  }

  .profile-header-actions {
    flex: 1 1 100%;
    justify-content: stretch;
  }

  .profile-header-actions > .btn-primary-md,
  .profile-header-actions > .btn-secondary-md,
  .profile-header-actions > .btn-control-md {
    flex: 1 1 auto;
    text-align: center;
  }

  .profile-wearing {
    flex-direction: column;
  }

  .profile-accoutrements {
    padding: 15px;
  }

  .profile-row-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .profile-inventory {
    flex-direction: column;
    align-items: stretch;
  }

  .profile-inv-categories {
    display: none;
  }

  .profile-inv-select {
    display: block;
    width: 100%;
  }

  .profile-inv-search {
    max-width: none;
  }
}
.profile-header-avatar .hs-flair-mark { display: none; }

/* ======================================================== avatar editor */
.avatar-page-header h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 400;
}

.avatar-editor {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.avatar-left {
  flex: 0 0 320px;
  min-width: 0;
}

.avatar-right {
  flex: 1 1 auto;
  min-width: 0;
}

.avatar-preview {
  position: relative;
  margin-bottom: 18px;
  padding: 12px;
}

.avatar-stage {
  position: relative;
}

.avatar-stage > img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: contain;
}

.avatar-spinner {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--rbx-text-secondary);
}

.avatar-preview-footer {
  padding-top: 9px;
  border-top: 1px solid var(--rbx-divider);
  font-size: 13px;
  text-align: center;
}

.avatar-preview-footer .text-secondary {
  display: block;
}

.avatar-bodycolors {
  margin-bottom: 18px;
}

/* The block figure: head, arms either side of the torso, legs below. */
.bodyc-container {
  display: grid;
  grid-template-columns: 40px 80px 40px;
  grid-template-rows: 50px 80px 80px;
  gap: 3px;
  justify-content: center;
  margin: 0 auto 10px;
}

.bodyc-part {
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.bodyc-part:hover {
  box-shadow: 0 0 0 2px var(--rbx-blue);
}

.bodyc-head { grid-column: 2; grid-row: 1; width: 50px; justify-self: center; border-radius: 6px; }
.bodyc-rarm { grid-column: 1; grid-row: 2; }
.bodyc-torso { grid-column: 2; grid-row: 2; }
.bodyc-larm { grid-column: 3; grid-row: 2; }
.bodyc-rleg { grid-column: 2; grid-row: 3; width: 39px; justify-self: start; }
.bodyc-lleg { grid-column: 2; grid-row: 3; width: 39px; justify-self: end; }

.avatar-headshot-angle {
  display: flex;
  gap: 6px;
}

.avatar-headshot-angle button {
  flex: 1 1 0;
}

.avatar-tabs {
  margin-bottom: 0;
}

.avatar-wardrobe {
  margin-bottom: 18px;
  padding: 15px;
}

.avatar-wardrobe-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  margin-bottom: 15px;
}

.avatar-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.avatar-categories a {
  color: var(--rbx-text);
  font-size: 16px;
  font-weight: 400;
}

.avatar-categories a.active {
  color: var(--rbx-blue);
  font-weight: 600;
}

.avatar-wardrobe-bar .input-field {
  width: 200px;
}

.avatar-items {
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
}

.avatar-item .item-card-thumb-container {
  display: block;
  width: 100%;
  padding: 0;
  cursor: pointer;
}

.avatar-item.is-worn .item-card-thumb-container {
  border-color: var(--rbx-blue);
  box-shadow: 0 0 0 1px var(--rbx-blue);
}

.avatar-item-check {
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 3;
  display: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--rbx-blue);
  color: #fff;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
}

.avatar-item.is-worn .avatar-item-check {
  display: block;
}

.avatar-item-btn {
  width: 100%;
  margin-top: 4px;
}

.avatar-outfit-btns {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}

.avatar-outfit-btns button {
  flex: 1 1 0;
}

@media (max-width: 991.98px) {
  .avatar-editor {
    flex-direction: column;
    align-items: stretch;
  }

  .avatar-left {
    flex-basis: auto;
  }

  .avatar-wardrobe-bar .input-field {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .avatar-items,
  .catalog-items {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 8px;
  }
}

/* ===================================================== friends, people */
.page-title {
  margin: 0;
  font-size: 32px;
  font-weight: 400;
}

.friend-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0;
  padding: 0;
  list-style: none;
}

.friend-cards > .empty-state {
  grid-column: 1 / -1;
}

.friend-card {
  display: flex;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  background: var(--rbx-surface);
  box-shadow: var(--rbx-shadow);
}

.friend-card:hover {
  box-shadow: var(--rbx-shadow-hover);
}

.friend-card-thumb {
  position: relative;
  flex: 0 0 90px;
  height: 90px;
}

.friend-card-thumb img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--rbx-divider);
  object-fit: cover;
}

.friend-card-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.friend-card-name {
  overflow: hidden;
  color: var(--rbx-text);
  font-size: 18px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.friend-presence {
  color: var(--rbx-blue);
  font-size: 13px;
  font-weight: 400;
}

.friend-presence.is-game {
  color: var(--rbx-green);
}

.friend-presence.is-offline {
  color: var(--rbx-label);
}

.friend-card-blurb {
  overflow: hidden;
  color: var(--rbx-text-secondary);
  font-size: 12px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.friend-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: auto;
  padding-top: 6px;
}

.people-header {
  flex-wrap: wrap;
  gap: 12px;
}

.people-search {
  display: flex;
  flex: 0 1 420px;
  gap: 6px;
  margin-left: auto;
}

.people-search .input-field {
  flex: 1 1 auto;
  min-width: 0;
}

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

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

  .people-search {
    flex-basis: 100%;
  }

  .page-title {
    font-size: 26px;
  }
}

/* ============================================================= settings */
.settings-layout {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.settings-tabs {
  flex: 0 0 200px;
}

.settings-content {
  flex: 1 1 auto;
  min-width: 0;
}

.settings-section {
  margin-bottom: 18px;
  padding: 15px;
}

.settings-row {
  display: flex;
  align-items: baseline;
  gap: 15px;
  padding: 9px 0;
  border-bottom: 1px solid var(--rbx-divider);
}

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

.settings-label {
  flex: 0 0 150px;
  margin: 0;
  font-size: 16px;
  font-weight: 300;
}

.settings-field {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  max-width: 460px;
}

.settings-field textarea {
  height: auto;
  resize: vertical;
}

.settings-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 400;
}

.settings-save {
  padding-top: 12px;
  text-align: right;
}

.settings-inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.settings-inline-form .input-field {
  flex: 1 1 140px;
  max-width: 220px;
}

.settings-2fa-setup {
  margin-top: 15px;
}

.settings-2fa-setup img {
  display: block;
  width: 180px;
  margin: 8px 0;
  border: 1px solid var(--rbx-border);
}

@media (max-width: 767.98px) {
  .settings-layout {
    flex-direction: column;
    align-items: stretch;
  }

  .settings-tabs {
    flex-direction: row;
    flex-basis: auto;
  }

  .settings-tabs li {
    flex: 1 1 0;
  }

  .settings-tabs .rbx-tab-heading {
    text-align: center;
  }

  .settings-tabs .rbx-tab-heading.active {
    box-shadow: 0 -4px 0 0 var(--rbx-blue) inset;
  }

  .settings-row {
    flex-direction: column;
    gap: 4px;
  }

  .settings-label {
    flex-basis: auto;
  }

  .settings-field {
    width: 100%;
    max-width: none;
  }

  .settings-inline-form .input-field {
    max-width: none;
  }
}

/* ============================================================== develop */
.develop-hero {
  margin: -6px 0 18px;
  padding: 48px 24px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.7)),
    url('/alphaland/cdn/imgs/Previews/Happy%20Home.png') center / cover;
  color: #fff;
  text-align: center;
}

.develop-hero h1 {
  color: #fff;
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 300;
  text-transform: uppercase;
}

.develop-hero p {
  max-width: 640px;
  margin: 0 auto 18px;
  font-size: 16px;
}

.develop-hero-link {
  display: block;
  margin-top: 10px;
  font-size: 14px;
}

.develop-title {
  margin: 0;
  font-size: 28px;
  font-weight: 300;
}

.develop-layout {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.develop-tabs {
  flex: 0 0 180px;
}

.develop-content {
  flex: 1 1 auto;
  min-width: 0;
}

.develop-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.develop-list-header h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 300;
}

.develop-form {
  margin-bottom: 15px;
  padding: 15px;
}

.develop-form .form-group > .input-field {
  width: 100%;
}

.develop-form-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.develop-form-title h4 {
  margin: 0;
  font-size: 20px;
  font-weight: 400;
}

.develop-template-img {
  max-width: 100%;
  margin-top: 6px;
  border: 1px solid var(--rbx-border);
}

.develop-price-input {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 160px;
  font-size: 20px;
}

.develop-list {
  background: var(--rbx-surface);
  box-shadow: var(--rbx-shadow);
}

.develop-list > .empty-state {
  box-shadow: none;
}

.develop-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 15px;
  border-bottom: 1px solid var(--rbx-divider);
}

.develop-item:last-child {
  border-bottom: 0;
}

.develop-item-thumb {
  flex: 0 0 140px;
}

.develop-item-thumb img {
  display: block;
  width: 140px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--rbx-divider);
}

.develop-item-thumb.is-square {
  flex-basis: 70px;
}

.develop-item-thumb.is-square img {
  width: 70px;
  aspect-ratio: 1;
  border: 1px solid var(--rbx-border);
  object-fit: contain;
  background: var(--rbx-surface);
}

.develop-item-info {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}

.develop-item-name {
  overflow: hidden;
  font-size: 18px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Place templates */
.create-template-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-top: 4px;
}

.create-template-card {
  border: 1px solid var(--rbx-border);
  background: var(--rbx-surface);
  cursor: pointer;
}

.create-template-card.selected-my-group {
  border-color: var(--rbx-blue);
  box-shadow: 0 0 0 1px var(--rbx-blue);
}

.is-overridden .create-template-card {
  opacity: 0.45;
}

.create-template-thumb {
  position: relative;
}

.create-template-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.create-template-check {
  position: absolute;
  top: 4px;
  left: 4px;
  display: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--rbx-blue);
  color: #fff;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
}

.selected-my-group .create-template-check {
  display: block;
}

.create-template-body {
  padding: 4px 6px 6px;
}

.create-template-title {
  font-size: 14px;
  font-weight: 400;
}

.create-template-sub {
  color: var(--rbx-text-secondary);
  font-size: 12px;
  font-weight: 400;
}

.create-upload-badge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 6px;
  font-size: 14px;
}

/* File pickers: a plain bordered box with a grey Browse button */
.custom-file {
  position: relative;
  display: block;
  height: 38px;
}

.custom-file-input {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.custom-file-label {
  position: absolute;
  inset: 0;
  overflow: hidden;
  margin: 0;
  padding: 8px 90px 8px 12px;
  border: 1px solid var(--rbx-border);
  border-radius: 3px;
  background: var(--rbx-surface);
  color: var(--rbx-text-secondary);
  font-size: 15px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-file-label::after {
  content: 'Browse';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  padding: 8px 14px;
  border-left: 1px solid var(--rbx-border);
  background: var(--rbx-hover);
  color: var(--rbx-text);
}

.custom-file-input:focus ~ .custom-file-label {
  border-color: var(--rbx-blue);
}

@media (max-width: 767.98px) {
  .develop-hero {
    padding: 30px 15px;
  }

  .develop-hero h1 {
    font-size: 22px;
  }

  .develop-layout {
    flex-direction: column;
    align-items: stretch;
  }

  .develop-tabs {
    flex-direction: row;
    flex-basis: auto;
  }

  .develop-tabs li {
    flex: 1 1 0;
  }

  .develop-tabs .rbx-tab-heading {
    text-align: center;
  }

  .develop-tabs .rbx-tab-heading.active {
    box-shadow: 0 -4px 0 0 var(--rbx-blue) inset;
  }

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

  .develop-item-thumb {
    flex-basis: 96px;
  }

  .develop-item-thumb img {
    width: 96px;
  }
}

/* ============================================================= download */
.download-hero {
  margin-bottom: 18px;
  padding: 30px 15px;
  text-align: center;
}

.download-hero-logo {
  width: 96px;
  height: 96px;
  margin-bottom: 8px;
}

.download-hero h2 {
  margin: 0 0 6px;
  font-size: 30px;
  font-weight: 400;
}

.download-hero p {
  max-width: 560px;
  margin: 0 auto 18px;
}

.download-primary {
  display: inline-block;
  min-width: 280px;
}

.download-meta {
  margin-top: 9px;
}

.download-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 18px;
}

.dl-card {
  display: flex;
  flex-direction: column;
  padding: 15px;
}

.dl-card.is-detected {
  box-shadow: 0 0 0 2px var(--rbx-blue), var(--rbx-shadow);
}

.dl-card h4 {
  margin: 0;
  font-size: 22px;
  font-weight: 400;
}

.dl-steps {
  flex: 1 1 auto;
  margin: 12px 0;
  padding-left: 20px;
  font-size: 14px;
}

.dl-steps li {
  margin-bottom: 6px;
}

.dl-card > .btn-secondary-md {
  text-align: center;
}

.dl-card-foot {
  margin: 9px 0 0;
}

.dl-cmd {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 4px 6px;
  border: 1px solid var(--rbx-border);
  background: var(--rbx-hover);
}

.dl-cmd code {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--rbx-text);
}

.dl-req-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dl-req-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--rbx-divider);
}

.dl-req-list li:last-child {
  border-bottom: 0;
}

.dl-faq {
  border-bottom: 1px solid var(--rbx-divider);
}

.dl-faq summary {
  padding: 9px 0;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
}

.dl-faq p {
  margin: 0 0 9px;
  color: var(--rbx-text-secondary);
  font-size: 14px;
}

.dl-test {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding-top: 12px;
}

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

@media (max-width: 575.98px) {
  .download-primary {
    min-width: 0;
    width: 100%;
  }
}

/* ========================================================= configure pages */
.config-header {
  flex-wrap: wrap;
  gap: 12px;
}

.config-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.config-save {
  display: flex;
  justify-content: space-between;
  gap: 9px;
  padding-top: 15px;
}

.config-save > :only-child,
.config-save > [style*="display:none"] + * {
  margin-left: auto;
}

.config-range {
  max-width: 360px;
}

.config-thumb {
  display: block;
  width: 100%;
  max-width: 576px;
  aspect-ratio: 16 / 9;
  margin-bottom: 12px;
  border: 1px solid var(--rbx-border);
  object-fit: cover;
}

.config-icon {
  display: block;
  width: 150px;
  height: 150px;
  margin-bottom: 12px;
  border: 1px solid var(--rbx-border);
  border-radius: 3px;
  object-fit: cover;
  background: var(--rbx-divider);
}

.config-thumb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 9px;
}

.config-subtitle {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 600;
}

.pbs-panel-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 0;
  border-bottom: 1px solid var(--rbx-divider);
}

.pbs-panel-row img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--rbx-divider);
}

.pbs-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

.item-config {
  display: flex;
  gap: 18px;
  padding: 15px;
}

.item-config-thumb {
  flex: 0 0 220px;
}

.item-config-thumb img {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--rbx-border);
  object-fit: contain;
}

.item-config-fields {
  flex: 1 1 auto;
  min-width: 0;
}

.item-config-sale {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

@media (max-width: 767.98px) {
  .item-config {
    flex-direction: column;
  }

  .item-config-thumb {
    flex-basis: auto;
    max-width: 200px;
  }
}
code { color: var(--rbx-text); }

/* ======================================================= signed out */
#unauth-shell {
  min-height: 100vh;
  background: var(--rbx-page);
}

.landing-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1030;
  background: rgba(0, 116, 189, 0.55);
}

.landing-header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 1150px;
  height: 66px;
  margin: 0 auto;
  padding: 0 15px;
}

.landing-brand img {
  width: 38px;
  height: 38px;
}

.landing-nav {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-nav a {
  display: block;
  padding: 6px 14px;
  color: #fff;
  font-size: 18px;
  font-weight: 300;
  text-decoration: none;
}

.landing-nav a.active {
  box-shadow: inset 0 -2px 0 #fff;
}

.landing-login {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.landing-login .input-field {
  width: 180px;
  height: 32px;
  padding: 4px 10px;
  font-size: 15px;
}

.landing-login-btn {
  display: none;
  margin-left: auto;
}

.landing-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #222 url('/alphaland/cdn/imgs/Previews/Happy%20Home.png') center / cover;
}

.landing-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.landing-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  max-width: 1050px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 96px 15px 60px;
}

.landing-logo {
  flex: 1 1 auto;
  max-width: 470px;
  text-align: center;
}

.landing-logo img {
  width: 100%;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}

.landing-tagline {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 24px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 32px;
  font-weight: 300;
}

.landing-signup {
  display: flex;
  flex: 0 0 440px;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.92);
}

.landing-signup h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 300;
  text-align: center;
  text-transform: uppercase;
}

.landing-signup .input-field {
  height: 44px;
  font-size: 18px;
}

.landing-signup-note {
  margin: 0;
  color: var(--rbx-text-secondary);
  font-size: 13px;
  text-align: center;
}

.landing-error {
  padding: 8px 12px;
  background: var(--rbx-red);
  color: #fff;
  font-size: 14px;
  font-weight: 400;
}

.landing-hero-caption {
  position: absolute;
  bottom: 30px;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  color: #fff;
  font-size: 22px;
  font-weight: 300;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
}

.landing-about {
  padding: 90px 15px;
  border-top: 4px solid #fff;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.85) 55%),
    url('/alphaland/cdn/imgs/Previews/Rugged.png') center / cover;
  color: #fff;
}

.landing-about-inner {
  max-width: 620px;
  margin-left: auto;
  margin-right: max(15px, calc((100% - 1050px) / 2));
}

.landing-about h2,
.landing-platforms h2 {
  margin-bottom: 18px;
  color: inherit;
  font-size: 44px;
  font-weight: 300;
  text-align: center;
  text-transform: uppercase;
}

.landing-about p {
  font-size: 22px;
  font-weight: 300;
  line-height: 1.5;
}

.landing-platforms {
  padding: 60px 15px;
  background: var(--rbx-surface);
  color: var(--rbx-text);
}

.landing-platforms ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 60px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-platforms li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 18px;
}

.landing-platforms i {
  color: var(--rbx-header);
  font-size: 64px;
}

.landing-card-page {
  min-height: calc(100vh - 54px);
  padding: 110px 15px 40px;
}

.landing-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 24px;
}

.landing-card h1 {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 400;
  text-align: center;
}

.landing-card p {
  margin: 0;
}

.landing-code {
  font-size: 26px;
  letter-spacing: 0.4em;
  text-align: center;
}

.landing-card-foot {
  font-size: 14px;
  text-align: center;
}

.landing-footer {
  margin-top: 0;
  padding: 18px 15px;
  text-align: center;
}

@media (max-width: 991.98px) {
  .landing-hero-inner {
    flex-direction: column;
    justify-content: center;
  }

  .landing-logo {
    max-width: 380px;
  }

  .landing-tagline {
    font-size: 24px;
  }

  .landing-signup {
    flex-basis: auto;
    width: 100%;
    max-width: 440px;
  }

  .landing-hero-caption {
    display: none;
  }

  .landing-login {
    display: none;
  }

  .landing-login-btn {
    display: inline-block;
  }

  .landing-about-inner {
    margin: 0 auto;
  }
}

@media (max-width: 575.98px) {
  .landing-header-inner {
    gap: 6px;
    height: 54px;
  }

  .landing-nav a {
    padding: 6px 8px;
    font-size: 16px;
  }

  .landing-about h2,
  .landing-platforms h2 {
    font-size: 30px;
  }

  .landing-about p {
    font-size: 18px;
  }

  .landing-signup {
    padding: 18px 15px;
  }
}

/* =============================================================== trades */
.trades-header {
  flex-wrap: wrap;
  gap: 12px;
}

.trades-type {
  width: 200px;
}

.trades-table-wrap {
  padding: 0;
}

.trades-table {
  margin: 0;
}

.trades-table td {
  vertical-align: middle;
}

.trades-partner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trades-partner img {
  width: 32px;
  height: 32px;
}

.trade-status {
  font-size: 14px;
  font-weight: 400;
}

.trade-status.status-pending { color: var(--rbx-blue); }
.trade-status.status-accepted,
.trade-status.status-completed { color: var(--rbx-green); }
.trade-status.status-declined,
.trade-status.status-failed { color: var(--rbx-red); }
.trade-status.status-cancelled,
.trade-status.status-expired,
.trade-status.status-countered { color: var(--rbx-text-secondary); }

.trade-modal-status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.trade-modal-status img {
  width: 48px;
  height: 48px;
}

.trade-sides {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 12px;
}

.trade-side,
.composer-offer {
  padding: 12px;
  border: 1px solid var(--rbx-divider);
}

.trade-side h4,
.composer-offer h4 {
  margin: 0 0 9px;
  font-size: 18px;
  font-weight: 400;
}

.trade-slots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 9px;
  padding: 0;
  list-style: none;
}

.trade-slot {
  min-width: 0;
}

.trade-slot.is-empty .item-card-thumb-container {
  border-style: dashed;
  background: var(--rbx-hover);
}

.trade-slot .item-card-name,
.trade-slot .text-secondary {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trade-side-foot {
  display: flex;
  justify-content: space-between;
  gap: 9px;
  padding-top: 9px;
  border-top: 1px solid var(--rbx-divider);
}

.composer-layout {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.composer-inventories {
  flex: 1 1 auto;
  min-width: 0;
}

.composer-offers {
  display: flex;
  flex: 0 0 320px;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: calc(var(--rbx-top) + 12px);
}

.composer-offer {
  background: var(--rbx-surface);
  box-shadow: var(--rbx-shadow);
}

.composer-robux {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.composer-value {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid var(--rbx-divider);
}

.composer-grid {
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
}

/* ======================================================== builders club */
.bc-title {
  font-weight: 600;
}

.bc-layout {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.bc-table-wrap {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  padding: 15px;
  background: var(--rbx-surface);
  box-shadow: var(--rbx-shadow);
}

.bc-table {
  width: 100%;
  border-collapse: collapse;
}

.bc-table th,
.bc-table td {
  padding: 7px 6px;
  border-bottom: 1px solid var(--rbx-divider);
  font-size: 15px;
  text-align: center;
}

.bc-table th {
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

.bc-table thead td,
.bc-table thead th {
  border-bottom: 0;
  vertical-align: bottom;
}

.bc-table td.is-current {
  background: #f2f9ff;
}

.bc-tier-name {
  margin-bottom: 8px;
  font-size: 26px;
  font-weight: 300;
}

.bc-tier-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 96px;
}

.bc-tier-icon svg {
  width: 84px;
  height: auto;
}

.bc-free-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #a9a9a9;
  color: #fff;
  font-size: 44px;
}

.bc-current {
  display: inline-block;
  margin-top: 6px;
  color: var(--rbx-blue);
  font-size: 13px;
  font-weight: 600;
}

.bc-yes {
  color: var(--rbx-green);
  font-size: 20px;
}

.bc-no {
  color: var(--rbx-red);
}

.bc-side {
  flex: 0 0 220px;
  font-size: 14px;
}

.bc-side h4 {
  margin: 0 0 6px;
  padding-top: 12px;
  border-top: 1px solid var(--rbx-border);
  font-size: 16px;
  font-weight: 600;
}

.bc-side h4:first-child {
  padding-top: 0;
  border-top: 0;
}

@media (max-width: 991.98px) {
  .composer-layout,
  .bc-layout {
    flex-direction: column;
    align-items: stretch;
  }

  .composer-offers {
    position: static;
    flex-basis: auto;
  }

  .bc-side {
    flex-basis: auto;
  }
}

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

  .bc-tier-name {
    font-size: 18px;
  }

  .bc-tier-icon {
    height: 60px;
  }

  .bc-tier-icon svg,
  .bc-free-icon {
    width: 52px;
  }

  .bc-free-icon {
    height: 52px;
    font-size: 28px;
  }

  .bc-table th,
  .bc-table td {
    font-size: 13px;
  }
}

@media (max-width: 575.98px) {
  .hide-xs {
    display: none !important;
  }
}

/* =============================================================== groups */
.groups-header {
  flex-wrap: wrap;
  gap: 12px;
}

.groups-header .people-search {
  margin-left: auto;
}

.group-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.group-cards > .empty-state {
  grid-column: 1 / -1;
}

.group-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 9px;
  background: var(--rbx-surface);
  box-shadow: var(--rbx-shadow);
  color: var(--rbx-text);
  text-decoration: none;
}

.group-card a:hover {
  box-shadow: var(--rbx-shadow-hover);
}

.group-card-emblem img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.group-card-name {
  overflow: hidden;
  margin-top: 6px;
  font-size: 16px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 15px;
}

.group-header-emblem img {
  width: 150px;
  height: 150px;
  object-fit: contain;
}

.group-header-main {
  flex: 1 1 auto;
  min-width: 0;
}

.group-name {
  margin: 0;
  font-size: 30px;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.group-stats {
  margin-top: 12px;
}

.group-stats .text-lead {
  font-size: 18px;
}

.group-header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  align-self: flex-end;
}

.group-desc {
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.group-shout {
  padding: 0;
  border: 0;
}

.group-role-select {
  width: 220px;
}

.group-members {
  flex-wrap: wrap;
}

.ga-perms {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 4px 12px;
}

.ga-perms label {
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 0;
  font-weight: 400;
}

@media (max-width: 767.98px) {
  .group-header {
    flex-wrap: wrap;
  }

  .group-header-emblem img {
    width: 90px;
    height: 90px;
  }

  .group-name {
    font-size: 22px;
  }

  .group-header-actions {
    flex: 1 1 100%;
  }

  .groups-header .people-search {
    margin-left: 0;
  }
}

.group-emblem-sm {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

/* ================================================================ admin */
.admin-layout {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.admin-sidenav {
  flex: 0 0 200px;
  position: sticky;
  top: calc(var(--rbx-top) + 12px);
}

.admin-sidenav .nav-link {
  padding: 9px 12px;
  border-radius: 0;
  background: var(--rbx-surface);
  color: var(--rbx-text);
  font-size: 15px;
  font-weight: 400;
}

.admin-sidenav .nav-link:hover {
  background: var(--rbx-hover);
}

.admin-sidenav .nav-link.active {
  background: var(--rbx-surface);
  color: var(--rbx-text);
  box-shadow: 4px 0 0 0 var(--rbx-blue) inset;
}

.admin-nav-heading {
  padding: 10px 12px 2px;
  border-top: 1px solid var(--rbx-divider);
  color: var(--rbx-text-secondary);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.admin-content {
  flex: 1 1 auto;
  min-width: 0;
}

.admin-content .card {
  margin-bottom: 15px;
}

.admin-kpi-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.admin-kpi {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--rbx-surface);
  box-shadow: var(--rbx-shadow);
}

.admin-kpi-icon {
  display: flex;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  height: 40px;
  border-radius: 50%;
  background: #e5f5ff;
  color: var(--rbx-blue);
  font-size: 17px;
}

.admin-kpi.is-live .admin-kpi-icon {
  background: #e3f7ec;
  color: var(--rbx-green);
}

.admin-kpi-value {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.1;
}

.admin-kpi-label {
  font-size: 14px;
}

.admin-kpi-sub {
  color: var(--rbx-text-secondary);
  font-size: 12px;
  font-weight: 400;
}

.admin-shortcuts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.admin-shortcut {
  display: grid;
  grid-template-columns: 30px 1fr;
  grid-template-rows: auto auto;
  column-gap: 9px;
  align-items: center;
  padding: 12px;
  border: 0;
  background: var(--rbx-surface);
  box-shadow: var(--rbx-shadow);
  color: var(--rbx-text);
  text-align: left;
}

.admin-shortcut:hover,
.admin-shortcut:focus-visible {
  box-shadow: var(--rbx-shadow-hover);
}

.admin-shortcut i {
  grid-row: span 2;
  color: var(--rbx-blue);
  font-size: 22px;
}

.admin-shortcut span {
  font-size: 16px;
  font-weight: 400;
}

.admin-shortcut small {
  color: var(--rbx-text-secondary);
  font-size: 12px;
}

.admin-pane-title {
  margin-bottom: 12px;
}

.admin-pane-title h5 {
  font-size: 22px;
  font-weight: 400 !important;
}

.admin-creator-row {
  max-width: 420px;
  margin-bottom: 15px;
}

.admin-subtabs {
  margin-bottom: 0;
}

.admin-table-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  margin-bottom: 12px;
}

.admin-toolbar-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-toolbar-filters .form-control,
.admin-search {
  width: auto;
  min-width: 160px;
}

.admin-table td,
.admin-table th {
  vertical-align: middle;
}

.admin-row-banned {
  background: #fdecec;
}

.admin-user-cell,
.admin-place-cell,
.admin-item-cell {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 180px;
}

.admin-user-cell img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--rbx-divider);
}

.admin-place-cell img {
  width: 64px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.admin-item-cell img {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 1px solid var(--rbx-divider);
  object-fit: contain;
}

.min-w-0 {
  min-width: 0;
}

.admin-item-name {
  display: block;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-inline-select {
  width: auto;
}

.admin-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

.admin-item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
}

.admin-item-grid-scroll {
  max-height: 420px;
  overflow-y: auto;
}

.admin-item-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--rbx-border);
  background: var(--rbx-surface);
  color: var(--rbx-text);
}

.admin-item-tile:hover,
.admin-item-tile:focus-visible {
  border-color: var(--rbx-blue);
  text-decoration: none;
}

.admin-item-tile img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.admin-item-tile-name {
  display: -webkit-box;
  width: 100%;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.admin-item-tile-action {
  position: absolute;
  top: 4px;
  right: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--rbx-blue);
  color: #fff;
  font-size: 10px;
  opacity: 0;
}

.admin-item-tile:hover .admin-item-tile-action,
.admin-item-tile:focus-visible .admin-item-tile-action {
  opacity: 1;
}

@media (hover: none) {
  .admin-item-tile-action {
    opacity: 1;
  }
}

.admin-more summary,
.admin-advanced > summary {
  cursor: pointer;
}

.admin-advanced > summary {
  list-style: none;
}

.admin-advanced > summary::-webkit-details-marker {
  display: none;
}

.admin-advanced > summary::after {
  content: '\25B8';
  float: right;
  color: var(--rbx-text-secondary);
}

.admin-advanced[open] > summary::after {
  content: '\25BE';
}

.admin-pkg-results {
  max-height: 320px;
  margin-top: 6px;
  overflow-y: auto;
}

.admin-pkg-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 6px 0;
  border-bottom: 1px solid var(--rbx-divider);
}

.console-box {
  max-height: 220px;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid #343434;
  background: #111;
  color: #e5e7eb;
  font-family: monospace;
  font-size: 12px;
  white-space: pre-wrap;
}

.econ-table td,
.econ-table th {
  vertical-align: middle;
}

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

.econ-stat-grid > div {
  padding: 9px;
  border: 1px solid var(--rbx-divider);
}

.econ-stat-grid span {
  display: block;
  color: var(--rbx-text-secondary);
  font-size: 12px;
}

.econ-admin-fields {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--rbx-divider);
  background: var(--rbx-hover);
}

.econ-admin-title {
  margin-bottom: 8px;
  font-weight: 600;
}

.make-limited-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.make-limited-option {
  margin: 0;
  cursor: pointer;
}

.make-limited-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.make-limited-option span {
  display: block;
  padding: 10px 12px;
  border: 2px solid var(--rbx-border);
}

.make-limited-option span small {
  display: block;
  color: var(--rbx-text-secondary);
}

.make-limited-option input:checked + span {
  border-color: var(--rbx-green);
  background: #e3f7ec;
}

.admin-alpha-headshot {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--rbx-divider);
}

.admin-return-banner {
  position: fixed;
  z-index: 1031;
  top: 0;
  left: 0;
  right: 0;
  height: var(--rbx-banner-height);
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  overflow: hidden;
  white-space: nowrap;
  background: var(--rbx-orange);
  color: #fff;
}

.admin-return-banner > span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-return-banner .btn {
  flex: none;
  padding: 2px 10px;
}

.admin-return-banner a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
}

.admin-return-banner .btn {
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  font-weight: 600;
}

.admin-return-banner .btn:hover {
  background: #fff;
  color: var(--rbx-orange);
}

.avatar-stage-preview {
  position: relative;
  text-align: center;
}

@media (max-width: 991.98px) {
  .admin-layout {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-sidenav {
    position: static;
    flex-basis: auto;
    flex-direction: row !important;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .admin-sidenav .nav-link {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .admin-sidenav .nav-link.active {
    box-shadow: 0 -4px 0 0 var(--rbx-blue) inset;
  }

  .admin-nav-heading {
    display: none;
  }
}

/* ======================================================== body color picker */
.color-palette ul {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.color-palette ul li div {
  aspect-ratio: 1;
  border: 1px solid rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.color-palette ul li div:hover {
  box-shadow: 0 0 0 2px var(--rbx-blue);
}

/* ============================================================== dialogs */
.launch-dialog-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 24px 20px 20px;
  text-align: center;
}

.launch-dialog-logo {
  width: 80px;
  height: 80px;
}

.launch-dialog-body h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 400;
}

.launch-dialog-body p {
  margin: 0;
}

.launch-dialog-help {
  font-size: 13px;
}

#dialog-pickbc {
  width: min(400px, calc(100vw - 24px));
}

dialog :focus:not(:focus-visible) {
  outline: none;
}

/* 2016 membership tag (hard hat + BC/TBC/OBC plate) beside a name */
.membership-tag {
  display: inline-block;
  width: 52px;
  height: 27px;
  line-height: 0;
  vertical-align: middle;
}

.membership-tag svg {
  display: block;
  width: 100%;
  height: 100%;
}

.profile-name .membership-tag {
  margin-left: 6px;
}

/* ======================================= profile showcases (Creations, Groups) */
.showcase-modes {
  display: flex;
  gap: 4px;
}

.showcase-mode {
  width: 62px;
  height: 24px;
  padding: 0;
  border: 1px solid var(--rbx-border);
  border-radius: 3px;
  background: var(--rbx-surface);
  color: var(--rbx-text);
  font-size: 16px;
  line-height: 22px;
}

.showcase-mode.active {
  border-color: var(--rbx-blue);
  background: var(--rbx-blue);
  color: #fff;
}

.showcase {
  margin-bottom: 18px;
}

.showcase-slide {
  position: relative;
  display: flex;
  min-height: 300px;
  background: var(--rbx-surface);
  box-shadow: var(--rbx-shadow);
}

.showcase-art {
  display: flex;
  flex: 0 0 50%;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.showcase-art img.is-emblem {
  width: 240px;
  max-width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  background: var(--rbx-surface);
  object-fit: contain;
}

.showcase-art img.is-wide {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  object-fit: cover;
}

.showcase-info {
  display: flex;
  flex: 1 1 50%;
  flex-direction: column;
  min-width: 0;
  padding: 24px 30px;
}

.showcase-name {
  padding-bottom: 4px;
  border-bottom: 1px solid var(--rbx-border);
  color: var(--rbx-text);
  font-size: 30px;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.showcase-name:hover {
  color: var(--rbx-text);
}

.showcase-desc {
  margin: 12px 0;
  font-size: 15px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.showcase-stats {
  display: flex;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.showcase-stats li {
  flex: 1 1 0;
}

.showcase-stats .text-label {
  display: block;
  font-size: 16px;
  font-weight: 300;
}

.showcase-stats li > span:last-child {
  font-size: 17px;
  font-weight: 400;
}

.showcase-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 32px;
  height: 64px;
  margin-top: -32px;
  border: 0;
  background: rgba(25, 25, 25, 0.45);
  color: #fff;
  font-size: 26px;
}

.showcase-arrow:hover {
  background: rgba(25, 25, 25, 0.7);
}

.showcase-arrow.is-left {
  left: 0;
}

.showcase-arrow.is-right {
  right: 0;
}

.showcase-dots {
  position: absolute;
  bottom: 10px;
  left: 25%;
  display: flex;
  gap: 6px;
  transform: translateX(-50%);
}

.showcase-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}

.showcase-dots span.active {
  background: #fff;
}

@media (max-width: 767.98px) {
  .showcase-slide {
    flex-direction: column;
  }

  .showcase-art {
    padding: 20px 40px;
  }

  .showcase-art img.is-emblem {
    width: 160px;
  }

  .showcase-info {
    padding: 15px 20px 20px;
  }

  .showcase-name {
    font-size: 24px;
  }

  .showcase-stats {
    margin-top: 12px;
  }

  .showcase-arrow {
    top: 0;
    height: 48px;
    margin-top: 0;
  }

  .showcase-dots {
    left: 50%;
  }
}

/* ============================================================ Alphamons */
.am-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: -6px 0 15px;
  padding: 0 12px;
  background: var(--rbx-surface);
  box-shadow: var(--rbx-shadow);
}

.am-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
  color: var(--rbx-text);
  font-size: 22px;
  font-weight: 600;
  white-space: nowrap;
}

.am-logo i {
  color: var(--rbx-green);
  font-size: 26px;
}

.am-logo:hover {
  color: var(--rbx-text);
  text-decoration: none;
}

.am-menu {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.am-menu > li > a {
  display: block;
  padding: 14px 12px;
  color: var(--rbx-text);
  font-size: 16px;
  font-weight: 400;
}

.am-menu > li > a:hover,
.am-menu > li > a.active {
  box-shadow: inset 0 -4px 0 0 var(--rbx-blue);
  text-decoration: none;
}

.am-menu .ti-chevron-down {
  font-size: 12px;
}

.am-header-right {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.am-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--rbx-text);
  font-size: 22px;
}

.am-icon-btn:hover {
  background: var(--rbx-hover);
  color: var(--rbx-text);
}

.am-loading {
  padding: 60px 0;
  text-align: center;
}

.am-page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.am-page-header h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 400;
}

.am-page-header p {
  max-width: 720px;
  margin: 4px 0 0;
  font-size: 14px;
}

.am-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.am-hero {
  margin-bottom: 15px;
  padding: 30px 20px;
  background: linear-gradient(135deg, #0b6e3a, #02b757);
  color: #fff;
  text-align: center;
}

.am-hero h1 {
  margin: 0;
  color: #fff;
  font-size: 40px;
  font-weight: 600;
}

.am-hero p {
  margin: 4px 0 15px;
  font-size: 17px;
}

.am-hero-search {
  width: 100%;
  max-width: 480px;
  padding: 10px 14px;
  border: 0;
  border-radius: 3px;
  background: var(--rbx-surface);
  color: var(--rbx-text-secondary);
  font-size: 16px;
  text-align: left;
}

.am-stat-strip,
.am-stat-grid,
.am-headline,
.am-player-facts {
  margin: 0;
  padding: 0;
  list-style: none;
}

.am-stat-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 18px;
  background: var(--rbx-divider);
  box-shadow: var(--rbx-shadow);
}

.am-stat-strip li,
.am-stat-grid li {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  background: var(--rbx-surface);
}

.am-stat-strip b {
  font-size: 20px;
  font-weight: 400;
}

.am-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.am-list {
  margin-bottom: 18px;
  padding: 6px 15px;
}

.am-list-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 7px 0;
  border-bottom: 1px solid var(--rbx-divider);
  font-size: 14px;
}

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

.am-list-row img {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.am-list-row > a {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.am-list-row .ml-auto {
  flex: 0 0 auto;
}

.am-rank {
  min-width: 34px;
  color: var(--rbx-text-secondary);
  font-weight: 600;
}

.am-when {
  flex: 0 0 64px;
  text-align: right;
}

.am-deal-pct {
  flex: 0 0 auto;
  color: var(--rbx-green);
  font-weight: 600;
}

/* Demand, trend and flags */
.am-demand,
.am-trend {
  font-weight: 600;
}

.am-demand.d0, .am-trend.t0 { color: #e2231a; }
.am-demand.d1, .am-trend.t1 { color: #f68802; }
.am-demand.d2, .am-trend.t2 { color: #757575; }
.am-demand.d3 { color: #3fc679; }
.am-demand.d4, .am-trend.t3 { color: #02b757; }
.am-trend.t4 { color: #8b4fd8; }

.am-flags {
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.am-flag {
  display: inline-block;
  padding: 0 5px;
  border-radius: 3px;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 17px;
}

.am-flag.is-projected { background: #e2231a; }
.am-flag.is-hyped { background: #f68802; }
.am-flag.is-rare { background: #8b4fd8; }

/* Item cards */
.am-item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.am-item-card {
  min-width: 0;
  background: var(--rbx-surface);
  box-shadow: var(--rbx-shadow);
}

.am-item-card:hover {
  box-shadow: var(--rbx-shadow-hover);
}

.am-item-card > a {
  display: block;
  color: var(--rbx-text);
  text-decoration: none;
}

.am-item-card.is-lucky-cat {
  box-shadow: 0 0 0 2px #f5b400, var(--rbx-shadow);
}

.am-item-thumb {
  position: relative;
  aspect-ratio: 1;
  border-bottom: 1px solid var(--rbx-divider);
}

.am-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.am-item-thumb .item-card-serial {
  top: auto;
  bottom: 4px;
}

.am-stack {
  position: absolute;
  right: 4px;
  top: 4px;
  padding: 0 5px;
  border-radius: 3px;
  background: var(--rbx-blue);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.am-cat-mark {
  position: absolute;
  left: 4px;
  bottom: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f5b400;
  color: #fff;
  line-height: 24px;
  text-align: center;
}

.am-item-name {
  display: block;
  padding: 6px 9px 0;
  overflow: hidden;
  font-size: 15px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.am-item-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 8px;
  margin: 0;
  padding: 4px 9px 9px;
  font-size: 13px;
}

.am-item-stats dt {
  color: var(--rbx-label);
  font-weight: 400;
}

.am-item-stats dd {
  margin: 0;
  overflow: hidden;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.am-toolbar > .input-field,
.am-toolbar select {
  width: auto;
  min-width: 150px;
}

.am-toolbar label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--rbx-text-secondary);
  font-size: 14px;
  font-weight: 400;
}

.am-toolbar .am-num {
  min-width: 0;
  width: 130px;
}

.am-toolbar .am-wide {
  flex: 1 1 300px;
}

/* Tables */
.am-table-wrap {
  overflow-x: auto;
  padding: 0;
}

.am-table {
  margin: 0;
  font-size: 14px;
}

.am-table th {
  cursor: pointer;
  white-space: nowrap;
}

.am-table th.is-sorted {
  color: var(--rbx-text);
}

.am-table td {
  vertical-align: middle;
  white-space: nowrap;
}

.am-table td img {
  width: 28px;
  height: 28px;
  margin-right: 8px;
  object-fit: contain;
  vertical-align: middle;
}

.am-owner-cell img.avatar-headshot {
  border-radius: 50%;
}

.am-table tr.is-me td {
  background: #eaf7ff;
}

.am-col-menu {
  max-height: 340px;
  overflow-y: auto;
}

.am-col-menu label {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
  font-weight: 400;
  cursor: pointer;
}

/* Item page */
.am-item-header {
  display: flex;
  gap: 20px;
  margin-bottom: 12px;
  padding: 15px;
}

.am-item-header-thumb {
  position: relative;
  flex: 0 0 180px;
  height: 180px;
  border: 1px solid var(--rbx-divider);
}

.am-item-header-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.am-game-header-thumb {
  flex: 0 0 320px;
}

.am-game-header-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.am-item-header-main {
  flex: 1 1 auto;
  min-width: 0;
}

.am-item-header-main h1,
.am-player-main h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.am-item-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 4px 0 12px;
  font-size: 14px;
}

.am-headline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 36px;
}

.am-headline li {
  display: flex;
  flex-direction: column;
}

.am-headline b {
  font-size: 22px;
  font-weight: 400;
}

.am-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1px;
  margin-bottom: 18px;
  background: var(--rbx-divider);
  box-shadow: var(--rbx-shadow);
}

.am-stat-grid .text-label {
  font-size: 13px;
}

.am-editor {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 14px;
  margin-bottom: 18px;
}

.am-editor > label:not(.settings-check) {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  color: var(--rbx-label);
  font-size: 13px;
}

.am-editor .input-field {
  width: 150px;
}

.am-desc {
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.am-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 14px;
}

/* Charts */
.am-chart-tabs {
  margin-bottom: 10px;
  box-shadow: none;
  border-bottom: 1px solid var(--rbx-divider);
}

.am-ranges {
  display: flex;
  justify-content: flex-end;
  gap: 2px;
  margin-bottom: 6px;
}

.am-ranges button {
  padding: 2px 9px;
  border: 1px solid var(--rbx-border);
  background: var(--rbx-surface);
  color: var(--rbx-text);
  font-size: 12px;
}

.am-ranges button.active {
  border-color: var(--rbx-blue);
  background: var(--rbx-blue);
  color: #fff;
}

.container-header .am-ranges {
  margin: 0;
}

.am-chart {
  position: relative;
  padding-bottom: 20px;
}

.am-chart svg {
  display: block;
  width: 100%;
  height: 220px;
}

.am-grid {
  stroke: var(--rbx-divider);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.am-cursor {
  stroke: var(--rbx-label);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.am-axis-y span {
  position: absolute;
  left: 0;
  transform: translateY(50%);
  color: var(--rbx-text-secondary);
  font-size: 11px;
}

.am-axis-x span {
  position: absolute;
  bottom: 0;
  transform: translateX(-50%);
  color: var(--rbx-text-secondary);
  font-size: 11px;
  white-space: nowrap;
}

.am-axis-x span.is-first { transform: none; }
.am-axis-x span.is-last { transform: translateX(-100%); }

.am-tip {
  position: absolute;
  top: 8px;
  z-index: 5;
  display: none;
  padding: 6px 9px;
  border-radius: 3px;
  background: rgba(25, 25, 25, 0.88);
  color: #fff;
  font-size: 12px;
  pointer-events: none;
  white-space: nowrap;
}

.am-tip i,
.am-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 5px;
  border-radius: 2px;
}

.am-tip-date {
  color: #b8b8b8;
}

.am-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 4px;
  color: var(--rbx-text-secondary);
  font-size: 13px;
}

.am-chart-empty {
  padding: 40px 0;
  color: var(--rbx-text-secondary);
  text-align: center;
}

/* Live markers, deals */
.am-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--rbx-green);
  font-weight: 600;
}

.am-live i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--rbx-green);
  animation: am-pulse 1.6s infinite;
}

@keyframes am-pulse {
  50% { opacity: 0.3; }
}

.am-deal-key {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.am-deal-tier {
  padding: 2px 8px;
  font-size: 12px;
}

.am-deal-tier.t1, .am-deal-row.t1 td { background: #effaf3; }
.am-deal-tier.t2, .am-deal-row.t2 td { background: #d8f3e3; }
.am-deal-tier.t3, .am-deal-row.t3 td { background: #b9ebce; }
.am-deal-tier.t4, .am-deal-row.t4 td { background: #92dfb3; }
.am-deal-tier.t5, .am-deal-row.t5 td { background: #63d193; }

/* Trade calculator and pickers */
.am-calc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

.am-calc-side h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 400;
}

.am-calc-side .trade-slot button {
  display: block;
  width: 100%;
  padding: 0;
  cursor: pointer;
}

.am-calc-bux {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  color: var(--rbx-text-secondary);
  font-weight: 400;
}

.am-calc-bux .input-field {
  width: 140px;
}

.am-picker {
  position: relative;
}

.am-picker .input-field {
  width: 100%;
}

.am-picker-results {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  z-index: 20;
  max-height: 280px;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  background: var(--rbx-surface);
  box-shadow: var(--rbx-shadow-hover);
  list-style: none;
}

.am-picker-results:empty {
  display: none;
}

.am-picker-results button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 10px;
  border: 0;
  background: var(--rbx-surface);
  font-size: 14px;
  text-align: left;
}

.am-picker-results button:hover {
  background: var(--rbx-hover);
}

.am-picker-results img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.am-picker-results span {
  margin-left: auto;
  color: var(--rbx-text-secondary);
}

.am-calc-result {
  padding: 0;
}

/* Trade ads */
.am-tag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.am-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: 1px solid var(--rbx-border);
  border-radius: 14px;
  background: var(--rbx-surface);
  color: var(--rbx-text);
  font-size: 13px;
}

.am-tag.active {
  border-color: var(--rbx-blue);
  background: var(--rbx-blue);
  color: #fff;
}

.am-ads {
  margin: 0;
  padding: 0;
  list-style: none;
}

.am-ad {
  margin-bottom: 12px;
  padding: 12px 15px;
}

.am-ad-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.am-ad-head img {
  width: 40px;
  height: 40px;
}

.am-ad-head > div:nth-child(2) {
  display: flex;
  flex-direction: column;
  font-size: 15px;
}

.am-ad-actions {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.am-ad-body {
  display: flex;
  align-items: center;
  gap: 15px;
}

.am-ad-side {
  flex: 1 1 0;
  min-width: 0;
}

.am-ad-side ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0;
  padding: 0;
  list-style: none;
}

.am-ad-label {
  color: var(--rbx-label);
  font-size: 13px;
}

.am-ad-item,
.am-ad-tag {
  position: relative;
  width: 76px;
  border: 1px solid var(--rbx-border);
  text-align: center;
}

.am-ad-item img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.am-ad-item-value {
  display: block;
  border-top: 1px solid var(--rbx-divider);
  font-size: 12px;
}

.am-ad-tag {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  height: auto;
  background: var(--rbx-hover);
  font-size: 12px;
}

.am-ad-tag i {
  color: var(--rbx-blue);
  font-size: 26px;
}

.am-ad-bux {
  display: flex;
  align-items: center;
}

.am-ad-arrow {
  color: var(--rbx-label);
  font-size: 28px;
}

.am-pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.am-pick-grid button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--rbx-border);
  background: var(--rbx-surface);
}

.am-pick-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.am-pick-grid li.is-picked button {
  border-color: var(--rbx-blue);
  box-shadow: 0 0 0 1px var(--rbx-blue);
}

.am-pick-grid li.is-picked .avatar-item-check {
  display: block;
}

.am-ad-request {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.am-ad-request li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid var(--rbx-border);
  font-size: 14px;
}

.am-ad-request img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.am-search-results h6 {
  margin: 12px 0 4px;
  color: var(--rbx-text-secondary);
  font-size: 13px;
  text-transform: uppercase;
}

.am-search-results ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.am-search-results a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  color: var(--rbx-text);
}

.am-search-results a:hover {
  background: var(--rbx-hover);
  text-decoration: none;
}

.am-search-results img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.am-search-results small {
  margin-left: auto;
  color: var(--rbx-text-secondary);
}

/* Players */
.am-player-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 12px;
  padding: 15px;
}

.am-player-headshot {
  width: 120px;
  height: 120px;
}

.am-player-main {
  flex: 1 1 auto;
  min-width: 0;
}

.am-player-main h1 a {
  font-size: 20px;
}

.am-player-main .am-headline {
  margin: 8px 0 12px;
}

.am-player-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  font-size: 14px;
}

.am-player-facts li {
  display: flex;
  flex-direction: column;
}

.am-player-facts .text-label {
  font-size: 12px;
}

.am-luckycat-banner {
  margin-bottom: 12px;
  padding: 10px 15px;
  background: #fff6d6;
  box-shadow: var(--rbx-shadow);
}

.am-luckycat-banner i {
  color: #d99a00;
}

.am-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.am-badge-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 88px;
  font-size: 12px;
  text-align: center;
}

.am-badge-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--rbx-blue);
  color: #fff;
  font-size: 26px;
}

.am-badge-icon.g-website { background: #00a2ff; }
.am-badge-icon.g-inventoryvalue { background: #02b757; }
.am-badge-icon.g-itemsandserials { background: #f68802; }
.am-badge-icon.g-rares { background: #8b4fd8; }
.am-badge-icon.g-hoarding { background: #e2231a; }
.am-badge-icon.g-collecting { background: #0074bd; }
.am-badge-icon.is-locked { background: #d0d0d0; }

.am-badges {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin: 0 0 18px;
  list-style: none;
}

.am-badges li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.am-badges li > div {
  display: flex;
  flex-direction: column;
  font-size: 14px;
}

.am-badges b {
  font-weight: 600;
}

.am-my-rank {
  margin-bottom: 12px;
}

.am-date {
  width: auto;
  height: 30px;
  padding: 2px 8px;
  font-size: 14px;
}

.am-luckycat {
  display: flex;
  gap: 20px;
  margin-bottom: 18px;
}

.am-luckycat-thumb {
  width: 160px;
  height: 160px;
  border: 1px solid var(--rbx-divider);
  object-fit: contain;
}

.am-luckycat h2 {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 400;
}

/* Games */
.am-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.am-game-card {
  padding: 0;
}

.am-game-card > a {
  display: block;
  color: var(--rbx-text);
}

.am-game-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.am-game-name {
  display: block;
  padding: 6px 9px 0;
  overflow: hidden;
  font-size: 16px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.am-col-name a {
  color: var(--rbx-blue);
}

@media (max-width: 991.98px) {
  .am-columns,
  .am-calc {
    grid-template-columns: 1fr;
  }

  .am-stat-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .am-header {
    flex-wrap: wrap;
    gap: 0 10px;
  }

  /* Wraps onto a second row instead of scrolling sideways: a scrolling row clipped the
     dropdowns (they flipped up over the header and lost their first items). */
  .am-menu {
    order: 3;
    flex-basis: 100%;
    flex-wrap: wrap;
  }

  .am-menu > li > a {
    padding: 10px 9px;
    white-space: nowrap;
  }

  .am-item-header,
  .am-player-header,
  .am-luckycat {
    flex-direction: column;
  }

  .am-item-header-thumb {
    flex-basis: auto;
    width: 160px;
  }

  .am-game-header-thumb {
    flex-basis: auto;
  }

  .am-player-headshot {
    width: 84px;
    height: 84px;
  }

  .am-ad-body {
    flex-direction: column;
    align-items: stretch;
  }

  .am-ad-arrow {
    align-self: center;
    transform: rotate(90deg);
  }

  .am-hero h1 {
    font-size: 30px;
  }
}

@media (max-width: 575.98px) {
  .am-stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .am-item-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .am-toolbar > .input-field,
  .am-toolbar select {
    flex: 1 1 140px;
    min-width: 0;
  }
}

/* Small headshots in Alphamons lists stay plain; the player page header keeps its marks. */
#view-alphamons .hs-flair-mark { display: none; }
#view-alphamons .am-player-header .hs-flair-mark { display: block; }

/* ============================================================ announcements */
/* Bars under the header, like 2016's site-wide alert. */
.site-announcement {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 40px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
  text-align: center;
  color: #fff;
  background: var(--rbx-blue);
}

.site-announcement + .site-announcement {
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.site-announcement-warning {
  background: #f6b702;
  color: var(--rbx-text);
}

.site-announcement-success {
  background: var(--rbx-green);
}

.site-announcement-danger {
  background: var(--rbx-red);
}

.site-announcement-text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.site-announcement a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  margin-left: 4px;
}

.site-announcement-close {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: 24px;
  line-height: 1;
  opacity: 0.8;
  cursor: pointer;
}

.site-announcement-close:hover {
  opacity: 1;
}

.admin-ann-preview .site-announcement {
  border-radius: 3px;
}

.admin-ann-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--rbx-blue);
}

.admin-ann-dot-warning { background: #f6b702; }
.admin-ann-dot-success { background: var(--rbx-green); }
.admin-ann-dot-danger { background: var(--rbx-red); }

/* ============================================================ badges page */
.badges-header {
  align-items: baseline;
}

.badges-summary {
  color: var(--rbx-text-secondary);
  font-size: 16px;
}

.badges-summary b {
  color: var(--rbx-text);
}

.badges-note {
  margin: -6px 0 10px;
  font-size: 14px;
}

.badge-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 12px;
  margin: 0 0 24px;
  padding: 12px;
  list-style: none;
}

.badge-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--rbx-divider);
  border-radius: 3px;
  background: var(--rbx-surface);
}

.badge-card:target {
  border-color: var(--rbx-blue);
  box-shadow: 0 0 0 2px rgba(0, 162, 255, 0.35);
}

.badge-card-art {
  flex: 0 0 84px;
  height: 78px;
}

.badge-card-art svg {
  width: 100%;
  height: 100%;
}

/* Not earned yet: greyed out, as 2016 showed badges you didn't have. */
.badge-card.is-locked .badge-card-art {
  filter: grayscale(1);
  opacity: 0.45;
}

.badge-card-info {
  flex: 1 1 auto;
  min-width: 0;
}

.badge-card-name {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--rbx-text);
}

.badge-card-earned {
  margin-left: 8px;
  color: var(--rbx-green);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-card-desc {
  margin-top: 3px;
  font-size: 14px;
  color: var(--rbx-text);
}

.badge-card-how {
  margin-top: 3px;
  font-size: 13px;
  color: var(--rbx-text-secondary);
}

.badge-card-owners {
  margin-top: 5px;
  font-size: 12px;
  color: var(--rbx-text-secondary);
}

.badge-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.badge-progress-bar {
  flex: 1 1 auto;
  height: 8px;
  border-radius: 4px;
  background: var(--rbx-divider);
  overflow: hidden;
}

.badge-progress-bar span {
  display: block;
  height: 100%;
  background: var(--rbx-blue);
}

.badge-progress-text {
  flex: none;
  font-size: 12px;
  color: var(--rbx-text-secondary);
}

.profile-badge-art + .item-card-name,
#profile-badges-list a:hover .item-card-name {
  text-decoration: none;
}

@media (max-width: 480px) {
  .badge-cards {
    grid-template-columns: 1fr;
    padding: 8px;
  }
}

.group-games {
  padding: 12px 15px;
}

/* ============================================================ Android app */
/* Only inside the app's built-in browser (html.in-app); the app already plays Alphaland. */
.app-only {
  display: none;
}

html.in-app .app-only {
  display: block;
}

html.in-app a[href="/studio"],
html.in-app li:has(> a[href="/studio"]) {
  display: none !important;
}

/* Admin > Monitor (monitor-ui.js) */
.mon-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.mon-toolbar-spacer {
  flex: 1 1 auto;
}

.mon-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.mon-status.is-good i {
  color: var(--rbx-green);
}

.mon-status.is-warn i {
  color: var(--rbx-orange);
}

.mon-status.is-bad i {
  color: var(--rbx-red);
}

.mon-charts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.mon-chart {
  --mon-line: #0074bd;
  position: relative;
  margin: 0;
  padding: 10px 12px 6px;
  background: var(--rbx-surface);
  box-shadow: var(--rbx-shadow);
}

:root[data-theme='dark'] .mon-chart,
:root[data-theme='obc'] .mon-chart {
  --mon-line: #2b9be0;
}

.mon-chart figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.mon-chart-title {
  font-size: 13px;
  color: var(--rbx-text-secondary);
}

.mon-chart-value {
  font-size: 18px;
  color: var(--rbx-text);
}

.mon-chart svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.mon-line {
  fill: none;
  stroke: var(--mon-line);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.mon-area {
  fill: var(--mon-line);
  opacity: 0.12;
}

.mon-grid {
  stroke: var(--rbx-divider);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.mon-axis,
.mon-empty {
  fill: var(--rbx-text-secondary);
  font-size: 9px;
}

.mon-cross {
  stroke: var(--rbx-text-secondary);
  stroke-width: 1;
  stroke-dasharray: 2 2;
  vector-effect: non-scaling-stroke;
}

.mon-hover-dot {
  fill: var(--mon-line);
  stroke: var(--rbx-surface);
  stroke-width: 2;
}

.mon-hit {
  fill: transparent;
  cursor: crosshair;
}

.mon-tip {
  position: absolute;
  top: 30px;
  transform: translateX(-50%);
  padding: 2px 8px;
  background: var(--rbx-surface);
  box-shadow: var(--rbx-shadow);
  color: var(--rbx-text);
  font-size: 12px;
  white-space: nowrap;
  pointer-events: none;
}

.mon-tip span {
  color: var(--rbx-text-secondary);
}

.mon-text-warn {
  color: var(--rbx-orange);
}

.mon-events {
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 320px;
  overflow-y: auto;
}

.mon-event {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 4px 0;
  border-bottom: 1px solid var(--rbx-divider);
  font-size: 13px;
}

.mon-event i {
  flex: 0 0 14px;
  color: var(--rbx-text-secondary);
}

.mon-event.is-restart i,
.mon-event.is-error i {
  color: var(--rbx-red);
}

.mon-event.is-warning i {
  color: var(--rbx-orange);
}

.mon-event.is-cleanup i {
  color: var(--rbx-green);
}

.mon-event-time {
  flex: 0 0 auto;
  color: var(--rbx-text-secondary);
  white-space: nowrap;
}

.mon-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--rbx-text);
  font-weight: 600;
}

.mon-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rbx-green);
  animation: mon-pulse 2s ease-in-out infinite;
}

@keyframes mon-pulse {
  50% {
    opacity: 0.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mon-live-dot {
    animation: none;
  }
}

/* an outfit whose own picture is still being drawn */
.outfit-pending {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  color: var(--rbx-text-secondary);
  font-size: 12px;
}

.item-card-stock.is-sold-out {
  background: var(--rbx-text-secondary);
}

/* ======================================== admin: search Roblox (roblox-search-ui.js) */
.rs-card {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rbx-border);
}

.rs-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px 160px auto;
  gap: 8px;
  align-items: center;
}

.rs-filters {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}

.rs-filters label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
}

.rs-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rs-note {
  grid-column: 1 / -1;
  color: var(--rbx-text-secondary);
  font-size: 13px;
}

.rs-item {
  position: relative;
  min-width: 0;
}

.rs-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid var(--rbx-border);
  border-radius: 3px;
  background: var(--rbx-surface);
  overflow: hidden;
  cursor: pointer;
}

.rs-thumb:hover {
  border-color: var(--rbx-blue);
}

.rs-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rs-nothumb {
  color: var(--rbx-text-secondary);
  font-size: 12px;
}

.rs-item.is-picked .rs-thumb {
  border-color: var(--rbx-red);
  box-shadow: 0 0 0 2px var(--rbx-red);
}

.rs-item.is-imported .rs-thumb {
  opacity: 0.6;
}

.rs-pick {
  position: absolute;
  top: 4px;
  left: 6px;
  z-index: 3;
  margin: 0;
}

.rs-imported {
  position: absolute;
  top: 4px;
  right: 4px;
  padding: 0 4px;
  border-radius: 3px;
  background: var(--rbx-green);
  color: #fff;
  font-size: 10px;
}

.rs-name {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rs-meta {
  display: block;
  color: var(--rbx-text-secondary);
  font-size: 11px;
}

.rs-bulk {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: 3px;
  background: var(--rbx-surface-2, rgba(0, 0, 0, 0.04));
}

@media (max-width: 767.98px) {
  .rs-form {
    grid-template-columns: 1fr 1fr;
  }

  .rs-form input {
    grid-column: 1 / -1;
  }
}

/* ============================================ My Transactions (transactions-ui.js) */
.bux-menu-balance {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  white-space: nowrap;
}

.tx-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.tx-header h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 300;
}

.tx-range,
.tx-custom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.tx-range select {
  width: 170px;
}

.tx-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 300;
}

.tx-totals .text-label {
  display: block;
  font-size: 13px;
}

.tx-breakdown {
  max-width: 460px;
  margin: 0;
}

.tx-breakdown td {
  padding: 4px 0;
  border-top: 1px solid var(--rbx-border);
}

.tx-tabs {
  margin-top: 15px;
}

.tx-table {
  margin: 0;
}

.tx-table th {
  color: var(--rbx-text-secondary);
  font-size: 13px;
  font-weight: 600;
  border-top: 0;
}

.tx-table td {
  vertical-align: middle;
}

.tx-date small {
  display: block;
  color: var(--rbx-text-secondary);
}

.tx-label {
  display: block;
  font-weight: 600;
}

.tx-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tx-item img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border: 1px solid var(--rbx-border);
  border-radius: 2px;
  background: var(--rbx-surface);
}

.tx-bux {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.tx-bux.is-in {
  color: var(--rbx-green);
}

.tx-bux.is-out {
  color: var(--rbx-red);
}

.tx-table-wrap {
  overflow-x: auto;
}

.rs-own {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

/* ---- Game passes: a game's Store tab and Configure Place > Store (gamepasses-ui.js) ---- */
.gamepass-cards {
  list-style: none;
  margin: 0;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  background: var(--rbx-surface);
}
.gamepass-cards .empty-state { grid-column: 1 / -1; }
.gamepass-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 8px;
  border: 1px solid var(--rbx-border);
  border-radius: 4px;
  background: var(--rbx-surface);
  transition: box-shadow 0.3s, border-color 0.3s;
}
.gamepass-card.is-highlighted { border-color: #00a2ff; box-shadow: 0 0 0 2px rgba(0, 162, 255, 0.35); }
.gamepass-icon { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; background: var(--rbx-divider); }
.gamepass-name { margin-top: 8px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gamepass-price { color: #02b757; margin-top: 2px; }
.gamepass-desc { color: var(--rbx-text-secondary); font-size: 12px; margin: 6px 0 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.gamepass-action { margin-top: auto; padding-top: 10px; }
.gamepass-owned { color: #02b757; font-weight: 600; }

.store-create-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.store-create-form .input-field { width: auto; flex: 1 1 160px; }
.store-create-form .store-price { flex: 0 1 110px; }
.store-roblox-id { flex: 0 1 180px; }
.store-row { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--rbx-divider); }
.store-row-icon { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 0 0 72px; }
.store-row-icon img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--rbx-divider); }
.store-row-fields { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.store-row-fields textarea { width: 100%; resize: vertical; }
.store-row-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.store-row-line > .input-field { flex: 1 1 160px; width: auto; }
.store-price-field { display: inline-flex; align-items: center; gap: 4px; }
.store-price-field .input-field { width: 110px; }
.store-id { font-size: 12px; padding: 2px 6px; border-radius: 3px; background: var(--rbx-divider); color: var(--rbx-text-secondary); white-space: nowrap; }
.store-sales { font-size: 12px; }
.store-row-actions { margin-left: auto; display: inline-flex; gap: 6px; }
.tx-item-deleted { color: var(--rbx-text-secondary); }
@media (max-width: 600px) {
  .store-row { flex-direction: column; }
  .store-row-icon { flex-direction: row; }
  .store-row-actions { margin-left: 0; }
}
