:root {
  --header-height: 82px;
  --page-padding: 20px;
  --panel-gap: 30px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  font-family: Arial, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  background: #f8f9fa;
}

/* -----------------------------
   Header
----------------------------- */

.right-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle-btn {
  border: 1px solid #e0e0e0;
  background: white;
  color: #222;
  font-weight: bold;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.theme-toggle-btn:hover {
  background: #f2f2f2;
}

header {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  background: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  flex-shrink: 0;
}

.left-header {
  display: flex;
  align-items: center;
  gap: 15px;
}

h1 {
  margin: 0;
  font-size: 28px;
}

.header-btn,
.account-btn {
  border: 1px solid #e0e0e0;
  background: white;
  font-weight: bold;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  text-transform: uppercase;
  transition: background 0.2s;
}

.header-btn:hover,
.account-btn:hover {
  background: #f2f2f2;
}

/* -----------------------------
   Main game layout
----------------------------- */

#game-area {
  height: calc(100dvh - var(--header-height));
  display: flex;
  gap: var(--panel-gap);
  padding: var(--page-padding);
  overflow: hidden;
}

#map-container {
  width: 60%;
  min-height: 0;
  overflow: hidden;
  transition: width 0.5s ease;
  display: flex;
  flex-direction: column;
}

#map-container.expanded {
  width: min(100%, 1200px);
}

#map {
  width: 100%;
  flex: 1;
  min-height: 0;
  height: auto;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#play-btn {
  margin-top: 20px;
  width: 100%;
  flex-shrink: 0;
  padding: 16px;
  font-size: 28px;
  font-weight: bold;
  background: #00c853;
  border: none;
  border-radius: 15px;
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,128,0,0.2);
}

#play-btn:hover {
  filter: brightness(1.05);
  box-shadow: 0 6px 10px rgba(0,128,0,0.25);
}

/* -----------------------------
   Side panel
----------------------------- */

#side-panel {
  width: 40%;
  height: 100%;
  min-height: 0;
  overflow: hidden;

  display: flex;
  flex-direction: column;
  gap: 30px;

  transition: opacity 0.5s ease;
}

#side-panel.hidden {
  opacity: 0;
  pointer-events: none;
}

#badges-container {
  flex: 1;
  min-height: 0;

  display: flex;
  flex-direction: column;
  gap: 20px;

  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;

  /* Important: gives badge glow space inside the scroll area */
  padding: 18px 18px 28px 18px;

  /* Prevent first/last badge glow being clipped */
  scroll-padding-top: 18px;
  scroll-padding-bottom: 28px;
}

/* -----------------------------
   Score box
----------------------------- */

#score-box {
  background: black;
  color: white;
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  border: 6px solid white;
  box-sizing: border-box;
  flex-shrink: 0;

  transition:
    background 0.4s linear,
    border-color 0.4s linear,
    color 0.4s linear,
    box-shadow 0.4s linear,
    transform 0.2s ease;

  position: relative;
  overflow: hidden;
}

#score-box:hover {
  transform: none;
  box-shadow: 0 0 24px rgba(0,0,0,0.12);
}

#score-box h2 {
  margin: 0 0 5px 0;
  font-size: 18px;
  letter-spacing: 2px;
  position: relative;
  z-index: 2;
}

#score {
  font-size: 54px;
  font-weight: bold;
  position: relative;
  z-index: 2;
}

#game-area.playing {
  justify-content: center;
}

#game-area.playing #map-container {
  width: min(100%, 1200px);
  margin: 0 auto;
}

#game-area {
  transition: gap 0.7s ease;
}

#map-container {
  transition:
    width 0.7s ease,
    margin 0.7s ease,
    transform 0.7s ease;
}

#side-panel {
  transition:
    width 0.7s ease,
    opacity 0.45s ease,
    transform 0.7s ease;
}

#game-area.playing {
  gap: 0;
  justify-content: center;
}

#game-area.playing #map-container {
  width: min(100%, 1200px);
  margin-inline: auto;
}

#game-area.playing #side-panel {
  width: 0;
  opacity: 0;
  transform: translateX(40px);
  pointer-events: none;
}

/* Metallic sheen */

#score-box::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  z-index: 1;
  animation: metallic-shine 6s infinite;
  pointer-events: none;
}

@keyframes metallic-shine {
  0% {
    left: -100%;
  }

  20% {
    left: 200%;
  }

  100% {
    left: 200%;
  }
}

/* -----------------------------
   Badge cards
----------------------------- */

.badge-placeholder {
  background: #e0e0e0;
  color: #a0a0a0;
  border-radius: 15px;
  padding: 25px;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  border: 3px dashed #bfaaaa;
}

.badge-card {
  background: white;
  border: 3px solid #e0e0e0;
  border-radius: 20px;
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
  background-clip: padding-box;
  transition: transform 0.2s ease;
  flex-shrink: 0;
  position: relative;
  overflow: visible;
  flex-shrink: 0;
  isolation: isolate;
}

.badge-card:hover {
  transform: translateY(-2px);
}

.badge-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.badge-title-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge-name {
  color: #444444;
  font-size: 20px;
  font-weight: 800;
}

