/*
 * Alphaland site design, rebuilt after the 2016 ROBLOX website (mid-2016 "leanbase" styles):
 * grey #E3E3E3 page, #0074BD header, white left navigation, white sections with a soft shadow,
 * Source Sans Pro at weight 300, green primary / blue secondary / white control buttons.
 * Values come from that site's own stylesheets (archived leanbase/page CSS).
 *
 * Bootstrap 4 is underneath for the grid and the dropdown/modal/tab scripts only; its visual
 * components are restyled here so old and new markup look the same.
 */

/* ============================================================ tokens */
:root {
  --rbx-header: #0074bd;
  --rbx-blue: #00a2ff;
  --rbx-blue-hover: #32b5ff;
  --rbx-green: #02b757;
  --rbx-green-hover: #3fc679;
  --rbx-red: #e2231a;
  --rbx-red-soft: #e27676;
  --rbx-orange: #f68802;
  --rbx-text: #191919;
  --rbx-text-secondary: #757575;
  --rbx-label: #b8b8b8;
  --rbx-border: #b8b8b8;
  --rbx-divider: #e3e3e3;
  --rbx-page: #e3e3e3;
  --rbx-hover: #f2f2f2;
  --rbx-surface: #fff; /* sections, cards, menus, inputs */
  --rbx-link: var(--rbx-blue);
  --rbx-shadow: 0 1px 4px 0 rgba(25, 25, 25, 0.3);
  --rbx-shadow-hover: 0 1px 6px 0 rgba(25, 25, 25, 0.75);
  --rbx-btn-shadow: 0 1px 3px rgba(150, 150, 150, 0.74);
  --rbx-font: 'Source Sans Pro', Arial, Helvetica, sans-serif;
  --rbx-header-height: 40px;
  --rbx-nav-width: 175px;
  /* The "using the site as Alphaland" bar sits above the header and pushes it down. */
  --rbx-banner-height: 0px;
  --rbx-top: calc(var(--rbx-header-height) + var(--rbx-banner-height));
}

html.has-admin-banner {
  --rbx-banner-height: 36px;
}

/* ============================================================== base */
html {
  min-height: 100%;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--rbx-page);
  color: var(--rbx-text);
  font-family: var(--rbx-font);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.42857;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--rbx-text);
  font-family: var(--rbx-font);
  line-height: 1.25;
}

h1 { font-size: 36px; font-weight: 400; }
h2 { font-size: 30px; font-weight: 400; }
h3 { font-size: 24px; font-weight: 300; }
h4 { font-size: 21px; font-weight: 400; }
h5 { font-size: 18px; font-weight: 400; }
h6 { font-size: 16px; font-weight: 400; }

b, strong { font-weight: 600; }

a { color: var(--rbx-link); }
a:hover, a:focus { color: var(--rbx-link); cursor: pointer; }

hr {
  border: 0;
  border-top: 1px solid var(--rbx-divider);
  margin: 12px 0;
}

::selection {
  background: rgba(0, 162, 255, 0.3);
}

.text-secondary { color: var(--rbx-text-secondary) !important; font-size: 12px; font-weight: 400; }
.text-label { color: var(--rbx-label); font-weight: 400; }
.text-muted { color: var(--rbx-text-secondary) !important; }
.text-link, .text-name { color: var(--rbx-blue) !important; font-weight: 400; }
.text-link:hover, .text-name:hover { text-decoration: underline; }
.text-robux { color: var(--rbx-green) !important; font-weight: 400; }
.text-error, .text-danger { color: var(--rbx-red) !important; }
.text-success { color: var(--rbx-green) !important; }
.text-warning { color: var(--rbx-orange) !important; }
.text-overflow { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.font-weight-bold { font-weight: 600 !important; }
.small, small { font-size: 12px; font-weight: 400; }

/* Alphabux (the site's Robux) icon in green, tinted from the black artwork. */
.icon-bux {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.12em;
  background: currentColor;
  -webkit-mask: url(/alphaland/cdn/imgs/alphabux-black-1024.png) center / contain no-repeat;
  mask: url(/alphaland/cdn/imgs/alphabux-black-1024.png) center / contain no-repeat;
}

/* ============================================================ header */
.rbx-header {
  position: fixed;
  z-index: 1030;
  top: var(--rbx-banner-height);
  left: 0;
  right: 0;
  height: var(--rbx-header-height);
  background: var(--rbx-header);
  color: #fff;
}

.rbx-header .rbx-header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 12px;
  gap: 6px;
}

.rbx-header a,
.rbx-header a:hover,
.rbx-header a:focus {
  color: #fff;
  text-decoration: none;
}

.rbx-nav-collapse {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 5px;
  background: none;
  color: #fff;
  font-size: 24px;
  position: relative;
}

.rbx-nav-collapse:hover {
  background: rgba(25, 25, 25, 0.1);
}

.rbx-nav-collapse .notification-red {
  position: absolute;
  top: 0;
  left: 18px;
}

.rbx-navbar-brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  height: 40px;
  margin-right: 18px;
}

