/* catalog.css - the games catalog, styled like 2018.
 *
 * Card values (white background, shadow 0 1px 4px rgba(25,25,25,.3), radius 3px,
 * thumb 150x150, green #02b757) come from the original
 * page___52160f...css of the /games page from 2018 (see web/_archive/games_201807.html).
 * We don't pull in that whole file, as it would override the landing page's look.
 */

#GamesContainer {
  background-color: #e8e8e8;
  background-image: none;
  min-height: 0;
  padding: 32px 0 48px;
}

/* games.html: the navbar is position:fixed, so the catalog starts below it */
body[data-internal-page-name="Games"] #GamesContainer {
  padding-top: 96px;
}

@media (max-width: 991px) {
  body[data-internal-page-name="Games"] #GamesContainer {
    padding-top: 104px;
  }
}

#GamesContainer .games-heading {
  font-size: 30px;
  font-weight: 400;
  color: #191919;
  margin: 0 0 6px;
}

#GamesContainer .games-greeting {
  font-size: 15px;
  font-weight: 600;
  color: #02b757;
  margin: 0 0 4px;
}

#GamesContainer .games-sub {
  color: #757575;
  font-size: 15px;
  margin: 0 0 22px;
}

#GamesContainer .games-status {
  font-size: 15px;
  color: #191919;
  margin: 0 0 22px;
  min-height: 22px;
}