.badge-rarity-tag {
  font-size: 13px;
  font-weight: bold;
  padding: 3px 10px;
  border-radius: 6px;
  text-transform: capitalize;
}

.badge-score-tag {
  background: #fffde7;
  border: 2px solid #fff59d;
  color: #fbc02d;
  font-size: 16px;
  font-weight: bold;
  padding: 4px 12px;
  border-radius: 15px;
}

.badge-desc {
  color: #9e9e9e;
  font-size: 16px;
  margin: 0;
  text-align: center;
  font-weight: bold;
}

.badge-divider {
  border: none;
  border-top: 3px solid #eeeeee;
  width: 100%;
  margin: 0;
}

.badge-flags {
  display: flex;
  justify-content: center;
  gap: 6px;
  line-height: 1;
}

.badge-flags span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.flag-svg {
  width: 36px;
  height: 24px;
  object-fit: contain;
  background: transparent;
  padding: 0;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 1px 3px rgba(0,0,0,0.18);
  display: block;
  box-sizing: border-box;
}

.drawn-flag-svg {
  width: 44px;
  height: 30px;
  object-fit: contain;
  background: transparent;
  padding: 0;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  display: block;
  box-sizing: border-box;
}

/* Flag opacity filters */

.flag-opaque {
  opacity: 1;
  filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.1));
}

.flag-faded {
  opacity: 0.25;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
}

.modal-card {
  width: min(420px, 100%);
  max-height: 85vh;
  overflow-y: auto;
  background: white;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  position: relative;
}

.leaderboard-card {
  width: min(760px, 100%);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: none;
  background: transparent;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.modal-card h2 {
  margin: 0 0 20px 0;
}

.modal-card label {
  display: block;
  font-weight: bold;
  margin: 12px 0 6px;
}

.modal-input {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 16px;
}

.modal-row {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.modal-action-btn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: #00c853;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

.modal-action-btn.secondary {
  background: #1976d2;
}

.modal-small {
  color: #777;
  font-size: 14px;
}

.modal-message {
  color: #d32f2f;
  font-weight: bold;
}

.leaderboard-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.leaderboard-tabs button {
  flex: 1;
  padding: 10px;
  border: 2px solid #e0e0e0;
  background: white;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
}

.leaderboard-tabs button.active {
  background: #111;
  color: white;
  border-color: #111;
}

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

.leaderboard-table th,
.leaderboard-table td {
  padding: 10px;
  border-bottom: 1px solid #eeeeee;
  text-align: left;
}

.leaderboard-table th {
  font-size: 13px;
  text-transform: uppercase;
  color: #777;
}

.leaderboard-table td:nth-child(1) {
  font-weight: bold;
}

.leaderboard-table td:nth-child(3) {
  font-weight: bold;
}

/* -----------------------------
   Account modal / dashboard
----------------------------- */

.account-modal.hidden,
.auth-panel.hidden,
.account-dashboard.hidden {
  display: none;
}

.account-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  min-height: 100vh;
  height: fit-content;
  max-height: 150vh;
  overflow: hidden;
}

.account-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  width: 100%;
  height: 100%;
}

.account-modal-content {
  position: absolute;
  inset: 4vh 4vw;
  background: #f5f5f5;
  border-radius: 18px;
  padding: 34px 38px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.account-close-btn {
  position: absolute;
  top: 14px;
  right: 18px;
  border: none;
  background: transparent;
  font-size: 34px;
  font-weight: bold;
  cursor: pointer;
  color: #555;
}

.auth-panel h2 {
  text-align: center;
  margin: 0 0 28px;
}

.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 850px;
  margin: 0 auto;
}

.auth-box {
  background: white;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 3px 0 #666;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-box h3 {
  margin: 0 0 8px;
  text-align: center;
}

.auth-box input {
  padding: 13px 14px;
  border: 2px solid #ddd;
  border-radius: 12px;
  font-size: 16px;
}

.auth-box button {
  padding: 13px;
  border: none;
  border-radius: 12px;
  background: #00c853;
  color: white;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
}

.account-dashboard {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-height: 0;
}

.account-top-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  flex-shrink: 0;
}

.account-left-summary {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.account-name-card {
  background: white;
  border-radius: 12px;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  font-size: 28px;
  font-weight: 800;
  box-shadow: 0 3px 0 #666;
}

.account-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.account-stat-card {
  background: white;
  border-radius: 12px;
  min-height: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 0 #666;
}

.account-stat-label {
  color: #aaa;
  font-size: 16px;
  font-weight: 800;
}

.account-stat-value {
  color: #555;
  font-size: 27px;
  font-weight: 900;
  letter-spacing: 1px;
}

.account-stat-value.best {
  color: #9cff8c;
}

.account-right-summary {
  display: flex;
  align-items: center;
  justify-content: center;
}

.account-signout-btn {
  border: none;
  background: #ff1f2f;
  color: white;
  font-size: 26px;
  font-weight: 900;
  padding: 17px 32px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 0 #666;
}

.account-collections-grid {
  flex: 1;
  min-height: 0;
  overflow: hidden;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.account-collection-panel {
  background: white;
  border-radius: 12px;
  padding: 12px 16px 16px;
  box-shadow: 0 3px 0 #666;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.collection-header {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.collection-header span {
  color: #aaa;
  font-weight: 900;
}

.collection-header strong {
  color: #555;
  font-size: 26px;
}

.country-collection-list,
.badge-collection-list {
  flex: 1;
  min-height: 0;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: max-content;
  align-content: start;
  align-items: start;

  gap: 10px;
  padding: 8px 10px 14px 0;

  overflow-y: auto;
  overflow-x: hidden;
}

.country-collection-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
  align-content: start;
  gap: 12px;
}

.country-collection-flag {
  width: 58px;
  height: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.18));
  color: #f9fafb;
  font-weight: 900;
}