/* The wordmark gets the white outline the 2016 logo had on the blue bar. */
.rbx-navbar-brand .brand-wordmark {
  height: 26px;
  filter: drop-shadow(1px 0 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 1px 0 #fff) drop-shadow(0 -1px 0 #fff);
}

.rbx-navbar-brand .brand-icon {
  display: none;
  width: 28px;
  height: 28px;
}

.rbx-navbar {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rbx-navbar .nav-menu-title,
.rbx-navbar-right .nav-menu-title {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 5px;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  white-space: nowrap;
  user-select: none;
}

.rbx-navbar .nav-menu-title:hover,
.rbx-navbar .nav-menu-title.active,
.rbx-navbar-right .nav-menu-title:hover {
  background: rgba(25, 25, 25, 0.1);
}

.rbx-navbar-search {
  position: relative;
  flex: 0 1 320px;
  margin-left: 12px;
}

.rbx-navbar-search .input-field {
  width: 100%;
  height: 28px;
  padding: 0 32px 0 10px;
  border: 1px solid #fff;
  border-radius: 3px;
  background: var(--rbx-surface);
  font-size: 16px;
}

.rbx-navbar-search .search-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 6px;
  border: 0;
  background: none;
  color: var(--rbx-text);
  font-size: 18px;
  line-height: 22px;
}

.bux-short {
  display: none;
}

.rbx-navbar-search .rbx-search-menu {
  position: absolute;
  top: 32px;
  left: 0;
  right: 0;
  display: none;
  padding: 0;
  margin: 0;
  list-style: none;
  background: var(--rbx-surface);
  border-radius: 3px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  z-index: 1040;
}

.rbx-navbar-search.open .rbx-search-menu {
  display: block;
}

.rbx-search-menu a {
  display: block;
  padding: 10px 12px;
  color: var(--rbx-text) !important;
  font-weight: 400;
}

.rbx-search-menu a:hover,
.rbx-search-menu a.selected {
  background: var(--rbx-hover);
  box-shadow: 4px 0 0 0 var(--rbx-blue) inset;
}

.rbx-navbar-right {
  display: flex;
  align-items: center;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
  gap: 2px;
}

.rbx-navbar-right .rbx-menu-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 5px;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  white-space: nowrap;
}

.rbx-navbar-right .rbx-menu-item:hover {
  background: rgba(25, 25, 25, 0.1);
}

.rbx-navbar-right .rbx-menu-item i {
  font-size: 26px;
  line-height: 1;
}

.rbx-navbar-right .rbx-menu-item .icon-bux {
  width: 24px;
  height: 24px;
  color: #fff;
}

.rbx-navbar-right .notification-red {
  margin-left: -10px;
  align-self: flex-start;
}

.rbx-navbar-right .dropdown-menu {
  margin-top: 6px;
}

/* ====================================================== left navigation */
.rbx-left-col {
  position: fixed;
  z-index: 1020;
  top: var(--rbx-top);
  bottom: 0;
  left: 0;
  width: var(--rbx-nav-width);
  overflow-y: auto;
  background: var(--rbx-surface);
  box-shadow: 0 0 3px 0 rgba(25, 25, 25, 0.3);
}

.rbx-left-col ul {
  margin: 0;
  padding: 5px 10px 12px;
  list-style: none;
}

.rbx-left-col li {
  position: relative;
  margin: 5px 0;
  line-height: 1.42857;
}

.rbx-left-col .text-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0 9px;
  border-bottom: 1px solid var(--rbx-divider);
  margin-bottom: 8px;
  color: var(--rbx-text) !important;
  font-size: 16px;
  font-weight: 400;
}

.rbx-left-col .text-header img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--rbx-hover);
  object-fit: cover;
}

.rbx-left-col .text-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
  color: var(--rbx-text);
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
}

.rbx-left-col .text-nav:hover,
.rbx-left-col .text-nav.active {
  color: var(--rbx-text);
  text-decoration: none;
}

.rbx-left-col .text-nav i {
  width: 24px;
  color: var(--rbx-text);
  font-size: 24px;
  text-align: center;
}

.rbx-left-col .text-nav.active span:not(.notification-blue) {
  font-weight: 600;
}

.rbx-left-col .notification-blue {
  position: absolute;
  top: 4px;
  right: 0;
}

.rbx-left-col .rbx-upgrade-now {
  display: block;
  margin: 12px 0 6px;
  text-align: center;
}

.rbx-left-col .rbx-upgrade-now .btn-secondary-md {
  width: 100%;
}

