/**
 * Valhalla for Vikinger — GamiPress Plus (gamification module).
 *
 * Uses Vikinger tokens only (var(--color-*), --vikinger-font-*) with fallbacks, so presets
 * and dark mode work automatically. Breakpoints follow the theme: 1365 / 960 / 680 / 480.
 */

/* ------------------------------------------------------------------------
 * Shared
 * --------------------------------------------------------------------- */

.vhl-leaderboard,
.vhl-gp-wallet,
.vhl-gp-completion,
.vhl-gp-completion-banner,
.vhl-gp-transfer-form {
  --vhl-gp-gold: #ffb400;
  --vhl-gp-silver: #a9b4c6;
  --vhl-gp-bronze: #d08a4c;
  font-family: var(--vikinger-font-family-primary, inherit);
}

.vhl-gp-transfer-form [hidden],
.vhl-gp-wallet [hidden],
.vhl-leaderboard [hidden] {
  display: none !important;
}

.vhl-gp-avatar-img {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.vhl-gp-avatar-img.vhl-gp-avatar-micro {
  width: 24px;
  height: 24px;
}

/* ------------------------------------------------------------------------
 * Leaderboard
 * --------------------------------------------------------------------- */

.vhl-leaderboard .vhl-lb-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-divider, #eaeaf5);
}