.country-collection-flag-svg {
  max-width: 52px;
  max-height: 34px;
  width: auto;
  height: auto;

  object-fit: contain;
  background: transparent;
  border-radius: 4px;
  display: block;
}

.badge-collection-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  align-content: start;
  gap: 10px;
}

.collection-badge-pill {
  min-height: 22px;
  height: 22px;
  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 9px;
  border: 2px solid;
  padding: 2px 9px;

  font-size: 13px;
  font-weight: 900;
  text-align: center;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.collection-badge-count {
  margin-left: 5px;
  font-size: 11px;
  font-weight: 900;
  opacity: 0.65;
}

.empty-collection {
  color: #aaa;
  font-weight: bold;
  text-align: center;
  margin-top: 24px;
}

.account-history-section {
  margin-top: 32px;
  background: white;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 3px 0 #666;
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 320px;
  max-height: 75vh;
  overflow: hidden;
}

.account-history-section .collection-header {
  flex-shrink: 0;
}

#history-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.account-history-header {

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:18px;
    position: sticky;
    top: 0;
    background: var(--panel-bg);
    z-index: 5;

}



.account-history-title {

    font-size:26px;

    font-weight:700;

}

.account-history-subtitle {

    margin-top:4px;

    opacity:.75;

    font-size:15px;

}

#historyList{

    display:flex;

    flex-direction:column;

    gap:14px;

}

.history-pagination{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:20px;

    margin-top:10px;

}


/* -----------------------------
   Drawn country flags under Play button
----------------------------- */

#map {
  height: 520px;
}

.drawn-flags-bar {
  margin-top: 8px;
  min-height: 68px;

  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 14px;

  padding: 0 10px;
}

.drawn-flags-bar.hidden {
  display: none;
}

.drawn-flag-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.drawn-flag {
  font-size: 44px;
  line-height: 1;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.18));
}

.new-marker {
  background: #fff7c2;
  border: 2px solid #f6c64d;
  color: #e2a900;
  box-shadow: 0 0 8px rgba(246, 198, 77, 0.65);

  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.5px;

  padding: 3px 8px;
  border-radius: 5px;
  text-transform: uppercase;
}

.badge-card {
  position: relative;
}

.badge-new-marker {
  position: absolute;
  right: 12px;
  bottom: 10px;
}

.drawn-flag-pop {
  animation: drawn-flag-pop 0.35s ease-out;
}

@keyframes drawn-flag-pop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.85);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Account dashboard refinements */

.auth-grid.auth-grid-single {
  grid-template-columns: minmax(280px, 460px);
  justify-content: center;
}

.auth-button-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.auth-box button.secondary {
  background: #3399ff;
}

.auth-message {
  min-height: 18px;
  margin: 0;
  text-align: center;
  color: #555;
  font-weight: bold;
}

.auth-message.error {
  color: #ff1f2f;
}

.auth-note {
  margin: 0;
  text-align: center;
  color: #999;
  font-size: 13px;
  font-weight: bold;
}

.account-modal-content {
  max-width: 1100px;
  max-height: 820px;
  margin: auto;
}

.account-collections-grid {
  min-height: 240px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.account-collection-panel {
  min-height: 240px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.country-collection-list {
  grid-auto-flow: row;
  justify-items: start;
  padding: 8px 12px 18px 12px;
}

.badge-collection-list {
  grid-auto-flow: row;
  padding: 8px 12px 18px 12px;
}

.collection-badge-pill {
  position: relative;
  min-width: 0;
}

.collection-badge-count {
  vertical-align: baseline;
}

.hidden {
  display: none !important;
}

.home-logo-btn {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  font-size: 28px;
  font-weight: 900;
  cursor: pointer;
  font-family: inherit;
}

.help-page {
  height: calc(100dvh - var(--header-height));
  padding: 28px 34px;
  overflow-y: auto;

  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: start;
  gap: 22px 16px;
}

.help-card {
  min-height: 160px;
  background: white;
  border: 3px solid #b8b8b8;
  border-radius: 24px;
  padding: 8px 28px 22px;
  text-align: center;

  display: flex;
  flex-direction: column;
  align-items: center;
}

.help-card h2 {
  margin: 0 0 12px;
  color: #3f3f3f;
  font-size: 22px;
  font-weight: 900;
}

.help-card p {
  margin: 0;
  color: #b0b0b0;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 800;
  max-width: 720px;
}

.green-text {
  color: #00c853;
  font-weight: 900;
}

.history-row {
  display: grid;
  grid-template-columns: 120px 140px 100px 140px 100px;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  transition: 0.15s;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
}

.history-row::after {
  display: none;
}

.history-row:hover {
  background: rgba(0, 200, 83, 0.08);
}

.history-score-badge {
  position: relative;
  overflow: visible;
  border-radius: 10px;
  font-weight: 700;
  font-size: 20px;
  padding: 10px 16px;
  text-align: center;
  min-width: 120px;
}

.history-score-badge::after {
  display: none;
}

.history-best-icon {
  position: absolute;
  top: -8px;
  right: -8px;
  font-size: 24px;
}

.history-flags {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
  min-height: 28px;
}

.history-flag-svg {
  width: 22px;
  height: 16px;
  object-fit: contain;
  border-radius: 2px;
}

.history-badge-count {
  font-weight: 700;
  color: #666;
  text-align: center;
}

.history-anagram {
  font-weight: 600;
  color: #888;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-style: italic;
}

.history-date {
  font-weight: 600;
  color: #999;
  text-align: right;
  font-size: 13px;
}

.history-new{

color:#8aff8a;

font-weight:700;

margin-top:4px;

}

.history-skeleton {
    height: 82px;
    border-radius: 16px;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,.04),
        rgba(255,255,255,.08),
        rgba(255,255,255,.04)
    );
    background-size: 200% 100%;
    animation: skeletonMove 1.4s infinite;
}