/* Page area beside the navigation */
.rbx-body {
  padding-top: var(--rbx-top);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.rbx-content {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 15px 24px;
}

@media (min-width: 1200px) {
  .rbx-body.has-left-col {
    padding-left: var(--rbx-nav-width);
  }
}

@media (max-width: 1199.98px) {
  .rbx-nav-collapse {
    display: inline-flex;
  }

  .rbx-left-col {
    transform: translateX(-100%);
    transition: transform 0.2s ease-in-out;
  }

  body.rbx-nav-open .rbx-left-col {
    transform: none;
  }

  .rbx-nav-backdrop {
    position: fixed;
    z-index: 1010;
    inset: var(--rbx-top) 0 0 0;
    background: rgba(25, 25, 25, 0.35);
    display: none;
  }

  body.rbx-nav-open .rbx-nav-backdrop {
    display: block;
  }
}

/* Narrow screens: 2016's two-row header, with the search on its own line. */
@media (max-width: 767.98px) {
  :root {
    --rbx-header-height: 80px;
  }

  .rbx-header .rbx-header-inner {
    flex-wrap: wrap;
    align-content: flex-start;
    padding: 0 6px;
    row-gap: 0;
  }

  .rbx-header .rbx-header-inner > * {
    height: 40px;
    display: flex;
    align-items: center;
  }

  .rbx-navbar-brand {
    margin-right: 4px;
  }

  .rbx-navbar-brand .brand-wordmark {
    display: none;
  }

  .rbx-navbar-brand .brand-icon {
    display: block;
  }

  .rbx-navbar .nav-menu-title {
    padding: 6px 7px;
    font-size: 15px;
  }

  .rbx-navbar-search {
    order: 10;
    flex: 1 0 100%;
    margin: 0;
    padding: 0 6px;
  }

  .rbx-navbar-search .rbx-search-menu {
    top: 36px;
  }

  .rbx-navbar-right .rbx-menu-item .bux-amount {
    display: none;
  }

  .rbx-navbar-right .rbx-menu-item .bux-short {
    display: inline;
  }

  .rbx-navbar-search .search-icon {
    right: 12px;
  }
}

@media (max-width: 400px) {
  .rbx-navbar li.hide-xs {
    display: none;
  }
}

/* Small phones: tighter top row so the Alphabux amount and settings stay on it */
@media (max-width: 420px) {
  .rbx-navbar .nav-menu-title {
    padding: 6px 4px;
    font-size: 14px;
  }

  .rbx-navbar-brand {
    margin-right: 0;
  }

  .rbx-navbar-right .rbx-menu-item {
    padding-left: 4px;
    padding-right: 4px;
  }
}

@media (max-width: 380px) {
  .rbx-navbar a[data-nav="create"] {
    display: none;
  }
}

/* ============================================================ footer */
.rbx-footer {
  flex-shrink: 0;
  margin-top: 30px;
  padding: 18px 15px 24px;
  background: var(--rbx-surface);
}

.rbx-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 960px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.rbx-footer .footer-link {
  margin: 5px 18px;
}

.rbx-footer .text-footer-nav {
  color: var(--rbx-label);
  font-size: 21px;
  font-weight: 300;
  text-decoration: none;
}

.rbx-footer .text-footer-nav:hover {
  color: var(--rbx-text);
}

.rbx-footer .text-footer-nav.privacy {
  color: var(--rbx-blue);
}

.rbx-footer .footer-note {
  max-width: 78%;
  margin: 12px auto 0;
  padding-top: 12px;
  border-top: 1px solid var(--rbx-divider);
  text-align: center;
}

.rbx-footer .text-footer {
  color: var(--rbx-label);
  font-size: 12px;
  font-weight: 400;
}

/* ============================================== sections and headings */
.container-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 3px 0 6px;
}

.container-header h1,
.container-header h2,
.container-header h3 {
  margin: 0;
}

.container-header .btn-more {
  flex: 0 0 auto;
  margin-bottom: 3px;
}

.section {
  margin-bottom: 18px;
}

.section-content {
  position: relative;
  margin: 0 0 18px;
  padding: 15px;
  background: var(--rbx-surface);
  box-shadow: var(--rbx-shadow);
}

.section-content::after {
  content: '';
  display: table;
  clear: both;
}

.section-content-off {
  margin: 0 0 18px;
  padding: 15px;
  background: var(--rbx-label);
  color: var(--rbx-text-secondary);
  text-align: center;
}

.page-title {
  margin: 0 0 12px;
  font-size: 30px;
  font-weight: 400;
}

/* Empty states */
.empty-state {
  padding: 24px 12px;
  color: var(--rbx-text-secondary);
  font-weight: 400;
  text-align: center;
}

/* =========================================================== buttons */
.btn-primary-lg, .btn-primary-md, .btn-primary-sm, .btn-primary-xs,
.btn-secondary-lg, .btn-secondary-md, .btn-secondary-sm, .btn-secondary-xs,
.btn-control-lg, .btn-control-md, .btn-control-sm, .btn-control-xs,
.btn-alert-md, .btn-alert-sm, .btn-alert-xs,
.btn-buy-md {
  display: inline-block;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--rbx-font);
  font-weight: 400;
  line-height: 100%;
  text-align: center;
  text-decoration: none !important;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  transition: box-shadow 0.2s ease-in-out;
}