.rbx-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.rbx-dot.on { background-color: #02b757; }
.rbx-dot.off { background-color: #b8b8b8; }
.rbx-addr { color: #757575; font-size: 13px; margin-left: 8px; }

/* --- grid (authentic 2018 classes: .game-cards .game-cards-grid) --- */
ul.game-cards.game-cards-grid {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 980px;
  white-space: normal;
  text-align: left;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

ul.game-cards.game-cards-grid li.list-item.game-cards {
  width: 174px;
  margin: 0 0 18px 0;
  padding: 0 12px;
  display: inline-block;
  vertical-align: top;
  white-space: normal;
  box-sizing: border-box;
}

.game-card { width: 100%; height: auto; padding: 0; }

.game-card-container {
  background-color: #fff;
  position: relative;
  box-shadow: 0 1px 4px 0 rgba(25, 25, 25, 0.3);
  border-radius: 3px;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0 auto;
  text-align: left;
  transition: box-shadow 200ms ease;
}
.game-card-container:hover { box-shadow: 0 1px 6px 0 rgba(25, 25, 25, 0.75); }

.game-card-thumb-container {
  position: relative;
  width: 100%;
  height: auto;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
  overflow: hidden;
}

img.game-card-thumb {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
  background-color: #dadada;
}

.game-card-name,
.game-card-name-secondary {
  width: 100%;
  padding: 0 6px;
  margin: 3px 0;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.game-card-name { margin-top: 6px; font-size: 12px; font-weight: 400; line-height: 1.1em; color: #191919; }
.game-card-name-secondary { font-size: 12px; font-weight: 400; color: #757575; line-height: 1.1em; }

.gk-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background-color: #02b757;
  color: #fff;
  font-size: 10px;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.game-card-footer { padding: 6px; text-align: center; }

.gk-play {
  display: block;
  width: 100%;
  border: 1px solid #02b757;
  background-color: #02b757;
  color: #fff;
  font-size: 13px;
  line-height: 1;
  padding: 7px 6px;
  border-radius: 3px;
  cursor: pointer;
  font-family: inherit;
}
.gk-play:hover { background-color: #3FC679; border-color: #3FC679; }
.gk-play.gk-disabled,
.gk-play:disabled {
  background-color: #d8d8d8;
  border-color: #d8d8d8;
  color: #8a8a8a;
  cursor: default;
}

/* --- launch help panel --- */
#play-help {
  max-width: 700px;
  margin: 24px auto 0;
  background-color: #fff;
  border: 1px solid #d0d0d0;
  border-radius: 3px;
  padding: 14px 18px;
  font-size: 14px;
  color: #191919;
  line-height: 1.5;
}
#play-help code {
  background-color: #f2f2f2;
  padding: 1px 4px;
  border-radius: 2px;
  font-size: 13px;
}

/* --- logged-in user bar in the navbar --- */
#rbx-user-box {
  color: #fff;
  text-align: right;
  padding-top: 12px;
  font-size: 14px;
}
#rbx-user-box .rbx-user-name { font-weight: 600; }
#rbx-user-box a { color: #fff; text-decoration: underline; margin-left: 10px; }

/* wide screens: the compact horizontal form is the one we show (like 2018) */
@media (min-width: 992px) {
  #login-container .mobile-login { display: none !important; }
}
/* narrow screens: Bootstrap's .collapse would hide the login form completely
   (there is no Angular navbar toggler any more). Show it inline instead. */
@media (max-width: 991px) {
  #login-container .mobile-login.collapse {
    display: block !important;
    position: static;
    background: transparent;
    padding: 8px 0;
  }
}

/* --- Discord verification (added 2026-12) ------------------------------- */
.discord-login-box { margin: 14px 0 4px; text-align: center; }
.discord-or { position: relative; margin: 10px 0; color: #999; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.discord-or::before, .discord-or::after {
  content: ""; position: absolute; top: 50%; width: 38%; height: 1px; background: #d0d0d0;
}
.discord-or::before { left: 0; }
.discord-or::after { right: 0; }
.discord-or span { background: transparent; padding: 0 8px; }
.discord-button {
  display: block; width: 100%; padding: 10px 14px; border: 0; border-radius: 3px;
  background: #5865f2; color: #fff; font-size: 15px; font-weight: 600; cursor: pointer;
}
.discord-button:hover, .discord-button:focus { background: #4752c4; color: #fff; }
.discord-button:disabled { opacity: .6; cursor: default; }
.discord-button-secondary {
  background: #fff; color: #4752c4; border: 1px solid #5865f2;
}
.discord-button-secondary:hover, .discord-button-secondary:focus {
  background: #eef0ff; color: #3a45b0;
}
.rbx-auth-actions { display: grid; gap: 8px; margin: 4px 0 12px; }
.rbx-auth-switch { margin: 0 0 12px; color: #555; font-size: 13px; line-height: 1.4; }
.discord-note { margin: 8px 0 0; color: #777; font-size: 11px; line-height: 1.35; }
.rbx-verified {
  display: inline-block; margin-left: 8px; padding: 1px 6px; border-radius: 9px;
  background: #5865f2; color: #fff; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .4px; vertical-align: 1px;
}
a.rbx-verify-discord, #rbx-verify-link {
  color: #5865f2; font-weight: 600; text-decoration: underline;
}
.rbx-locked { color: #666; font-size: 13px; }
#games-status .rbx-locked, #home-status .rbx-locked { display: inline-block; margin-top: 4px; }
.rbx-auth-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10000;
  padding: 10px 16px; background: #7a1f1f; color: #fff;
  font-size: 14px; text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,.4);
}

/* --- Discord-only auth (added 2026-12) ---------------------------------- */
body { padding-bottom: 54px; }
#rbx-disclaimer {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10001;
  padding: 8px 16px; background: #191919; color: #fff;
  font-family: 'Source Sans Pro', Helvetica, Arial, sans-serif;
  font-size: 12px; line-height: 1.4; text-align: center;
  box-shadow: 0 -1px 6px rgba(0, 0, 0, .35);
}
#rbx-disclaimer b { color: #fff; }
#rbx-disclaimer a { color: #86c5ff; text-decoration: underline; }
@media (max-width: 600px) {
  body { padding-bottom: 76px; }
  #rbx-disclaimer { font-size: 11px; padding: 7px 10px; }
}
.rbx-auth-card {
  background: #fff; border-radius: 3px;
  box-shadow: 0 1px 4px rgba(25, 25, 25, .3);
  padding: 22px 22px 16px; text-align: left;
}
.rbx-auth-title { margin: 0 0 6px; font-size: 24px; font-weight: 400; color: #191919; }
.rbx-auth-lead { margin: 0 0 14px; font-size: 14px; line-height: 1.45; color: #555; }
.rbx-auth-fine { margin: 14px 0 0; font-size: 11px; line-height: 1.4; color: #8a8a8a; }
.rbx-nav-discord { margin: 10px 0 0; text-align: right; }
.rbx-nav-discord .discord-button {
  display: inline-block; width: auto; padding: 8px 18px; font-size: 14px;
}
.rbx-nav-discord .discord-note { margin: 4px 0 0; font-size: 10px; }
.home-login-box {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 10px 0 4px;
}
.home-login-box .home-note { margin: 0; max-width: 420px; }
@media (max-width: 600px) {
  .home-login-box .discord-button { width: 100%; }
}
@media (max-width: 991px) {
  .rbx-nav-discord { text-align: center; }
  .rbx-nav-discord .discord-button { width: 100%; }
  .rbx-nav-discord .discord-note { font-size: 11px; }
}
#SignUpFormContainer .rbx-auth-card { margin-top: 8px; }
.rbx-nick-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rbx-nick-input {
  flex: 1 1 220px; min-width: 160px; padding: 7px 9px;
  border: 1px solid #c8c8c8; border-radius: 3px; font-size: 14px; font-family: inherit;
}
.rbx-nick-msg { margin: 8px 0 0; font-size: 13px; color: #757575; min-height: 18px; }
.rbx-nick-msg.error { color: #b02a2a; }
.rbx-nick-msg.ok { color: #007a3d; }