/* -----------------------------
   Mobile layout
----------------------------- */

@media (max-width: 800px) {
  :root {
    --header-height: auto;
    --page-padding: 10px;
    --panel-gap: 14px;
  }

  html,
  body {
    height: auto;
    min-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
  }

  header {
    height: auto;
    padding: 12px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .left-header {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  h1 {
    font-size: 24px;
  }

  .header-btn,
  .account-btn {
    padding: 7px 10px;
    font-size: 12px;
  }

  #game-area {
    height: auto;
    min-height: calc(100dvh - 70px);
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 10px;
    overflow: visible;
  }

  #map-container {
    width: 100%;
    min-height: auto;
  }

  #map-container.expanded {
    width: 100%;
  }

  #map {
    height: 52dvh;
    min-height: 330px;
    border-radius: 18px;
  }

  #play-btn {
    margin-top: 12px;
    padding: 14px;
    font-size: 24px;
    border-radius: 12px;
  }

  .drawn-flags-bar {
    min-height: 58px;
    gap: 8px;
    flex-wrap: wrap;
  }

  .drawn-flag {
    font-size: 36px;
  }

  #side-panel {
    width: 100%;
    height: auto;
    min-height: 420px;
    gap: 14px;
    overflow: visible;
  }

  #side-panel.hidden {
    display: none;
  }

  #score-box {
    padding: 14px;
    border-radius: 16px;
    border-width: 5px;
  }

  #score-box h2 {
    font-size: 15px;
  }

  #score {
    font-size: 42px;
  }

  #badges-container {
    max-height: 55dvh;
    min-height: 320px;
    overflow-y: auto;
    padding: 14px;
    gap: 14px;
  }

  .badge-card {
    padding: 13px 14px;
    border-radius: 16px;
  }

  .badge-header {
    gap: 8px;
  }

  .badge-title-area {
    flex-wrap: wrap;
  }

  .badge-name {
    font-size: 17px;
  }

  .badge-desc {
    font-size: 14px;
  }

  .badge-flags {
    font-size: 26px;
    flex-wrap: wrap;
  }
}

/* -----------------------------
   Share shine + anagram button
----------------------------- */

#play-btn.share-ready-shine {
  position: relative;
  overflow: hidden;
}

#play-btn.share-ready-shine::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.75) 50%,
    rgba(255,255,255,0) 100%
  );
  transform: skewX(-25deg);
  animation: share-button-shine 1.1s ease-out 1;
  pointer-events: none;
}

@keyframes share-button-shine {
  from {
    left: -120%;
  }

  to {
    left: 170%;
  }
}

#map-container.game-finished #map {
  flex: 0 0 62%;
  min-height: 450px;
}

.create-anagram-btn,
.play-again-btn {
  width: min(360px, 80%);
  border: none;
  border-radius: 12px;

  font-family: inherit;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;

  color: white;
  cursor: pointer;

  box-shadow: 0 0 18px rgba(0, 200, 83, 0.22);
  transition:
    transform 0.15s ease,
    filter 0.15s ease,
    box-shadow 0.15s ease;
}

.create-anagram-btn:hover,
.play-again-btn:hover {
  filter: brightness(1.05);
  box-shadow: 0 0 24px rgba(0, 200, 83, 0.32);
}

.create-anagram-btn {
  margin: 6px auto 0;
  padding: 13px 16px;
  background: #00c853;
}

.play-again-btn {
  margin: 34px auto 0;
  padding: 13px 16px 9px;
  background: #00c853;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.play-again-btn span {
  margin-top: 2px;
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
  opacity: 0.9;
  text-transform: none;
}

.create-anagram-btn {
  background: #b5b5b5;
  box-shadow: 0 0 18px rgba(180, 180, 180, 0.28);
}

.create-anagram-btn:hover {
  box-shadow: 0 0 24px rgba(180, 180, 180, 0.38);
}