.btn-primary-lg, .btn-secondary-lg, .btn-control-lg { padding: 15px; font-size: 21px; border-radius: 5px; }
.btn-primary-md, .btn-secondary-md, .btn-control-md, .btn-alert-md, .btn-buy-md { padding: 9px; font-size: 18px; border-radius: 3px; }
.btn-primary-sm, .btn-secondary-sm, .btn-control-sm, .btn-alert-sm { padding: 7px; font-size: 16px; border-radius: 3px; }
.btn-primary-xs, .btn-secondary-xs, .btn-control-xs, .btn-alert-xs { padding: 4px 6px; font-size: 14px; border-radius: 3px; }

.btn-primary-lg, .btn-primary-md, .btn-primary-sm, .btn-primary-xs {
  background: var(--rbx-green);
  border-color: var(--rbx-green);
  color: #fff !important;
}

.btn-primary-lg:hover, .btn-primary-md:hover, .btn-primary-sm:hover, .btn-primary-xs:hover,
.btn-primary-lg:focus, .btn-primary-md:focus, .btn-primary-sm:focus, .btn-primary-xs:focus {
  background: var(--rbx-green-hover);
  border-color: var(--rbx-green-hover);
  box-shadow: var(--rbx-btn-shadow);
  color: #fff;
}

.btn-secondary-lg, .btn-secondary-md, .btn-secondary-sm, .btn-secondary-xs {
  background: var(--rbx-blue);
  border-color: var(--rbx-blue);
  color: #fff !important;
}

.btn-secondary-lg:hover, .btn-secondary-md:hover, .btn-secondary-sm:hover, .btn-secondary-xs:hover,
.btn-secondary-lg:focus, .btn-secondary-md:focus, .btn-secondary-sm:focus, .btn-secondary-xs:focus {
  background: var(--rbx-blue-hover);
  border-color: var(--rbx-blue-hover);
  box-shadow: var(--rbx-btn-shadow);
}

.btn-control-lg, .btn-control-md, .btn-control-sm, .btn-control-xs, .btn-buy-md {
  background: var(--rbx-surface);
  border-color: var(--rbx-border);
  color: var(--rbx-text) !important;
}

.btn-control-lg:hover, .btn-control-md:hover, .btn-control-sm:hover, .btn-control-xs:hover, .btn-buy-md:hover,
.btn-control-lg:focus, .btn-control-md:focus, .btn-control-sm:focus, .btn-control-xs:focus {
  box-shadow: var(--rbx-btn-shadow);
}

.btn-alert-md, .btn-alert-sm, .btn-alert-xs {
  background: var(--rbx-red);
  border-color: var(--rbx-red);
  color: #fff !important;
}

.btn-alert-md:hover, .btn-alert-sm:hover, .btn-alert-xs:hover {
  background: #e8564f;
  border-color: #e8564f;
  box-shadow: var(--rbx-btn-shadow);
}

[class^='btn-'][disabled],
[class*=' btn-'][disabled],
[class^='btn-'].disabled,
[class*=' btn-'].disabled {
  opacity: 1;
  background: var(--rbx-hover) !important;
  border-color: var(--rbx-divider) !important;
  box-shadow: none !important;
  color: var(--rbx-label) !important;
  cursor: default;
}

.btn-full-width { width: 100%; }

/* Bootstrap buttons still used by some screens look like the 2016 ones. */
.btn {
  border-radius: 3px;
  font-family: var(--rbx-font);
  font-weight: 400;
  box-shadow: none !important;
}

.btn:hover, .btn:focus { box-shadow: var(--rbx-btn-shadow) !important; }
.btn-sm { font-size: 16px; padding: 5px 8px; }
.btn-lg { font-size: 21px; }

.btn-success, .btn-danger {
  background: var(--rbx-green);
  border-color: var(--rbx-green);
  color: #fff;
}

.btn-success:hover, .btn-danger:hover,
.btn-success:focus, .btn-danger:focus,
.btn-success:not(:disabled):not(.disabled):active, .btn-danger:not(:disabled):not(.disabled):active {
  background: var(--rbx-green-hover);
  border-color: var(--rbx-green-hover);
  color: #fff;
}

.btn-primary, .btn-info {
  background: var(--rbx-blue);
  border-color: var(--rbx-blue);
  color: #fff;
}

.btn-primary:hover, .btn-info:hover,
.btn-primary:focus, .btn-info:focus,
.btn-primary:not(:disabled):not(.disabled):active, .btn-info:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active {
  background: var(--rbx-blue-hover);
  border-color: var(--rbx-blue-hover);
  color: #fff;
}

.btn-secondary, .btn-light, .btn-dark,
.btn-outline-secondary, .btn-outline-light, .btn-outline-dark, .btn-outline-primary, .btn-outline-info, .btn-outline-success {
  background: var(--rbx-surface);
  border-color: var(--rbx-border);
  color: var(--rbx-text);
}

