@charset "UTF-8";
:root {
  --bronze: #c98a4b;
}

/* ---------- Main menu dropdown (Community ▾) ---------- */
.navbar-ivm .dropdown-menu.show {
  display: block;
}

.navbar-ivm .dropdown-menu h5 {
  display: none;
}

.navbar-ivm .dropdown-menu::before {
  display: none !important;
}

@media (min-width: 992px) {
  .navbar-ivm .dropdown {
    position: relative;
  }
  .navbar-ivm .dropdown > .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 14rem;
    padding: 0.5rem 0;
    border-radius: 20px;
    border: 1px solid rgba(124, 58, 237, 0.188235);
    background: linear-gradient(270deg, rgba(147, 51, 234, 0.188235) 0%, rgba(76, 29, 149, 0) 100%), #1a0a2e;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.35);
  }
  .navbar-ivm .dropdown-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
}
.navbar-ivm .dropdown-menu .dropdown-item {
  display: block;
  padding: 0.6rem 1.25rem;
  color: #fff;
  font-family: "Clash Display";
  font-size: 0.85rem;
  text-transform: uppercase;
  white-space: nowrap;
  background: transparent;
}
.navbar-ivm .dropdown-menu .dropdown-item:hover, .navbar-ivm .dropdown-menu .dropdown-item:focus-visible, .navbar-ivm .dropdown-menu .dropdown-item.active {
  color: rgb(247, 209, 78);
  background: rgba(124, 58, 237, 0.18);
}

/* ---------- Shared hero ---------- */
.tb-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tb-hero-intro {
  max-width: 640px;
}
.tb-hero-intro a {
  text-decoration: none;
}
.tb-hero-intro a:hover {
  text-decoration: underline;
}

/* ---------- Tabs as links ---------- */
.collections .tab,
.leaderboards .tab {
  display: inline-block;
  text-decoration: none;
  font-family: "Clash Display" !important;
}

.collections .tabs {
  flex-wrap: wrap;
}

/* ---------- Collector cards (browse) ---------- */
.collections a.cc {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.collections a.cc:hover, .collections a.cc:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(192, 132, 252, 0.6);
  box-shadow: 0 10px 30px rgba(89, 25, 130, 0.35);
}
.collections a.cc:focus-visible {
  outline: 2px solid rgb(247, 209, 78);
  outline-offset: 2px;
}
.collections .av-wrap {
  flex: none;
}
.collections .cc .user-img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgb(195, 198, 212);
}
.collections .cc-badge {
  margin-top: 12px;
}
.collections .coin {
  background-color: #c9d3e6;
}
.collections .coin.silver {
  background-image: url("../images/silver-coin.png");
}
.collections .coin.copper {
  background-color: #c98a4b;
  background-image: url("../images/copper-coin.png");
}
.collections .coin.gold {
  background-color: rgb(247, 209, 78);
  background-image: radial-gradient(circle at 35% 30%, #fff3b0 0%, #f7d14e 45%, #b8860b 100%);
}

/* Badge chip next to names */
.tb-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  vertical-align: middle;
  color: rgb(185, 168, 202);
}
.cc-badge .tb-badge {
  margin-left: 0;
}
.tb-badge--gold {
  color: rgb(247, 209, 78);
}
.tb-badge--silver {
  color: #c9d3e6;
}
.tb-badge--bronze {
  color: #c98a4b;
}
.tb-badge--purple {
  color: rgb(192, 132, 252);
}

/* ---------- Leaderboards ---------- */
.leaderboards .tab {
  padding: 9px 16px;
}
.leaderboards .rows .user-img {
  width: 50px;
}
.leaderboards .who b a {
  color: inherit;
  text-decoration: none;
}
.leaderboards .who b a:hover {
  text-decoration: underline;
}
.leaderboards .bd .user-img {
  flex: none;
  width: 50px;
}
.leaderboards .yellow-border {
  border-color: rgb(247, 209, 78);
}
.leaderboards .purple-border {
  border-color: rgb(192, 132, 252);
}

/* ---------- More / pagination ---------- */
.tb-more {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
}
.tb-more a {
  font-family: "Clash Display";
  font-size: 18px;
  text-decoration: none;
}
.tb-more a:hover {
  text-decoration: underline;
}

/* ---------- Empty, notice, CTA ---------- */
.tb-empty {
  padding: 28px 24px;
}
.tb-empty a {
  margin: 0 4px;
}