.game-toggle-btn {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);

  width: 48px;
  height: 48px;

  border: none;
  border-radius: 50%;
  background: transparent;
  color: currentColor;

  font-size: 42px;
  font-weight: 900;
  line-height: 1;

  cursor: pointer;
  opacity: 0.75;
}

.game-toggle-btn:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.08);
}

.game-toggle-btn {
  z-index: 5;
  pointer-events: auto;
}

/* -----------------------------
   Anagram modal
----------------------------- */

.anagram-modal.hidden {
  display: none;
}

.anagram-modal {
  position: fixed;
  inset: 0;
  z-index: 20000;
}

.anagram-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
}

.anagram-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(660px, calc(100vw - 28px));
  transform: translate(-50%, -50%);

  background: white;
  border-radius: 20px;
  padding: 58px 22px 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.35);

  display: flex;
  flex-direction: column;
  align-items: center;
}

.anagram-close-btn {
  position: absolute;
  top: 12px;
  right: 16px;

  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #222;
  background: white;
  color: #222;

  font-size: 24px;
  line-height: 28px;
  cursor: pointer;
}

.anagram-output {
  min-height: 58px;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  align-items: center;

  font-size: 44px;
  font-weight: 900;
  letter-spacing: 4px;
}

.anagram-output-item {
  cursor: pointer;
  user-select: none;
}

.anagram-output-space {
  width: 20px;
}

.anagram-line {
  width: 92%;
  height: 3px;
  background: #222;
  margin: 4px 0 2px;
}

.anagram-count {
  color: #111;
  font-size: 15px;
  font-weight: 900;
  margin-bottom: 8px;
}

.anagram-box-row,
.anagram-control-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin-bottom: 6px;
}

.anagram-box {
  min-width: 46px;
  height: 44px;
  border: 1px solid #aaa;
  border-radius: 7px;
  background: #f9f9f9;
  color: #444;
  font-size: 28px;
  font-weight: 900;
  cursor: pointer;
  user-select: none;
}

.anagram-box.used {
  color: #c2c2c2;
  background: #f4f4f4;
}

.punctuation-row .anagram-box {
  font-size: 28px;
}

.anagram-wide-box {
  min-width: 98px;
  height: 30px;
  font-size: 18px;
  letter-spacing: 5px;
}

.anagram-backspace-box {
  min-width: 48px;
  height: 30px;
  font-size: 20px;
}

.anagram-actions {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 8px;
}

.anagram-action-btn {
  border: none;
  border-radius: 9px;
  padding: 13px 8px;
  color: white;
  font-size: 21px;
  font-weight: 900;
  cursor: pointer;
}

.anagram-action-btn.nevermind {
  background: #ff1f2f;
}

.anagram-action-btn.ready {
  background: #43d943;
}

/* Mobile */
@media (max-width: 800px) {
  #map-container.game-finished #map {
    flex: 0 0 46dvh;
    min-height: 250px;
  }

  .create-anagram-btn {
    width: 100%;
    font-size: 18px;
  }

  .anagram-card {
    padding: 54px 12px 14px;
  }

  .anagram-output {
    font-size: 34px;
    letter-spacing: 2px;
  }

  .anagram-box {
    min-width: 38px;
    height: 38px;
    font-size: 23px;
  }

  .anagram-actions {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .anagram-action-btn {
    font-size: 18px;
  }
}

.small-popup {
  position: fixed;
  top: 95px;
  right: 24px;
  background: #111827;
  color: white;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: bold;
  font-size: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  z-index: 9999;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.small-popup.show {
  opacity: 1;
  transform: translateY(0);
}

.small-popup.hidden {
  display: none;
}

body.dark-mode .small-popup {
  background: #f9fafb;
  color: #111827;
}

/* -----------------------------
   Mobile account page
----------------------------- */

@media (max-width: 800px) {
  .account-modal-content {
    inset: 10px;
    padding: 46px 14px 14px;
    border-radius: 16px;
    overflow: hidden;
  }

  .auth-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .account-dashboard {
    gap: 14px;
  }

  .account-top-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .account-name-card {
    min-height: 64px;
    font-size: 24px;
  }

  .account-stats-row {
    grid-template-columns: 1fr 1fr;
  }

  .account-stat-card {
    min-height: 64px;
  }

  .account-stat-label {
    font-size: 13px;
  }

  .account-stat-value {
    font-size: 22px;
  }

  .account-right-summary {
    justify-content: center;
  }

  .account-signout-btn {
    font-size: 22px;
    padding: 13px 28px;
  }

  .account-collections-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    min-height: 0;
  }

  .account-collection-panel {
    min-height: 220px;
    max-height: 34dvh;
  }

  .collection-header {
    gap: 12px;
    margin-bottom: 10px;
  }

  .collection-header strong {
    font-size: 22px;
  }

  .country-collection-list {
    grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
    gap: 8px;
  }

  .country-collection-flag {
    font-size: 34px;
  }

  .badge-collection-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .collection-badge-pill {
    height: 24px;
    font-size: 12px;
  }
}

/* -----------------------------
Mobile help page
----------------------------- */