.btn-secondary:hover, .btn-light:hover, .btn-dark:hover,
.btn-outline-secondary:hover, .btn-outline-light:hover, .btn-outline-dark:hover,
.btn-outline-primary:hover, .btn-outline-info:hover, .btn-outline-success:hover,
.btn-secondary:not(:disabled):not(.disabled):active, .btn-outline-secondary:not(:disabled):not(.disabled):active,
.btn-outline-secondary:not(:disabled):not(.disabled).active, .btn-outline-light.active {
  background: var(--rbx-surface);
  border-color: var(--rbx-border);
  color: var(--rbx-text);
}

.btn-outline-secondary.active, .btn-outline-light.active, .btn-group .btn.active {
  background: var(--rbx-hover) !important;
  box-shadow: 0 -3px 0 0 var(--rbx-blue) inset !important;
}

.btn-outline-danger, .btn-warning, .btn-outline-warning {
  background: var(--rbx-surface);
  border-color: var(--rbx-border);
  color: var(--rbx-red);
}

.btn-outline-danger:hover, .btn-outline-danger:focus,
.btn-outline-danger:not(:disabled):not(.disabled):active {
  background: var(--rbx-red);
  border-color: var(--rbx-red);
  color: #fff;
}

.btn:disabled, .btn.disabled {
  opacity: 1;
  background: var(--rbx-hover) !important;
  border-color: var(--rbx-divider) !important;
  color: var(--rbx-label) !important;
}

.btn-link {
  color: var(--rbx-blue);
}

/* ============================================================= forms */
.input-field,
.form-control,
.custom-select {
  height: 38px;
  padding: 5px 12px;
  border: 1px solid var(--rbx-border);
  border-radius: 3px;
  background-color: var(--rbx-surface);
  box-shadow: none !important;
  color: var(--rbx-text);
  font-family: var(--rbx-font);
  font-size: 16px;
  font-weight: 300;
}

textarea.form-control,
textarea.input-field {
  height: auto;
  min-height: 76px;
  line-height: 1.4;
}

.form-control-sm {
  height: 30px;
  font-size: 14px;
}

.input-field:focus,
.form-control:focus,
.custom-select:focus {
  border-color: var(--rbx-blue);
  outline: 0;
}

.input-field::placeholder,
.form-control::placeholder {
  color: var(--rbx-label);
  font-weight: 300;
  opacity: 1;
}

select.form-control,
select.input-field,
.custom-select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 34px;
  background: var(--rbx-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23191919' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center;
}

.input-group-text {
  border: 1px solid var(--rbx-border);
  border-radius: 3px;
  background: var(--rbx-hover);
  color: var(--rbx-text-secondary);
  font-weight: 400;
}

.input-group > .form-control:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group > .input-group-append > .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; }