.vhl-leaderboard .vhl-lb-tab {
  /* Vikinger's form reset gives every <button> width: 100% (tabs would stack one per line). */
  width: auto;
  padding: 8px 12px;
  border: none;
  border-radius: 200px;
  background: transparent;
  color: var(--color-text-alt, #8f91ac);
  font-family: inherit;
  font-size: calc((12 / var(--vikinger-font-size-base, 16)) * 1rem);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .2s ease-in-out, background-color .2s ease-in-out;
}

.vhl-leaderboard .vhl-lb-tab:hover,
.vhl-leaderboard .vhl-lb-tab:focus-visible {
  color: var(--color-text, #3e3f5e);
  background-color: var(--color-box-hover-background, #f2f2f9);
}

.vhl-leaderboard .vhl-lb-tab.active {
  color: #fff;
  background-color: var(--color-secondary, #615dfa);
  box-shadow: var(--color-secondary-shadow, none);
}

.vhl-leaderboard .vhl-lb-body {
  position: relative;
  transition: opacity .2s ease-in-out;
}

.vhl-leaderboard.is-loading .vhl-lb-body {
  opacity: .45;
  pointer-events: none;
}

.vhl-leaderboard .vhl-lb-list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vhl-leaderboard .vhl-lb-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  margin: 0;
  padding: 0;
}

.vhl-leaderboard .vhl-lb-row.vhl-lb-me {
  margin: -8px -12px;
  padding: 8px 12px;
  border-radius: 12px;
  background-color: var(--color-box-highlight-background, #f7f7fb);
  box-shadow: inset 3px 0 0 var(--color-primary, #23d2e2);
}

.vhl-leaderboard .vhl-lb-position {
  display: flex;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border-radius: 200px;
  background-color: var(--color-box-over-box-light-background, #fff);
  box-shadow: var(--color-overbox-shadow, 3px 5px 20px 0 rgba(94, 92, 154, .12));
  color: var(--color-text, #3e3f5e);
  font-size: calc((12 / var(--vikinger-font-size-base, 16)) * 1rem);
  font-weight: 700;
  line-height: 1;
}

.vhl-leaderboard .vhl-lb-top .vhl-lb-position {
  color: #fff;
  box-shadow: none;
}

.vhl-leaderboard .vhl-lb-top-1 .vhl-lb-position {
  background: var(--vhl-gp-gold);
  box-shadow: 0 0 0 3px rgba(255, 180, 0, .2);
}

.vhl-leaderboard .vhl-lb-top-2 .vhl-lb-position {
  background: var(--vhl-gp-silver);
}

.vhl-leaderboard .vhl-lb-top-3 .vhl-lb-position {
  background: var(--vhl-gp-bronze);
}

.vhl-leaderboard .vhl-lb-avatar {
  display: flex;
  flex-shrink: 0;
  align-items: center;
}

.vhl-leaderboard .vhl-lb-avatar .user-avatar,
.vhl-leaderboard .vhl-lb-avatar .user-avatar-circle {
  position: relative;
  margin: 0;
}

.vhl-leaderboard .vhl-lb-member {
  flex: 1 1 auto;
  min-width: 0;
}

.vhl-leaderboard .vhl-lb-name {
  display: block;
  overflow: hidden;
  color: var(--color-text, #3e3f5e);
  font-size: calc((14 / var(--vikinger-font-size-base, 16)) * 1rem);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.vhl-leaderboard a.vhl-lb-name:hover {
  color: var(--color-primary, #23d2e2);
}

.vhl-leaderboard .vhl-lb-meta {
  margin-top: 6px;
  overflow: hidden;
  color: var(--color-text-alt, #8f91ac);
  font-size: calc((12 / var(--vikinger-font-size-base, 16)) * 1rem);
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.vhl-leaderboard .vhl-lb-value {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  text-align: right;
}

.vhl-leaderboard .vhl-lb-value-image {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.vhl-leaderboard .vhl-lb-value-main {
  color: var(--color-text, #3e3f5e);
  font-size: calc((16 / var(--vikinger-font-size-base, 16)) * 1rem);
  font-weight: 700;
  line-height: 1;
}

.vhl-leaderboard .vhl-lb-top-1 .vhl-lb-value-main {
  color: var(--color-primary-dark, #00c7d9);
}

.vhl-leaderboard .vhl-lb-value-sub {
  margin-top: 4px;
  color: var(--color-text-alt, #8f91ac);
  font-size: calc((11 / var(--vikinger-font-size-base, 16)) * 1rem);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.vhl-leaderboard .vhl-lb-empty {
  margin: 0;
  line-height: 1.5;
}

.vhl-leaderboard .vhl-lb-you {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px dashed var(--color-divider, #eaeaf5);
}

.vhl-leaderboard .vhl-lb-you-title {
  margin-bottom: 16px;
  color: var(--color-text-alt, #8f91ac);
  font-size: calc((11 / var(--vikinger-font-size-base, 16)) * 1rem);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.vhl-leaderboard .vhl-lb-you-text {
  color: var(--color-text-alt, #8f91ac);
  font-size: calc((13 / var(--vikinger-font-size-base, 16)) * 1rem);
  font-weight: 500;
  line-height: 1.5;
}

/* Sidebar widget: the theme already provides the widget-box + title. */
.vhl-leaderboard-widget .vhl-lb-tabs {
  margin-bottom: 20px;
}

.vhl-leaderboard-widget .vhl-lb-list {
  gap: 16px;
}

/* ------------------------------------------------------------------------
 * Credits Wallet
 * --------------------------------------------------------------------- */

.vhl-gp-wallet {
  display: grid;
  grid-template-columns: 100%;
  gap: 16px;
}

.vhl-gp-balances {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.vhl-gp-balances .vhl-gp-balance {
  padding: 26px 18px 28px;
  background-color: var(--color-box-background-alt, var(--color-box-background, #fff));
  box-shadow: none;
  border: 1px solid var(--color-divider, #eaeaf5);
}

.vhl-gp-balances .vhl-gp-balance .point-item-box-image-wrap {
  width: 64px;
  height: 64px;
}

.vhl-gp-balances .vhl-gp-balance .point-item-box-image {
  width: 32px;
}

.vhl-gp-balances .vhl-gp-balance .point-item-box-title {
  margin-top: 22px;
  font-size: calc((28 / var(--vikinger-font-size-base, 16)) * 1rem);
  line-height: 1;
}

.vhl-gp-balances .vhl-gp-balance .point-item-box-subtitle {
  font-size: calc((14 / var(--vikinger-font-size-base, 16)) * 1rem);
  line-height: 1.2;
}

.vhl-gp-balances .vhl-gp-balance .vhl-gp-balance-cap {
  width: auto;
  margin-top: 12px;
  color: var(--color-text-alt, #8f91ac);
  font-size: calc((12 / var(--vikinger-font-size-base, 16)) * 1rem);
}

.vhl-gp-balance-icon {
  width: 24px;
  height: 24px;
  fill: var(--color-primary, #23d2e2);
}

.vhl-gp-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.vhl-gp-stat {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  row-gap: 6px;
  align-items: center;
  padding: 18px;
  border-radius: 12px;
  background-color: var(--color-box-highlight-background, #f7f7fb);
}

.vhl-gp-stat-icon {
  display: flex;
  grid-row: 1 / span 2;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--color-box-over-box-light-background, #fff);
  box-shadow: var(--color-overbox-shadow, none);
}

.vhl-gp-stat-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--color-secondary, #615dfa);
}

.vhl-gp-stat-value {
  color: var(--color-text, #3e3f5e);
  font-size: calc((22 / var(--vikinger-font-size-base, 16)) * 1rem);
  font-weight: 700;
  line-height: 1;
}

.vhl-gp-stat-label {
  color: var(--color-text-alt, #8f91ac);
  font-size: calc((12 / var(--vikinger-font-size-base, 16)) * 1rem);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

/* ------------------------------------------------------------------------
 * Transfer form
 * --------------------------------------------------------------------- */

.vhl-gp-transfer-form .vhl-gp-member-field {
  position: relative;
}

.vhl-gp-suggest {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  z-index: 30;
  max-height: 280px;
  padding: 8px;
  overflow-y: auto;
  border-radius: 12px;
  background-color: var(--color-box-over-box-light-background, var(--color-box-background, #fff));
  box-shadow: var(--color-overbox-dark-shadow, 0 0 40px 0 rgba(94, 92, 154, .12));
}

.vhl-gp-suggest-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--color-text, #3e3f5e);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.vhl-gp-suggest-item:hover,
.vhl-gp-suggest-item.active {
  background-color: var(--color-box-hover-background, #f2f2f9);
}

.vhl-gp-suggest-avatar,
.vhl-gp-chip-avatar {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.vhl-gp-suggest-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.vhl-gp-suggest-name {
  overflow: hidden;
  font-size: calc((14 / var(--vikinger-font-size-base, 16)) * 1rem);
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.vhl-gp-suggest-mention {
  color: var(--color-text-alt, #8f91ac);
  font-size: calc((12 / var(--vikinger-font-size-base, 16)) * 1rem);
  font-weight: 500;
  line-height: 1.1;
}

.vhl-gp-suggest-message {
  padding: 10px;
  color: var(--color-text-alt, #8f91ac);
  font-size: calc((13 / var(--vikinger-font-size-base, 16)) * 1rem);
  font-weight: 500;
  line-height: 1.4;
}

.vhl-gp-recipient-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 7px 8px 7px 8px;
  border: 1px solid var(--color-border, #dedeea);
  border-radius: 12px;
  background-color: var(--color-box-background, #fff);
}

.vhl-gp-chip-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: var(--color-text, #3e3f5e);
  font-size: calc((14 / var(--vikinger-font-size-base, 16)) * 1rem);
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.vhl-gp-chip-clear {
  display: flex;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 10px;
  background-color: var(--color-box-hover-background, #f2f2f9);
  color: var(--color-text-alt, #8f91ac);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.vhl-gp-chip-clear:hover {
  color: #fff;
  background-color: var(--color-tertiary, #fd4350);
}

.vhl-gp-recipient-fixed {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  padding: 14px 16px;
  border-radius: 12px;
  background-color: var(--color-box-highlight-background, #f7f7fb);
}

.vhl-gp-recipient-label {
  color: var(--color-text-alt, #8f91ac);
  font-size: calc((11 / var(--vikinger-font-size-base, 16)) * 1rem);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.vhl-gp-recipient-name {
  margin-top: 6px;
  color: var(--color-text, #3e3f5e);
  font-size: calc((16 / var(--vikinger-font-size-base, 16)) * 1rem);
  font-weight: 700;
  line-height: 1.1;
}

.vhl-gp-transfer-summary {
  min-height: 1em;
  margin-top: 20px;
  color: var(--color-text-alt, #8f91ac);
  font-size: calc((13 / var(--vikinger-font-size-base, 16)) * 1rem);
  font-weight: 600;
  line-height: 1.5;
}

.vhl-gp-transfer-error {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background-color: var(--color-notice-overlay-background-tertiary, rgba(253, 67, 80, .14));
  color: var(--color-tertiary, #fd4350);
  font-size: calc((13 / var(--vikinger-font-size-base, 16)) * 1rem);
  font-weight: 700;
  line-height: 1.5;
}

.vhl-gp-transfer-form .vhl-gp-transfer-summary + .vhl-gp-transfer-error + .form-row,
.vhl-gp-transfer-form .vhl-gp-transfer-summary + .vhl-gp-transfer-error[hidden] + .form-row {
  margin-top: 20px;
}

.vhl-gp-transfer-form.is-busy .vhl-gp-transfer-submit {
  opacity: .6;
  cursor: wait;
}

.vhl-gp-transfer-limits {
  margin-top: 16px;
  color: var(--color-text-alt-2, #adafca);
  font-size: calc((12 / var(--vikinger-font-size-base, 16)) * 1rem);
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

/* ------------------------------------------------------------------------
 * Transfer history
 * --------------------------------------------------------------------- */

.vhl-gp-history {
  transition: opacity .2s ease-in-out;
}

.vhl-gp-history.is-loading {
  opacity: .45;
  pointer-events: none;
}

.vhl-gp-table-wrap {
  overflow-x: auto;
}

.vhl-gp-history-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--color-text, #3e3f5e);
}

.vhl-gp-history-table th {
  padding: 0 16px 12px 0;
  color: var(--color-text, #3e3f5e);
  font-size: calc((12 / var(--vikinger-font-size-base, 16)) * 1rem);
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
}

.vhl-gp-history-table td {
  padding: 14px 16px 14px 0;
  border-top: 1px solid var(--color-divider, #eaeaf5);
  font-size: calc((14 / var(--vikinger-font-size-base, 16)) * 1rem);
  font-weight: 600;
  line-height: 1.4;
  vertical-align: middle;
}

.vhl-gp-history-table th:last-child,
.vhl-gp-history-table td:last-child {
  padding-right: 0;
}

.vhl-gp-tx-date {
  color: var(--color-text-alt, #8f91ac);
  font-size: calc((13 / var(--vikinger-font-size-base, 16)) * 1rem);
  white-space: nowrap;
}

.vhl-gp-tx-member {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.vhl-gp-tx-member .user-avatar,
.vhl-gp-tx-member .user-avatar-circle {
  position: relative;
  flex-shrink: 0;
  margin: 0;
}

.vhl-gp-tx-direction {
  color: var(--color-text-alt, #8f91ac);
  font-size: calc((12 / var(--vikinger-font-size-base, 16)) * 1rem);
  font-weight: 700;
  text-transform: uppercase;
}

.vhl-gp-tx-name {
  color: var(--color-text, #3e3f5e);
  font-weight: 700;
}

a.vhl-gp-tx-name:hover {
  color: var(--color-primary, #23d2e2);
}

.vhl-gp-tx-amount {
  font-weight: 700;
  white-space: nowrap;
}

.vhl-gp-tx-in .vhl-gp-tx-amount {
  color: var(--color-primary-dark, #00c7d9);
}

.vhl-gp-tx-out .vhl-gp-tx-amount {
  color: var(--color-tertiary, #fd4350);
}

.vhl-gp-tx-fee {
  display: block;
  margin-top: 4px;
  color: var(--color-text-alt, #8f91ac);
  font-size: calc((12 / var(--vikinger-font-size-base, 16)) * 1rem);
  font-weight: 500;
}

.vhl-gp-tx-note {
  display: inline-block;
  max-width: 260px;
  color: var(--color-text-alt, #8f91ac);
  font-weight: 500;
  word-break: break-word;
}

.vhl-gp-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
}

.vhl-gp-page {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 10px;
  background-color: var(--color-box-highlight-background, #f7f7fb);
  color: var(--color-text, #3e3f5e);
  font-size: calc((13 / var(--vikinger-font-size-base, 16)) * 1rem);
  font-weight: 700;
  line-height: 1;
  transition: background-color .2s ease-in-out, color .2s ease-in-out;
}

a.vhl-gp-page:hover {
  color: #fff;
  background-color: var(--color-primary, #23d2e2);
}

.vhl-gp-page.active {
  color: #fff;
  background-color: var(--color-secondary, #615dfa);
}

.vhl-gp-page-gap {
  color: var(--color-text-alt, #8f91ac);
  font-weight: 700;
}

/* ------------------------------------------------------------------------
 * Profile completion
 * --------------------------------------------------------------------- */

.vhl-gp-progress-bar {
  position: relative;
  width: 100%;
  height: 4px;
  overflow: hidden;
  border-radius: 200px;
  background-color: var(--color-progressbar-underline, #e7e8ee);
}

.vhl-gp-progress-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  max-width: 100%;
  border-radius: 200px;
  background: linear-gradient(90deg, var(--color-progressbar-line-gradient-start, #615dfa), var(--color-progressbar-line-gradient-end, #41efff));
  transition: width .6s ease-in-out;
}

.vhl-gp-completion .vhl-gp-progress .bar-progress-wrap {
  margin-bottom: 12px;
}

.vhl-gp-completion .bar-progress-info {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--color-text, #3e3f5e);
  font-size: calc((12 / var(--vikinger-font-size-base, 16)) * 1rem);
  font-weight: 700;
  text-transform: uppercase;
}

.vhl-gp-completion .bar-progress-text {
  font-size: calc((20 / var(--vikinger-font-size-base, 16)) * 1rem);
}

.vhl-gp-completion-reward {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--color-text, #3e3f5e);
  font-size: calc((13 / var(--vikinger-font-size-base, 16)) * 1rem);
  font-weight: 700;
  line-height: 1.4;
}

.vhl-gp-completion-reward-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  fill: var(--vhl-gp-gold);
}

/* Steps left + "Complete profile" row of the compact widget (the widget box itself carries
   `.vhl-gp-completion-compact`, so this row has its own class). */
.vhl-gp-completion-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.vhl-gp-completion-left {
  color: var(--color-text-alt, #8f91ac);
  font-size: calc((13 / var(--vikinger-font-size-base, 16)) * 1rem);
  font-weight: 700;
}

.vhl-gp-checklist {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.vhl-gp-checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: calc((14 / var(--vikinger-font-size-base, 16)) * 1rem);
  font-weight: 600;
  line-height: 1.3;
}

.vhl-gp-check {
  display: flex;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 22px;
  height: 22px;
  border: 2px solid var(--color-border, #dedeea);
  border-radius: 6px;
}

.vhl-gp-checklist-item.is-done .vhl-gp-check {
  border-color: var(--color-primary, #23d2e2);
  background-color: var(--color-primary, #23d2e2);
}

.vhl-gp-check svg {
  width: 12px;
  height: 9px;
  fill: #fff;
}

.vhl-gp-checklist-label {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--color-text, #3e3f5e);
}

.vhl-gp-checklist-item.is-done .vhl-gp-checklist-label {
  color: var(--color-text-alt, #8f91ac);
  text-decoration: line-through;
}

.vhl-gp-checklist-link {
  flex-shrink: 0;
  color: var(--color-primary, #23d2e2);
  font-size: calc((12 / var(--vikinger-font-size-base, 16)) * 1rem);
  font-weight: 700;
  text-transform: uppercase;
}

.vhl-gp-checklist-link:hover {
  color: var(--color-primary-dark, #00c7d9);
}

.vhl-gp-completion-done {
  margin-top: 20px;
  color: var(--color-primary-dark, #00c7d9);
  font-size: calc((14 / var(--vikinger-font-size-base, 16)) * 1rem);
  font-weight: 700;
}

.vhl-gp-completion .screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  white-space: nowrap;
}

/* Own-profile banner (injected by gamification.js under the profile header). */
.vhl-gp-completion-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 16px 0;
  padding: 24px 64px 24px 28px;
}

.vhl-gp-banner-main {
  flex: 1 1 auto;
  min-width: 0;
}

.vhl-gp-banner-title {
  margin-bottom: 14px;
  color: var(--color-text, #3e3f5e);
  font-size: calc((16 / var(--vikinger-font-size-base, 16)) * 1rem);
  font-weight: 700;
  line-height: 1.2;
}

.vhl-gp-banner-reward {
  margin-top: 12px;
  color: var(--color-text, #3e3f5e);
  font-size: calc((13 / var(--vikinger-font-size-base, 16)) * 1rem);
  font-weight: 700;
  line-height: 1.4;
}

.vhl-gp-banner-missing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.vhl-gp-banner-missing-title {
  color: var(--color-text, #3e3f5e);
  font-size: calc((12 / var(--vikinger-font-size-base, 16)) * 1rem);
  font-weight: 700;
  text-transform: uppercase;
}

.vhl-gp-banner-chip {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  border-radius: 200px;
  background-color: var(--color-box-highlight-background, #f7f7fb);
  color: var(--color-text, #3e3f5e);
  font-size: calc((12 / var(--vikinger-font-size-base, 16)) * 1rem);
  font-weight: 700;
  line-height: 1;
}

a.vhl-gp-banner-chip:hover {
  color: #fff;
  background-color: var(--color-primary, #23d2e2);
}

.vhl-gp-banner-cta {
  flex-shrink: 0;
  padding: 0 24px;
}

.vhl-gp-banner-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 10px;
  background-color: transparent;
  color: var(--color-text-alt, #8f91ac);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.vhl-gp-banner-close:hover {
  background-color: var(--color-box-hover-background, #f2f2f9);
  color: var(--color-text, #3e3f5e);
}

/* ------------------------------------------------------------------------
 * Responsive (theme breakpoints)
 * --------------------------------------------------------------------- */

@media screen and (max-width: 960px) {
  .vhl-gp-completion-banner {
    flex-direction: column;
    align-items: stretch;
    padding-right: 28px;
  }

  .vhl-gp-banner-main {
    padding-right: 32px;
  }

  .vhl-gp-banner-cta {
    width: 100%;
  }
}

@media screen and (max-width: 680px) {
  .vhl-gp-history-table thead {
    display: none;
  }

  .vhl-gp-history-table,
  .vhl-gp-history-table tbody,
  .vhl-gp-history-table tr,
  .vhl-gp-history-table td {
    display: block;
    width: 100%;
  }

  .vhl-gp-history-table tr {
    padding: 14px 0;
    border-top: 1px solid var(--color-divider, #eaeaf5);
  }

  .vhl-gp-history-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
    border-top: none;
  }

  .vhl-gp-history-table td::before {
    content: attr(data-label);
    flex-shrink: 0;
    color: var(--color-text-alt, #8f91ac);
    font-size: calc((11 / var(--vikinger-font-size-base, 16)) * 1rem);
    font-weight: 700;
    text-transform: uppercase;
  }

  .vhl-gp-tx-note {
    max-width: 60%;
    text-align: right;
  }

  .vhl-gp-stats {
    grid-template-columns: 100%;
  }
}

@media screen and (max-width: 480px) {
  .vhl-leaderboard .vhl-lb-row {
    gap: 10px;
  }

  .vhl-leaderboard .vhl-lb-value-image {
    display: none;
  }

  .vhl-gp-balances {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}