@media (max-width: 800px) {
  .home-logo-btn {
    font-size: 24px;
  }

  .help-page {
    height: auto;
    min-height: calc(100dvh - 70px);
    grid-template-columns: 1fr;
    padding: 14px;
    gap: 14px;
    overflow-y: visible;
  }

  .help-card {
    min-height: auto;
    padding: 12px 16px 20px;
    border-radius: 18px;
  }

  .help-card h2 {
    font-size: 20px;
  }

  .help-card p {
    font-size: 15px;
  }
}


/* -----------------------------
   Dark mode
----------------------------- */

body.dark-mode {
  background: #111827;
  color: #f3f4f6;
}

body.dark-mode header {
  background: #0f172a;
  box-shadow: 0 2px 8px rgba(0,0,0,0.45);
}

body.dark-mode h1,
body.dark-mode .home-logo-btn {
  color: #f9fafb;
}

body.dark-mode .header-btn,
body.dark-mode .account-btn,
body.dark-mode .theme-toggle-btn {
  background: #1f2937;
  color: #f9fafb;
  border-color: #374151;
}

body.dark-mode .header-btn:hover,
body.dark-mode .account-btn:hover,
body.dark-mode .theme-toggle-btn:hover {
  background: #374151;
}

body.dark-mode #side-panel,
body.dark-mode #score-box,
body.dark-mode .modal-card,
body.dark-mode .account-modal-content,
body.dark-mode .help-card,
body.dark-mode .account-stat-card,
body.dark-mode .account-name-card,
body.dark-mode .collection-panel {
  background: #111827;
  color: #f9fafb;
  border-color: #374151;
}

body.dark-mode .badge-placeholder {
  background: #111827;
  color: #9ca3af;
  border-color: #374151;
}

body.dark-mode .modal-input,
body.dark-mode input {
  background: #111827;
  color: #f9fafb;
  border-color: #374151;
}

body.dark-mode .modal-input::placeholder,
body.dark-mode input::placeholder {
  color: #9ca3af;
}

body.dark-mode .auth-note,
body.dark-mode .modal-small,
body.dark-mode .account-stat-label,
body.dark-mode .collection-count,
body.dark-mode .empty-collection {
  color: #9ca3af;
}

body.dark-mode .badge-card {
  background: #1f2937;
  border-color: #374151;
}

body.dark-mode .badge-name {
  color: #f9fafb;
}

body.dark-mode .badge-desc {
  color: #d1d5db;
}

body.dark-mode .badge-divider {
  border-top-color: #374151;
}

body.dark-mode .badge-score-tag {
  background: #2a2412;
  border-color: #8a6d1d;
  color: #facc15;
}

body.dark-mode .badge-placeholder {
  background: #111827;
  color: #6b7280;
  border-color: #374151;
}

/* Account modal dark mode fixes */
body.dark-mode .account-modal-content {
  background: #0f172a;
  color: #f9fafb;
}

body.dark-mode .account-history-section {
  background: #1f2937;
  border: 2px solid #374151;
  color: #f9fafb;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

/* Top account cards: name, total points, best game */
body.dark-mode .account-name-card,
body.dark-mode .account-stat-card {
  background: #1f2937;
  border: 2px solid #374151;
  color: #f9fafb;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

body.dark-mode .account-name-card strong,
body.dark-mode .account-name-card h2,
body.dark-mode .account-stat-value {
  color: #f9fafb;
}

body.dark-mode .account-stat-label {
  color: #cbd5e1;
}

/* Collection panels */
body.dark-mode .account-collection-panel {
  background: #1f2937;
  border: 2px solid #374151;
  color: #f9fafb;
}

/* Collection headers */
body.dark-mode .collection-header,
body.dark-mode .collection-header strong {
  color: #f9fafb;
}

body.dark-mode .collection-header span {
  color: #cbd5e1;
}

/* Country collection specifically */
body.dark-mode .country-collection-grid,
body.dark-mode .country-collection-list {
  background: #1f2937;
}

body.dark-mode .country-collection-item,
body.dark-mode .country-code,
body.dark-mode .country-flag-placeholder {
  color: #f9fafb;
  text-shadow: none;
}

/* Empty / faded country slots */
body.dark-mode .country-collection-item.empty,
body.dark-mode .country-code.empty,
body.dark-mode .country-flag-placeholder.empty {
  color: #64748b;
}

/* Badge collection scroll area */
body.dark-mode .badge-collection-grid,
body.dark-mode .badge-collection-list {
  background: #1f2937;
}


body.dark-mode .country-collection-flag {
  color: #f9fafb;
}

.leaderboard-card {
  max-height: 82vh;
  display: flex;
  flex-direction: column;
}

#leaderboard-content {
  max-height: 62vh;
  overflow-y: auto;
  overflow-x: auto;
  padding-right: 8px;
}

/* Leaderboard close button in dark mode */
body.dark-mode #leaderboard-close-btn,
body.dark-mode #leaderboard-modal .modal-close {
  color: #f9fafb !important;
  opacity: 0.9;
  text-shadow: 0 0 8px rgba(255,255,255,0.25);
}

body.dark-mode #leaderboard-close-btn:hover,
body.dark-mode #leaderboard-modal .modal-close:hover {
  color: #ffffff !important;
  opacity: 1;
}

/* -----------------------------
   FINAL scrollbar override
   Keep this as the ONLY scrollbar styling block
----------------------------- */