.tb-notice {
  max-width: 720px;
  margin: 0 auto 24px;
  padding: 12px 18px;
  border-radius: 14px;
  text-align: center;
  color: #fff;
  background: rgba(124, 58, 237, 0.18);
  border: 1px solid rgba(124, 58, 237, 0.25);
}
.tb-notice--warn {
  color: rgb(247, 209, 78);
  background: rgba(247, 209, 78, 0.08);
  border-color: rgba(247, 209, 78, 0.35);
}
.tb-notice a {
  color: inherit;
}

.tb-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* ---------- Forms ---------- */
.tb-input {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font-size: 1rem;
  font-family: "Space Grotesk" !important;
  outline: none;
  resize: vertical;
}
.tb-input:focus {
  border-color: rgba(213, 151, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
}
.tb-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.tb-add-panel,
.tb-account-panel {
  padding: 28px;
}
.tb-add-panel label,
.tb-account-panel label {
  display: block;
  margin-bottom: 6px;
}

.tb-account-panel {
  max-width: 720px;
}

.tb-check {
  display: flex !important;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
}
.tb-check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: rgb(124, 58, 237);
}

.tb-link {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Coin list (my collection, profile) ---------- */
.tb-coin-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(270deg, rgba(147, 51, 234, 0.188235) 0%, rgba(76, 29, 149, 0) 100%), #1a0a2e;
  border: 1px solid rgba(124, 58, 237, 0.188235);
}

.tb-coin-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  border-top: 1px solid rgba(124, 58, 237, 0.25);
}
.tb-coin-row:first-child {
  border-top: 0;
}
.tb-coin-row .coin {
  width: 28px;
  height: 28px;
}
.tb-coin-row.is-conflict {
  opacity: 0.6;
}
.tb-coin-row.is-conflict em {
  color: rgb(247, 209, 78);
  font-style: normal;
}
.tb-coin-row form {
  margin: 0;
}

.tb-coin-main {
  flex: 1;
  min-width: 0;
}
.tb-coin-main b {
  display: block;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tb-coin-main span {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  color: #7c6c9a;
  font-weight: 600;
}

.tb-remove {
  color: rgb(185, 168, 202);
  font-size: 14px;
}
.tb-remove:hover {
  color: #fff;
}

/* ---------- Profile ---------- */
.tb-profile-avatar .user-img {
  width: 96px;
  height: 96px;
  margin: 0 auto 12px;
  border-width: 2px;
}

.tb-stats {
  display: flex;
  justify-content: center;
  gap: 12px;
  list-style: none;
  margin: 8px 0 32px;
  padding: 0;
}
.tb-stats li {
  min-width: 110px;
  padding: 14px 18px;
  border-radius: 18px;
  background: linear-gradient(270deg, rgba(147, 51, 234, 0.188235) 0%, rgba(76, 29, 149, 0) 100%), #1a0a2e;
  border: 1px solid rgba(124, 58, 237, 0.188235);
}
.tb-stats b {
  display: block;
  font-family: "Clash Display Bold" !important;
  font-size: 30px;
  line-height: 1;
  color: #fff;
}
.tb-stats span {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #7c6c9a;
}

.tb-profile .earn {
  margin-top: 0;
}

@media (max-width: 560px) {
  .tb-coin-row {
    padding: 14px 16px;
    gap: 10px;
  }
  .tb-coin-main b {
    font-size: 14px;
    white-space: normal;
  }
  .tb-stats li {
    min-width: 0;
    flex: 1;
    padding: 12px;
  }
  .tb-stats b {
    font-size: 24px;
  }
  .tb-add-panel,
  .tb-account-panel {
    padding: 20px;
  }
}

/* Empty leaderboard: .leaderboards .rows resets padding, so restore it */
.leaderboards .rows.tb-empty {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 40px 24px;
}

/* Badge artwork (images/badges/{key}.webp) */
.leaderboards .bd .tb-badge-icon {
  flex: none;
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(76, 29, 149, 0.45));
}
@media (max-width: 560px) {
  .leaderboards .bd .tb-badge-icon {
    width: 56px;
    height: 56px;
  }
}

/* Empty states: centre the message and use even padding */
.collections .cc.tb-empty,
.leaderboards .rows.tb-empty {
  min-height: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 40px 24px;
  text-align: center;
}
.collections .cc.tb-empty a,
.leaderboards .rows.tb-empty a {
  margin: 0;
}

/* Coin art (imported coins carry an image) */
.coin.coin-art {
  object-fit: cover;
  background: none;
  box-shadow: none;
  border-radius: 50%;
}
.tb-coin-row .coin.coin-art {
  width: 40px;
  height: 40px;
}
.user-img img.object-fit-cover {
  object-fit: cover;
}