label,
.form-label {
  color: var(--rbx-text);
  font-size: 16px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.form-text,
.form-help {
  color: var(--rbx-text-secondary);
  font-size: 12px;
  font-weight: 400;
}

.custom-control-label {
  font-weight: 400;
}

.custom-control-input:checked ~ .custom-control-label::before {
  border-color: var(--rbx-blue);
  background-color: var(--rbx-blue);
}

.custom-control-input:focus ~ .custom-control-label::before {
  box-shadow: none;
}

.custom-file-label {
  height: 38px;
  border: 1px solid var(--rbx-border);
  border-radius: 3px;
  font-weight: 300;
}

.custom-file-label::after {
  height: 36px;
  background: var(--rbx-hover);
  color: var(--rbx-text);
  font-weight: 400;
}

.custom-range::-webkit-slider-thumb { background: var(--rbx-blue); }
.custom-range::-moz-range-thumb { background: var(--rbx-blue); }

/* A label/value list, like the item and game pages' "Type", "Genres" rows. */
.field-row {
  display: flex;
  gap: 12px;
  margin: 0 0 10px;
}

.field-row > .text-label {
  flex: 0 0 90px;
}

/* ============================================================= tabs */
.rbx-tabs-horizontal,
.rbx-tabs-horizontal.nav,
.nav-tabs {
  display: flex;
  margin: 0 0 6px;
  padding: 0;
  border: 0;
  background: var(--rbx-surface);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  list-style: none;
}

.rbx-tabs-horizontal > li,
.rbx-tabs-horizontal > .nav-item,
.nav-tabs > .nav-item {
  display: flex;
  flex: 1 1 0;
  margin: 0;
  text-align: center;
}

/* Every tab takes the row's full height, so the blue underline lines up even when one tab
   has a count or badge and another doesn't. */
.rbx-tabs-horizontal > li > a,
.rbx-tabs-horizontal > .nav-item > .nav-link,
.nav-tabs > .nav-item > .nav-link {
  flex: 1 1 auto;
}

.rbx-tabs-horizontal .rbx-tab-heading,
.rbx-tabs-horizontal .nav-link,
.nav-tabs .nav-link {
  display: block;
  padding: 12px 2%;
  border: 0 !important;
  border-radius: 0;
  background: var(--rbx-surface);
  color: var(--rbx-text) !important;
  font-size: 18px;
  font-weight: 400;
  line-height: 100%;
  text-decoration: none;
}

.rbx-tabs-horizontal .rbx-tab-heading:hover,
.rbx-tabs-horizontal .nav-link:hover,
.nav-tabs .nav-link:hover {
  background: var(--rbx-hover);
  box-shadow: 0 -4px 0 0 var(--rbx-blue) inset;
}

.rbx-tabs-horizontal .active .rbx-tab-heading,
.rbx-tabs-horizontal .rbx-tab-heading.active,
.rbx-tabs-horizontal .nav-link.active,
.nav-tabs .nav-link.active {
  background: var(--rbx-surface);
  box-shadow: 0 -4px 0 0 var(--rbx-blue) inset;
}

.rbx-tab-subtitle,
.rbx-tabs-horizontal .notification-blue {
  margin-left: 4px;
  font-size: 12px;
}

/* Vertical tabs (settings, admin): a white list with a blue bar on the current one. */
.rbx-tabs-vertical,
.nav-pills.flex-column {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  background: var(--rbx-surface);
  box-shadow: var(--rbx-shadow);
  list-style: none;
}

.rbx-tabs-vertical .rbx-tab-heading,
.nav-pills.flex-column .nav-link {
  display: block;
  margin: 0;
  padding: 12px 12px;
  border: 0;
  border-radius: 0 !important;
  background: var(--rbx-surface) !important;
  color: var(--rbx-text) !important;
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
}

.rbx-tabs-vertical .rbx-tab-heading:hover,
.nav-pills.flex-column .nav-link:hover {
  background: var(--rbx-hover) !important;
}

.rbx-tabs-vertical .rbx-tab-heading.active,
.nav-pills.flex-column .nav-link.active {
  background: var(--rbx-surface) !important;
  box-shadow: 4px 0 0 0 var(--rbx-blue) inset;
}

/* Horizontal pills (filters): plain words, the current one in blue with an underline. */
.nav-pills:not(.flex-column) .nav-link {
  border-radius: 0;
  background: none;
  color: var(--rbx-text);
  font-weight: 400;
}

.nav-pills:not(.flex-column) .nav-link.active {
  background: none;
  box-shadow: 0 -3px 0 0 var(--rbx-blue) inset;
  color: var(--rbx-text);
}

/* ======================================================= cards (old) */
.card {
  border: 0;
  border-radius: 0;
  background: var(--rbx-surface);
  box-shadow: var(--rbx-shadow);
}

.card-header {
  border-bottom: 1px solid var(--rbx-divider);
  background: var(--rbx-surface);
  font-size: 21px;
  font-weight: 400;
}

.card-body {
  padding: 15px;
}

/* ===================================================== notifications */
.notification-blue,
.notification-red {
  display: inline-block;
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  text-align: center;
}

.notification-blue { background: var(--rbx-blue); }
.notification-red { background: var(--rbx-red); }

.badge {
  border-radius: 3px;
  font-weight: 400;
  font-size: 12px;
  padding: 3px 6px;
}

.badge-danger { background: var(--rbx-red); color: #fff; }
.badge-success { background: var(--rbx-green); color: #fff; }
.badge-primary, .badge-info { background: var(--rbx-blue); color: #fff; }
.badge-warning { background: var(--rbx-orange); color: #fff; }
.badge-secondary, .badge-light, .badge-dark { background: var(--rbx-divider); color: var(--rbx-text); }

/* Page alerts: the coloured bar 2016 showed under the header. */
.alert {
  border: 0;
  border-radius: 3px;
  font-weight: 400;
}

.alert-success { background: var(--rbx-green); color: #fff; }
.alert-danger { background: var(--rbx-red); color: #fff; }
.alert-info, .alert-primary { background: var(--rbx-blue); color: #fff; }
.alert-warning { background: var(--rbx-orange); color: #fff; }
.alert-secondary, .alert-light { background: var(--rbx-surface); color: var(--rbx-text); box-shadow: var(--rbx-shadow); }
.alert a { color: inherit; text-decoration: underline; }

/* ======================================================= dropdowns */
.dropdown-menu {
  min-width: 160px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: var(--rbx-surface);
  box-shadow: 0 -5px 20px rgba(25, 25, 25, 0.15), 0 5px 10px rgba(0, 0, 0, 0.2);
  font-size: 16px;
  overflow: hidden;
}

.dropdown-item,
.dropdown-menu > li > a {
  display: block;
  padding: 10px 12px;
  color: var(--rbx-text) !important;
  font-weight: 400;
  white-space: nowrap;
}

.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item.active,
.dropdown-menu > li > a:hover {
  background: var(--rbx-hover);
  box-shadow: 4px 0 0 0 var(--rbx-blue) inset;
  color: var(--rbx-text);
}

.dropdown-divider {
  margin: 0;
  border-top-color: var(--rbx-divider);
}

/* ========================================================== modals */
.modal-content {
  border: 0;
  border-radius: 3px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.modal-header {
  justify-content: center;
  position: relative;
  padding: 15px;
  border-bottom: 1px solid var(--rbx-divider);
}

.modal-title {
  font-size: 21px;
  font-weight: 400;
}

.modal-header .close {
  position: absolute;
  top: 12px;
  right: 15px;
  margin: 0;
  padding: 0;
  font-size: 28px;
  font-weight: 300;
  opacity: 0.6;
}

.modal-body {
  padding: 15px;
}

.modal-footer {
  justify-content: center;
  border-top: 0;
  padding: 0 15px 15px;
}

.modal-backdrop.show {
  opacity: 0.5;
}

/* The site's own <dialog> popups */
dialog.alphaland-dialog {
  width: min(500px, calc(100vw - 24px));
  padding: 0;
  border: 0;
  border-radius: 3px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  color: var(--rbx-text);
}

dialog.alphaland-dialog::backdrop {
  background: rgba(0, 0, 0, 0.5);
}

/* =========================================================== tables */
.table {
  color: var(--rbx-text);
  background: var(--rbx-surface);
}

.table thead th {
  border-top: 0;
  border-bottom: 1px solid var(--rbx-divider);
  color: var(--rbx-text-secondary);
  font-size: 14px;
  font-weight: 400;
}

.table td,
.table th {
  border-top: 1px solid var(--rbx-divider);
  vertical-align: middle;
}

.table-hover tbody tr:hover {
  background: var(--rbx-hover);
  color: var(--rbx-text);
}

.table-striped tbody tr:nth-of-type(odd) {
  background: #fafafa;
}

/* ============================================================ pager */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 20px 0 6px;
  padding: 0;
  list-style: none;
}

.pager a,
.pager button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--rbx-border);
  border-radius: 3px;
  background: var(--rbx-surface);
  color: var(--rbx-text);
  font-size: 18px;
}

.pager a:hover,
.pager button:hover:not(:disabled) {
  background: var(--rbx-hover);
  text-decoration: none;
}

.pager button:disabled,
.pager .disabled a {
  border-color: var(--rbx-divider);
  background: var(--rbx-hover);
  color: var(--rbx-label);
  cursor: default;
}

.pager .pager-cur {
  font-weight: 400;
}

.pagination .page-link {
  border-color: var(--rbx-border);
  color: var(--rbx-text);
}

.pagination .page-item.active .page-link {
  border-color: var(--rbx-blue);
  background: var(--rbx-blue);
  color: #fff;
}

/* ============================================================ avatars */
/* Round headshots with a light ring: friend lists, the home greeting, profile headers. */
.avatar-headshot {
  display: inline-block;
  border-radius: 50%;
  background: var(--rbx-surface);
  border: 1px solid var(--rbx-border);
  overflow: hidden;
  object-fit: cover;
}

.avatar-cards {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  margin: 0;
  /* The strip scrolls sideways, which also clips upward: room for the admin shield. */
  padding: 8px 0 0;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: thin;
}

.avatar-card {
  flex: 0 0 104px;
  position: relative;
  text-align: center;
}

.avatar-card a,
.avatar-card a:hover {
  color: var(--rbx-text);
  text-decoration: none;
}

.avatar-card-fullbody {
  position: relative;
  display: inline-block;
  width: 90px;
  height: 90px;
}

.avatar-card-fullbody img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 1px solid var(--rbx-border);
  background: var(--rbx-surface);
  object-fit: cover;
}

.avatar-status {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 16px;
  height: 16px;
  border: 2px solid var(--rbx-surface);
  border-radius: 50%;
  background: var(--rbx-blue);
}

.avatar-status.is-game { background: var(--rbx-green); }
.avatar-status.is-studio { background: var(--rbx-orange); }
.avatar-status.is-offline { display: none; }

.avatar-name {
  display: block;
  margin-top: 10px; /* clears the membership mark under the headshot */
  overflow: hidden;
  color: var(--rbx-text);
  font-size: 14px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

/* Wrapping grid version (Friends page, people search) */
.avatar-cards.is-grid {
  flex-wrap: wrap;
  overflow: visible;
}

/* ========================================================= game cards */
.game-cards {
  display: flex;
  flex-wrap: nowrap;
  gap: 11px;
  margin: 0;
  padding: 2px 2px 8px;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: thin;
}

.game-cards.is-grid {
  flex-wrap: wrap;
  overflow: visible;
}

.game-card {
  flex: 0 0 150px;
  width: 150px;
}

.game-card-container {
  position: relative;
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--rbx-surface);
  box-shadow: var(--rbx-shadow);
  color: var(--rbx-text);
  text-decoration: none !important;
  transition: box-shadow 200ms ease;
}

.game-card-container:hover {
  box-shadow: var(--rbx-shadow-hover);
  color: var(--rbx-text);
}

.game-card-thumb-container {
  position: relative;
  width: 150px;
  height: 150px;
  overflow: hidden;
  border-radius: 3px 3px 0 0;
  background: var(--rbx-divider);
}

.game-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-card-name {
  margin: 6px 0 3px;
  padding: 0 6px;
  overflow: hidden;
  color: var(--rbx-text);
  font-size: 16px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-card-name-secondary {
  margin: 0 0 3px;
  padding: 0 6px;
  color: var(--rbx-text-secondary);
  font-size: 12px;
  font-weight: 400;
}

.game-card-vote {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px 8px;
  color: var(--rbx-text-secondary);
}

.game-card-vote i {
  font-size: 16px;
}

.game-card-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 1px 6px;
  border-radius: 3px;
  background: rgba(25, 25, 25, 0.7);
  color: #fff;
  font-size: 12px;
  font-weight: 400;
}

/* 2016's segmented vote bar: grey when nobody voted, green share over a pink rest on hover. */
.vote-container {
  position: relative;
  flex: 1 1 auto;
  height: 6px;
}

.vote-background,
.vote-percentage {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
}

.vote-background {
  width: 100%;
  background: var(--rbx-label);
}

.vote-percentage {
  background: var(--rbx-text-secondary);
}

.game-card-container:hover .vote-background:not(.no-votes) {
  background: var(--rbx-red-soft);
  opacity: 0.6;
}

.game-card-container:hover .vote-percentage {
  background: var(--rbx-green);
}

.vote-mask .segment {
  position: absolute;
  top: 0;
  width: 2px;
  height: 6px;
  background: var(--rbx-surface);
}

.vote-mask .seg-1 { left: 18%; }
.vote-mask .seg-2 { left: 38%; }
.vote-mask .seg-3 { left: 58%; }
.vote-mask .seg-4 { left: 78%; }

/* ========================================================= item cards */
/* Catalog, inventory, avatar wardrobe: a bordered square thumbnail with the name and price. */
.item-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 18px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.item-card {
  position: relative;
  min-width: 0;
}

.item-card-link,
.item-card-link:hover {
  color: var(--rbx-text);
  text-decoration: none;
}

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

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

.item-card-name {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--rbx-blue);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-card-link:hover .item-card-name {
  text-decoration: underline;
}

.item-card-creator {
  display: block;
  color: var(--rbx-text-secondary);
  font-size: 12px;
  font-weight: 400;
}

.item-card-price {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--rbx-green);
  font-size: 14px;
  font-weight: 600;
}

.item-card-price .was {
  color: var(--rbx-text-secondary);
  font-weight: 400;
}

.item-card-price.is-free {
  color: var(--rbx-text);
}

.item-card-price.is-offsale {
  color: var(--rbx-text-secondary);
  font-weight: 400;
}

/* The "LIMITED" / "LIMITED U" ribbon on a thumbnail's corner. */
.limited-tag {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  align-items: stretch;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

.limited-tag .limited-word {
  padding: 0 4px 0 5px;
  background: var(--rbx-green);
  color: #fff;
}

.limited-tag .limited-u {
  padding: 0 4px;
  background: #ffd21f;
  color: #191919;
}

.limited-tag::after {
  content: '';
  width: 0;
  border-left: 12px solid var(--rbx-green);
  border-top: 16px solid transparent;
}

.limited-tag.is-u::after {
  border-left-color: #ffd21f;
}

.item-card-serial,
.item-card-stock {
  position: absolute;
  top: 4px;
  right: 4px;
  padding: 0 4px;
  border-radius: 3px;
  background: rgba(25, 25, 25, 0.7);
  color: #fff;
  font-size: 11px;
  font-weight: 400;
}

.item-card-stock {
  top: auto;
  bottom: 20px;
  background: var(--rbx-green);
}

.item-card-pill {
  position: absolute;
  top: 4px;
  left: 4px;
  padding: 0 5px;
  border-radius: 3px;
  background: var(--rbx-blue);
  color: #fff;
  font-size: 11px;
  font-weight: 400;
}

.item-card-actions {
  margin-top: 6px;
}

.item-card-actions [class*='btn-'] {
  width: 100%;
}

/* =================================================== thumbnails & misc */
.thumbnail-2d {
  width: 100%;
  background: var(--rbx-surface);
}

.rbx-divider {
  height: 1px;
  margin: 12px 0;
  background: var(--rbx-divider);
}

.rbx-spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 3px solid var(--rbx-divider);
  border-top-color: var(--rbx-blue);
  border-radius: 50%;
  animation: rbx-spin 0.8s linear infinite;
}

@keyframes rbx-spin {
  to { transform: rotate(360deg); }
}

.view-section {
  display: none;
}

.view-section.active {
  display: block;
}

/* Floating messages at the top of the page */
.rbx-alert-holder {
  position: fixed;
  z-index: 1050;
  top: calc(var(--rbx-top) + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: min(600px, calc(100vw - 24px));
}

.rbx-alert-holder .alert {
  margin: 0 0 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  text-align: center;
}

/* Scrollbars like 2016's slim greys */
.rbx-left-col::-webkit-scrollbar,
.game-cards::-webkit-scrollbar,
.avatar-cards::-webkit-scrollbar {
  height: 8px;
  width: 6px;
}

.rbx-left-col::-webkit-scrollbar-thumb,
.game-cards::-webkit-scrollbar-thumb,
.avatar-cards::-webkit-scrollbar-thumb {
  border-radius: 3px;
  background: rgba(25, 25, 25, 0.3);
}