/* Light mode */
body:not(.dark-mode) #badges-container,
body:not(.dark-mode) .account-modal-content,
body:not(.dark-mode) .account-collection-panel,
body:not(.dark-mode) .account-history-section,
body:not(.dark-mode) .country-collection-list,
body:not(.dark-mode) .country-collection-grid,
body:not(.dark-mode) .badge-collection-list,
body:not(.dark-mode) .badge-collection-grid,
body:not(.dark-mode) #leaderboard-content,
body:not(.dark-mode) .leaderboard-content,
body:not(.dark-mode) .leaderboard-list,
body:not(.dark-mode) .leaderboard-table-wrap,
body:not(.dark-mode) .modal-card {
  scrollbar-width: thin;
  scrollbar-color: #9ca3af #eeeeee;
}

body:not(.dark-mode) #badges-container::-webkit-scrollbar-track,
body:not(.dark-mode) .account-modal-content::-webkit-scrollbar-track,
body:not(.dark-mode) .account-collection-panel::-webkit-scrollbar-track,
body:not(.dark-mode) .account-history-section::-webkit-scrollbar-track,
body:not(.dark-mode) .country-collection-list::-webkit-scrollbar-track,
body:not(.dark-mode) .country-collection-grid::-webkit-scrollbar-track,
body:not(.dark-mode) .badge-collection-list::-webkit-scrollbar-track,
body:not(.dark-mode) .badge-collection-grid::-webkit-scrollbar-track,
body:not(.dark-mode) #leaderboard-content::-webkit-scrollbar-track,
body:not(.dark-mode) .leaderboard-content::-webkit-scrollbar-track,
body:not(.dark-mode) .leaderboard-list::-webkit-scrollbar-track,
body:not(.dark-mode) .leaderboard-table-wrap::-webkit-scrollbar-track,
body:not(.dark-mode) .modal-card::-webkit-scrollbar-track {
  background: #eeeeee !important;
  border-radius: 999px;
}

body:not(.dark-mode) #badges-container::-webkit-scrollbar-thumb,
body:not(.dark-mode) .account-modal-content::-webkit-scrollbar-thumb,
body:not(.dark-mode) .account-collection-panel::-webkit-scrollbar-thumb,
body:not(.dark-mode) .account-history-section::-webkit-scrollbar-thumb,
body:not(.dark-mode) .country-collection-list::-webkit-scrollbar-thumb,
body:not(.dark-mode) .country-collection-grid::-webkit-scrollbar-thumb,
body:not(.dark-mode) .badge-collection-list::-webkit-scrollbar-thumb,
body:not(.dark-mode) .badge-collection-grid::-webkit-scrollbar-thumb,
body:not(.dark-mode) #leaderboard-content::-webkit-scrollbar-thumb,
body:not(.dark-mode) .leaderboard-content::-webkit-scrollbar-thumb,
body:not(.dark-mode) .leaderboard-list::-webkit-scrollbar-thumb,
body:not(.dark-mode) .leaderboard-table-wrap::-webkit-scrollbar-thumb,
body:not(.dark-mode) .modal-card::-webkit-scrollbar-thumb {
  background: #9ca3af !important;
  border-radius: 999px;
  border: 2px solid #eeeeee !important;
}

body:not(.dark-mode) #badges-container::-webkit-scrollbar-thumb:hover,
body:not(.dark-mode) .account-modal-content::-webkit-scrollbar-thumb:hover,
body:not(.dark-mode) .account-collection-panel::-webkit-scrollbar-thumb:hover,
body:not(.dark-mode) .account-history-section::-webkit-scrollbar-thumb:hover,
body:not(.dark-mode) .country-collection-list::-webkit-scrollbar-thumb:hover,
body:not(.dark-mode) .country-collection-grid::-webkit-scrollbar-thumb:hover,
body:not(.dark-mode) .badge-collection-list::-webkit-scrollbar-thumb:hover,
body:not(.dark-mode) .badge-collection-grid::-webkit-scrollbar-thumb:hover,
body:not(.dark-mode) #leaderboard-content::-webkit-scrollbar-thumb:hover,
body:not(.dark-mode) .leaderboard-content::-webkit-scrollbar-thumb:hover,
body:not(.dark-mode) .leaderboard-list::-webkit-scrollbar-thumb:hover,
body:not(.dark-mode) .leaderboard-table-wrap::-webkit-scrollbar-thumb:hover,
body:not(.dark-mode) .modal-card::-webkit-scrollbar-thumb:hover {
  background: #6b7280 !important;
}

/* Dark mode */
body.dark-mode #badges-container,
body.dark-mode .account-modal-content,
body.dark-mode .account-collection-panel,
body.dark-mode .account-history-section,
body.dark-mode .country-collection-list,
body.dark-mode .country-collection-grid,
body.dark-mode .badge-collection-list,
body.dark-mode .badge-collection-grid,
body.dark-mode #leaderboard-content,
body.dark-mode .leaderboard-content,
body.dark-mode .leaderboard-list,
body.dark-mode .leaderboard-table-wrap,
body.dark-mode .modal-card {
  scrollbar-width: thin;
  scrollbar-color: #64748b #111827;
}

body.dark-mode #badges-container::-webkit-scrollbar,
body.dark-mode .account-modal-content::-webkit-scrollbar,
body.dark-mode .account-collection-panel::-webkit-scrollbar,
body.dark-mode .account-history-section::-webkit-scrollbar,
body.dark-mode .country-collection-list::-webkit-scrollbar,
body.dark-mode .country-collection-grid::-webkit-scrollbar,
body.dark-mode .badge-collection-list::-webkit-scrollbar,
body.dark-mode .badge-collection-grid::-webkit-scrollbar,
body.dark-mode #leaderboard-content::-webkit-scrollbar,
body.dark-mode .leaderboard-content::-webkit-scrollbar,
body.dark-mode .leaderboard-list::-webkit-scrollbar,
body.dark-mode .leaderboard-table-wrap::-webkit-scrollbar,
body.dark-mode .modal-card::-webkit-scrollbar,
body:not(.dark-mode) #badges-container::-webkit-scrollbar,
body:not(.dark-mode) .account-modal-content::-webkit-scrollbar,
body:not(.dark-mode) .account-collection-panel::-webkit-scrollbar,
body:not(.dark-mode) .account-history-section::-webkit-scrollbar,
body:not(.dark-mode) .country-collection-list::-webkit-scrollbar,
body:not(.dark-mode) .country-collection-grid::-webkit-scrollbar,
body:not(.dark-mode) .badge-collection-list::-webkit-scrollbar,
body:not(.dark-mode) .badge-collection-grid::-webkit-scrollbar,
body:not(.dark-mode) #leaderboard-content::-webkit-scrollbar,
body:not(.dark-mode) .leaderboard-content::-webkit-scrollbar,
body:not(.dark-mode) .leaderboard-list::-webkit-scrollbar,
body:not(.dark-mode) .leaderboard-table-wrap::-webkit-scrollbar,
body:not(.dark-mode) .modal-card::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

body.dark-mode #badges-container::-webkit-scrollbar-track,
body.dark-mode .account-modal-content::-webkit-scrollbar-track,
body.dark-mode .account-collection-panel::-webkit-scrollbar-track,
body.dark-mode .account-history-section::-webkit-scrollbar-track,
body.dark-mode .country-collection-list::-webkit-scrollbar-track,
body.dark-mode .country-collection-grid::-webkit-scrollbar-track,
body.dark-mode .badge-collection-list::-webkit-scrollbar-track,
body.dark-mode .badge-collection-grid::-webkit-scrollbar-track,
body.dark-mode #leaderboard-content::-webkit-scrollbar-track,
body.dark-mode .leaderboard-content::-webkit-scrollbar-track,
body.dark-mode .leaderboard-list::-webkit-scrollbar-track,
body.dark-mode .leaderboard-table-wrap::-webkit-scrollbar-track,
body.dark-mode .modal-card::-webkit-scrollbar-track {
  background: #111827 !important;
  border-radius: 999px;
}

body.dark-mode #badges-container::-webkit-scrollbar-thumb,
body.dark-mode .account-modal-content::-webkit-scrollbar-thumb,
body.dark-mode .account-collection-panel::-webkit-scrollbar-thumb,
body.dark-mode .account-history-section::-webkit-scrollbar-thumb,
body.dark-mode .country-collection-list::-webkit-scrollbar-thumb,
body.dark-mode .country-collection-grid::-webkit-scrollbar-thumb,
body.dark-mode .badge-collection-list::-webkit-scrollbar-thumb,
body.dark-mode .badge-collection-grid::-webkit-scrollbar-thumb,
body.dark-mode #leaderboard-content::-webkit-scrollbar-thumb,
body.dark-mode .leaderboard-content::-webkit-scrollbar-thumb,
body.dark-mode .leaderboard-list::-webkit-scrollbar-thumb,
body.dark-mode .leaderboard-table-wrap::-webkit-scrollbar-thumb,
body.dark-mode .modal-card::-webkit-scrollbar-thumb {
  background: #64748b !important;
  border-radius: 999px;
  border: 2px solid #111827 !important;
}

body.dark-mode #badges-container::-webkit-scrollbar-thumb:hover,
body.dark-mode .account-modal-content::-webkit-scrollbar-thumb:hover,
body.dark-mode .account-collection-panel::-webkit-scrollbar-thumb:hover,
body.dark-mode .account-history-section::-webkit-scrollbar-thumb:hover,
body.dark-mode .country-collection-list::-webkit-scrollbar-thumb:hover,
body.dark-mode .country-collection-grid::-webkit-scrollbar-thumb:hover,
body.dark-mode .badge-collection-list::-webkit-scrollbar-thumb:hover,
body.dark-mode .badge-collection-grid::-webkit-scrollbar-thumb:hover,
body.dark-mode #leaderboard-content::-webkit-scrollbar-thumb:hover,
body.dark-mode .leaderboard-content::-webkit-scrollbar-thumb:hover,
body.dark-mode .leaderboard-list::-webkit-scrollbar-thumb:hover,
body.dark-mode .leaderboard-table-wrap::-webkit-scrollbar-thumb:hover,
body.dark-mode .modal-card::-webkit-scrollbar-thumb:hover {
  background: #94a3b8 !important;
}