/* PHNX590 — classement XP v2, structure fidèle au dashboard de référence. */

body[data-route="levels"] .content,
body[data-route="levels"] .content-shell {
  max-width: none;
}

body[data-route="levels"] .levels-ranking-view {
  --xp-bg: #030817;
  --xp-panel: rgba(5, 16, 33, .96);
  --xp-panel-soft: rgba(8, 24, 46, .92);
  --xp-line: rgba(65, 121, 190, .34);
  --xp-cyan: #08d8ff;
  --xp-blue: #1688ff;
  --xp-violet: #955aff;
  --xp-gold: #ffb20c;
  --xp-green: #34e887;
  gap: 12px !important;
}

/* Hero XP */
body[data-route="levels"] .levels-ranking-view > .page-heading {
  align-items: flex-start !important;
  background:
    linear-gradient(90deg, #030817 0%, rgba(3, 8, 23, .95) 31%, rgba(3, 8, 23, .45) 56%, rgba(3, 8, 23, .08) 100%),
    url("/public/assets/levels-xp-hero-20260727-v2.png") center right / cover no-repeat !important;
  border: 1px solid rgba(57, 105, 172, .34) !important;
  border-radius: 14px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035), 0 18px 48px rgba(0, 0, 0, .3) !important;
  min-height: 236px !important;
  padding: 38px 40px !important;
}

body[data-route="levels"] .levels-ranking-view > .page-heading::before {
  background:
    linear-gradient(180deg, rgba(0, 15, 43, .05), rgba(0, 5, 20, .28)),
    repeating-linear-gradient(90deg, transparent 0 89px, rgba(29, 108, 208, .035) 90px) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  height: auto !important;
  inset: 0 !important;
  opacity: 1 !important;
  transform: none !important;
  width: auto !important;
}

body[data-route="levels"] .levels-ranking-view > .page-heading::after {
  background: radial-gradient(circle, rgba(255, 174, 15, .25) 0 1px, transparent 2px) 0 0 / 27px 27px !important;
  filter: none !important;
  height: 100% !important;
  inset: 0 !important;
  opacity: .17 !important;
  transform: none !important;
  width: 100% !important;
}

body[data-route="levels"] .levels-ranking-view > .page-heading > div {
  align-self: center;
  max-width: 680px !important;
}

body[data-route="levels"] .levels-ranking-view > .page-heading .eyebrow {
  color: var(--xp-cyan) !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  letter-spacing: .12em !important;
}

body[data-route="levels"] .levels-ranking-view > .page-heading h1 {
  font-size: clamp(38px, 3.6vw, 56px) !important;
  margin: 10px 0 14px !important;
}

body[data-route="levels"] .levels-ranking-view > .page-heading p:not(.eyebrow) {
  color: #b8c6dc !important;
  font-size: 15px !important;
}

body[data-route="levels"] .levels-ranking-view .level-symbol {
  background: rgba(18, 12, 2, .86) !important;
  border: 1px solid rgba(255, 174, 0, .72) !important;
  border-radius: 7px !important;
  bottom: auto !important;
  box-shadow: inset 0 0 14px rgba(255, 164, 0, .12), 0 0 18px rgba(255, 150, 0, .12) !important;
  clip-path: none !important;
  color: #ffb20c !important;
  font-size: 12px !important;
  height: 32px !important;
  min-width: 38px !important;
  position: absolute !important;
  right: auto !important;
  text-shadow: none !important;
  top: 94px !important;
  transform: translateX(min(39vw, 535px)) !important;
  width: 38px !important;
}

/* Widgets */
body[data-route="levels"] .levels-insights {
  gap: 12px !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

body[data-route="levels"] .levels-insight {
  background:
    radial-gradient(circle at 94% 8%, color-mix(in srgb, var(--insight-color) 15%, transparent), transparent 48%),
    linear-gradient(135deg, rgba(11, 26, 49, .98), rgba(5, 15, 31, .98)) !important;
  border-color: color-mix(in srgb, var(--insight-color) 34%, rgba(45, 80, 133, .38)) !important;
  border-radius: 13px !important;
  gap: 14px !important;
  grid-template-columns: 58px minmax(0, 1fr) !important;
  min-height: 118px !important;
  padding: 17px !important;
}

body[data-route="levels"] .levels-insight::before {
  background: linear-gradient(90deg, transparent, var(--insight-color), transparent);
  bottom: 0;
  content: "";
  height: 1px;
  left: 18%;
  opacity: .72;
  position: absolute;
  right: 18%;
}

body[data-route="levels"] .levels-insight-icon {
  border-radius: 50% !important;
  clip-path: none !important;
  box-shadow: inset 0 0 20px color-mix(in srgb, var(--insight-color) 18%, transparent),
    0 0 20px color-mix(in srgb, var(--insight-color) 25%, transparent) !important;
}

body[data-route="levels"] .levels-insight small {
  font-size: 9px !important;
}

body[data-route="levels"] .levels-insight strong {
  font-size: clamp(21px, 1.7vw, 28px) !important;
}

body[data-route="levels"] .levels-insight em {
  color: #91a1ba !important;
  font-size: 9px !important;
}

/* Recherche et filtres */
body[data-route="levels"] .levels-browser {
  background: linear-gradient(145deg, rgba(5, 16, 33, .98), rgba(2, 9, 21, .99)) !important;
  border-color: rgba(58, 105, 170, .34) !important;
  padding: 9px !important;
}

body[data-route="levels"] .levels-browser .level-toolbar {
  background: linear-gradient(90deg, rgba(7, 24, 48, .98), rgba(4, 15, 32, .98)) !important;
  border-color: rgba(48, 110, 184, .5) !important;
  box-shadow: inset 0 0 24px rgba(0, 111, 255, .06) !important;
  gap: 12px !important;
  grid-template-columns: minmax(270px, 1fr) 220px auto 42px !important;
  min-height: 66px !important;
  padding: 9px 11px !important;
}

body[data-route="levels"] .level-toolbar .level-filter-field {
  align-items: center;
  border-left: 1px solid rgba(71, 113, 165, .24);
  display: flex !important;
  padding-left: 12px;
}

body[data-route="levels"] .level-toolbar .level-filter-field::before {
  border: 0 !important;
  border-left: 5px solid transparent !important;
  border-right: 5px solid transparent !important;
  border-top: 8px solid #8fa5c1 !important;
  border-radius: 1px !important;
  height: 0 !important;
  left: 17px !important;
  top: 40% !important;
  transform: rotate(180deg) !important;
  width: 0 !important;
}

body[data-route="levels"] .level-toolbar .level-filter-field::after {
  background: #8fa5c1 !important;
  height: 6px !important;
  left: 21px !important;
  top: 52% !important;
  transform: none !important;
  width: 2px !important;
}

body[data-route="levels"] .level-toolbar select {
  appearance: none;
  background: rgba(7, 20, 40, .74) !important;
  border: 1px solid rgba(64, 109, 164, .42) !important;
  border-radius: 8px !important;
  color: #e2ebf8 !important;
  cursor: pointer;
  font-size: 11px !important;
  height: 42px !important;
  padding: 0 30px 0 34px !important;
  width: 100%;
}

body[data-route="levels"] .level-toolbar > div {
  border-left: 1px solid rgba(67, 104, 151, .22);
  min-width: 226px !important;
  padding-left: 12px;
}

body[data-route="levels"] .level-refresh {
  align-items: center;
  align-self: center;
  background: rgba(7, 24, 49, .92);
  border: 1px solid rgba(57, 111, 177, .5);
  border-radius: 50%;
  color: #9fb2cd;
  display: flex;
  height: 38px;
  justify-content: center;
  padding: 0;
  transition: border-color .2s ease, color .2s ease, transform .25s ease;
  width: 38px;
}

body[data-route="levels"] .level-refresh:hover {
  border-color: var(--xp-cyan);
  color: var(--xp-cyan);
  transform: rotate(38deg);
}

body[data-route="levels"] .level-refresh.is-loading {
  animation: xp-refresh-spin .7s linear infinite;
}

body[data-route="levels"] .level-refresh svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  width: 18px;
}

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

/* Tableau */
body[data-route="levels"] .levels-table-head {
  grid-template-columns: 82px 72px minmax(200px, 1.12fr) 105px minmax(230px, 1fr) minmax(230px, .95fr) !important;
  min-height: 38px !important;
  padding: 0 14px !important;
}

body[data-route="levels"] .level-card {
  background:
    radial-gradient(circle at 100% 0, rgba(0, 128, 255, .07), transparent 37%),
    linear-gradient(102deg, rgba(8, 25, 46, .99), rgba(4, 16, 32, .99)) !important;
  border-color: rgba(48, 107, 169, .6) !important;
  border-radius: 11px !important;
  gap: 10px !important;
  grid-template-columns: 82px 72px minmax(200px, 1.12fr) 105px minmax(230px, 1fr) minmax(230px, .95fr) !important;
  min-height: 94px !important;
  padding: 9px 14px !important;
}

body[data-route="levels"] .level-card:has(.level-avatar-shell.has-site-profile-frame) {
  grid-template-columns: 82px 116px minmax(200px, 1.12fr) 105px minmax(230px, 1fr) minmax(230px, .95fr) !important;
  min-height: 128px !important;
}

body[data-route="levels"] .level-card-rank-1 {
  background:
    linear-gradient(90deg, rgba(255, 176, 0, .13), transparent 18%),
    radial-gradient(circle at 100% 0, rgba(62, 82, 255, .13), transparent 42%),
    linear-gradient(102deg, rgba(10, 27, 49, .99), rgba(5, 16, 35, .99)) !important;
  border-color: rgba(255, 186, 31, .88) !important;
  box-shadow: inset 3px 0 0 #ffc027, 0 0 22px rgba(255, 172, 0, .09) !important;
}

body[data-route="levels"] .level-card-rank-2 {
  border-color: rgba(73, 182, 255, .78) !important;
  box-shadow: inset 2px 0 0 rgba(123, 205, 255, .8) !important;
}

body[data-route="levels"] .level-card-rank-3 {
  border-color: rgba(215, 108, 45, .78) !important;
  box-shadow: inset 2px 0 0 rgba(232, 119, 44, .82) !important;
}

body[data-route="levels"] .level-rank {
  background: linear-gradient(145deg, #10243f, #081426) !important;
  border: 1px solid #365f91 !important;
  border-radius: 9px !important;
  clip-path: none !important;
  height: 56px !important;
  isolation: isolate;
  overflow: visible;
  position: relative;
  width: 56px !important;
}

body[data-route="levels"] .level-card-top .level-rank {
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: var(--medal-color) !important;
  filter: drop-shadow(0 0 11px color-mix(in srgb, var(--medal-color) 35%, transparent)) !important;
  font-size: 25px !important;
  height: 66px !important;
  margin-left: 2px;
  width: 68px !important;
}

body[data-route="levels"] .level-card-rank-1 .level-rank { --medal-color: #ffbd1f; }
body[data-route="levels"] .level-card-rank-2 .level-rank { --medal-color: #c9e4ff; }
body[data-route="levels"] .level-card-rank-3 .level-rank { --medal-color: #e6803a; }

body[data-route="levels"] .level-card-top .level-rank::before {
  color: var(--medal-color);
  content: "♛";
  font-size: 15px;
  left: 50%;
  position: absolute;
  top: -4px;
  transform: translateX(-50%);
}

body[data-route="levels"] .level-card-top .level-rank::after {
  border: 3px solid var(--medal-color);
  border-bottom-color: transparent;
  border-radius: 50%;
  content: "";
  inset: 10px 4px 2px;
  opacity: .88;
  position: absolute;
  z-index: -1;
}

body[data-route="levels"] .level-rank-number {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: center;
  width: 100%;
}

body[data-route="levels"] .level-card-top .level-rank-number::before,
body[data-route="levels"] .level-card-top .level-rank-number::after {
  color: var(--medal-color);
  content: "❯";
  font-size: 17px;
  opacity: .9;
  position: absolute;
  top: 27px;
}

body[data-route="levels"] .level-card-top .level-rank-number::before {
  left: 0;
  transform: rotate(180deg);
}

body[data-route="levels"] .level-card-top .level-rank-number::after {
  right: 0;
}

body[data-route="levels"] .level-avatar-shell {
  height: 62px !important;
  justify-self: center;
  width: 62px !important;
}

body[data-route="levels"] .level-avatar {
  height: 62px !important;
  width: 62px !important;
}

body[data-route="levels"] .level-avatar-shell.has-site-profile-frame {
  --profile-frame-auto-min-scale: 128;
  --profile-frame-auto-max-scale: 170;
}

body[data-route="levels"] .level-avatar-shell.has-site-profile-frame > img.site-profile-frame-image {
  left: 50% !important;
  max-height: 106px !important;
  max-width: 106px !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
}

body[data-route="levels"] .level-name-line {
  align-items: center;
  display: flex;
  gap: 6px;
  min-width: 0;
}

body[data-route="levels"] .level-name-line > strong {
  color: #f2f6fd;
  font-size: 15px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-route="levels"] .tiktok-verified-badge {
  align-items: center;
  background: linear-gradient(145deg, #00dcff, #1688ff);
  border-radius: 50%;
  box-shadow: 0 0 11px rgba(0, 200, 255, .45);
  color: #03101c;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 8px;
  font-weight: 950;
  height: 15px;
  justify-content: center;
  width: 15px;
}

body[data-route="levels"] .level-identity > strong {
  display: none !important;
}

body[data-route="levels"] .level-badges > span {
  border-radius: 4px !important;
  font-size: 7px !important;
  padding: 3px 6px !important;
}

body[data-route="levels"] .level-stat-line {
  align-items: center;
  color: #e5edf9;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

body[data-route="levels"] .level-stat-item {
  align-items: center;
  display: inline-flex;
  gap: 4px;
  white-space: nowrap;
}

body[data-route="levels"] .level-stat-item svg {
  fill: none;
  height: 14px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  width: 14px;
}

body[data-route="levels"] .level-stat-item.is-kills {
  color: #ff647d;
}

body[data-route="levels"] .level-stat-item.is-wins {
  color: #ffbd1f;
}

body[data-route="levels"] .level-stat-item b {
  color: #e9f1fc;
  font-size: 10px;
}

body[data-route="levels"] .level-stat-item.is-kills b {
  color: #ff8fa0;
}

body[data-route="levels"] .level-stat-item.is-wins b {
  color: #ffcf50;
}

body[data-route="levels"] .level-activity > span {
  color: #8798b2;
}

body[data-route="levels"] .level-activity .level-updated-at {
  color: #0fd5ff !important;
}

@media (max-width: 1460px) {
  body[data-route="levels"] .levels-table-head,
  body[data-route="levels"] .level-card {
    grid-template-columns: 72px 64px minmax(170px, 1fr) 92px minmax(190px, 1fr) minmax(190px, .85fr) !important;
  }

  body[data-route="levels"] .level-card:has(.level-avatar-shell.has-site-profile-frame) {
    grid-template-columns: 72px 110px minmax(170px, 1fr) 92px minmax(190px, 1fr) minmax(190px, .85fr) !important;
    min-height: 124px !important;
  }

  body[data-route="levels"] .levels-browser .level-toolbar {
    grid-template-columns: minmax(240px, 1fr) 205px auto 42px !important;
  }
}

@media (max-width: 1180px) {
  body[data-route="levels"] .levels-insights {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body[data-route="levels"] .levels-browser .level-toolbar {
    grid-template-columns: minmax(220px, 1fr) 205px 42px !important;
  }

  body[data-route="levels"] .level-toolbar > div {
    grid-column: 1 / 3;
    grid-row: 2;
    justify-content: flex-start !important;
    min-width: 0 !important;
  }

  body[data-route="levels"] .level-refresh {
    grid-column: 3;
    grid-row: 1 / 3;
  }
}

@media (max-width: 900px) {
  body[data-route="levels"] .levels-ranking-view > .page-heading {
    background-position: 63% center !important;
    min-height: 208px !important;
    padding: 30px 24px !important;
  }

  body[data-route="levels"] .levels-ranking-view > .page-heading h1 {
    font-size: clamp(32px, 7vw, 46px) !important;
    max-width: 430px;
  }

  body[data-route="levels"] .levels-ranking-view .level-symbol {
    display: none !important;
  }

  body[data-route="levels"] .level-card {
    grid-template-columns: 64px 62px minmax(0, 1fr) 92px !important;
  }

  body[data-route="levels"] .level-card:has(.level-avatar-shell.has-site-profile-frame) {
    grid-template-columns: 64px 110px minmax(0, 1fr) 92px !important;
    min-height: 124px !important;
  }

  body[data-route="levels"] .level-avatar-shell.has-site-profile-frame > img.site-profile-frame-image {
    max-height: 102px !important;
    max-width: 102px !important;
  }

  body[data-route="levels"] .level-xp,
  body[data-route="levels"] .level-activity {
    grid-column: 3 / -1 !important;
  }

  body[data-route="levels"] .level-stat-line {
    justify-content: flex-start;
  }
}

@media (max-width: 650px) {
  body[data-route="levels"] .levels-ranking-view > .page-heading {
    background:
      linear-gradient(90deg, rgba(3, 8, 23, .99), rgba(3, 8, 23, .78) 64%, rgba(3, 8, 23, .3)),
      url("/public/assets/levels-xp-hero-20260727-v2.png") 63% center / cover no-repeat !important;
    min-height: 190px !important;
    padding: 24px 17px !important;
  }

  body[data-route="levels"] .levels-ranking-view > .page-heading h1 {
    font-size: 32px !important;
    max-width: 310px;
  }

  body[data-route="levels"] .levels-ranking-view > .page-heading p:not(.eyebrow) {
    font-size: 11px !important;
    max-width: 290px !important;
  }

  body[data-route="levels"] .levels-insights {
    grid-template-columns: 1fr 1fr !important;
  }

  body[data-route="levels"] .levels-insight {
    display: block !important;
    min-height: 93px !important;
    padding: 12px !important;
  }

  body[data-route="levels"] .levels-insight-icon {
    display: none !important;
  }

  body[data-route="levels"] .levels-browser .level-toolbar {
    grid-template-columns: 1fr 42px !important;
  }

  body[data-route="levels"] .level-filter-field {
    border-left: 0 !important;
    grid-column: 1;
    padding-left: 0 !important;
  }

  body[data-route="levels"] .level-toolbar > div {
    border-left: 0;
    grid-column: 1 / -1;
    grid-row: 3;
    padding: 0 5px 4px;
  }

  body[data-route="levels"] .level-refresh {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  body[data-route="levels"] .level-card {
    grid-template-columns: 46px 50px minmax(0, 1fr) !important;
    padding: 11px 9px !important;
  }

  body[data-route="levels"] .level-card:has(.level-avatar-shell.has-site-profile-frame) {
    grid-template-columns: 46px 82px minmax(0, 1fr) !important;
    min-height: 112px !important;
  }

  body[data-route="levels"] .level-rank,
  body[data-route="levels"] .level-card-top .level-rank {
    font-size: 18px !important;
    height: 48px !important;
    margin: 0 !important;
    width: 44px !important;
  }

  body[data-route="levels"] .level-card-top .level-rank::before {
    font-size: 11px;
    top: -5px;
  }

  body[data-route="levels"] .level-card-top .level-rank-number::before,
  body[data-route="levels"] .level-card-top .level-rank-number::after {
    display: none;
  }

  body[data-route="levels"] .level-avatar-shell,
  body[data-route="levels"] .level-avatar {
    height: 48px !important;
    width: 48px !important;
  }

  body[data-route="levels"] .level-avatar-shell.has-site-profile-frame {
    --profile-frame-auto-min-scale: 126;
    --profile-frame-auto-max-scale: 162;
  }

  body[data-route="levels"] .level-avatar-shell.has-site-profile-frame > img.site-profile-frame-image {
    max-height: 78px !important;
    max-width: 78px !important;
  }

  body[data-route="levels"] .level-status {
    grid-column: 3 !important;
  }

  body[data-route="levels"] .level-xp,
  body[data-route="levels"] .level-activity {
    grid-column: 1 / -1 !important;
  }

  body[data-route="levels"] .level-stat-line {
    gap: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-route="levels"] .level-refresh,
  body[data-route="levels"] .level-card {
    animation: none !important;
    transition: none !important;
  }
}

/* Priorité du hero XP sur les sélecteurs renforcés du thème public. */
body[data-route="levels"]:not([data-route="admin"]):not([data-route="maintenance"]) .levels-ranking-view > .page-heading {
  align-items: flex-start !important;
  background:
    linear-gradient(90deg, #030817 0%, rgba(3, 8, 23, .95) 31%, rgba(3, 8, 23, .45) 56%, rgba(3, 8, 23, .08) 100%),
    url("/public/assets/levels-xp-hero-20260727-v2.png") center right / cover no-repeat !important;
  border: 1px solid rgba(57, 105, 172, .34) !important;
  border-radius: 14px !important;
  min-height: 236px !important;
  padding: 38px 40px !important;
}

body[data-route="levels"]:not([data-route="admin"]):not([data-route="maintenance"]) .levels-ranking-view > .page-heading::before,
body[data-route="levels"]:not([data-route="admin"]):not([data-route="maintenance"]) .levels-ranking-view > .page-heading::after {
  display: block !important;
}

@media (max-width: 900px) {
  body[data-route="levels"]:not([data-route="admin"]):not([data-route="maintenance"]) .levels-ranking-view > .page-heading {
    background-position: 63% center !important;
    min-height: 208px !important;
    padding: 30px 24px !important;
  }

  body[data-route="levels"]:not([data-route="admin"]):not([data-route="maintenance"]) .levels-ranking-view .level-symbol {
    display: none !important;
  }
}

@media (max-width: 650px) {
  body[data-route="levels"]:not([data-route="admin"]):not([data-route="maintenance"]) .levels-ranking-view > .page-heading {
    background:
      linear-gradient(90deg, rgba(3, 8, 23, .99), rgba(3, 8, 23, .78) 64%, rgba(3, 8, 23, .3)),
      url("/public/assets/levels-xp-hero-20260727-v2.png") 63% center / cover no-repeat !important;
    min-height: 190px !important;
    padding: 24px 17px !important;
  }
}
/* Toolbar icon refinement 20260727 */
body[data-route="levels"] .level-toolbar label:not(.level-filter-field)::before,
body[data-route="levels"] .level-toolbar .level-filter-field::before {
  background-color: #91a8c5 !important;
  border: 0 !important;
  content: "" !important;
  height: 17px !important;
  left: 15px !important;
  opacity: .9 !important;
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 17px !important;
  z-index: 2 !important;
}
body[data-route="levels"] .level-toolbar label:not(.level-filter-field)::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='m16.5 16.5 4 4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='m16.5 16.5 4 4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
body[data-route="levels"] .level-toolbar .level-filter-field::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5h18l-7 8v5l-4 2v-7L3 5Z' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5h18l-7 8v5l-4 2v-7L3 5Z' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
body[data-route="levels"] .level-toolbar label::after {
  display: none !important;
}
body[data-route="levels"] .level-toolbar input,
body[data-route="levels"] .level-toolbar select {
  padding-left: 43px !important;
}
body[data-route="levels"] .level-toolbar input {
  background: rgba(7, 20, 40, .74) !important;
  border: 1px solid rgba(64, 109, 164, .42) !important;
  border-radius: 8px !important;
}
/* Toolbar control spacing override 20260727 */
html body[data-route="levels"] main .levels-ranking-view .levels-browser .level-toolbar label input#level-search,
html body[data-route="levels"] main .levels-ranking-view .levels-browser .level-toolbar label select#level-filter {
  padding-left: 43px !important;
}

body[data-route="levels"] .global-score-badge {
  display: grid;
  min-width: 76px;
  justify-items: center;
  padding: 6px 7px;
  border: 1px solid rgba(69, 215, 255, .48);
  border-radius: 9px;
  background: linear-gradient(145deg, rgba(24, 99, 151, .2), rgba(8, 20, 42, .88));
  box-shadow: inset 0 0 18px rgba(67, 218, 255, .08), 0 0 16px rgba(61, 193, 255, .08);
}

body[data-route="levels"] .global-score-badge small {
  color: #6edfff;
  font-size: 6px;
  font-weight: 950;
  letter-spacing: .07em;
  white-space: nowrap;
}

body[data-route="levels"] .global-score-badge strong {
  color: #effaff;
  font-size: 17px;
  line-height: 1.1;
}

body[data-route="levels"] .global-score-badge em {
  color: #7f96b8;
  font-size: 9px;
  font-style: normal;
}

body[data-route="levels"] .level-card-rank-1 .global-score-badge {
  border-color: rgba(255, 198, 55, .7);
  background: linear-gradient(145deg, rgba(168, 98, 7, .28), rgba(24, 18, 10, .9));
  box-shadow: inset 0 0 20px rgba(255, 194, 39, .1), 0 0 18px rgba(255, 174, 0, .12);
}

body[data-route="levels"] .level-card-rank-1 .global-score-badge small,
body[data-route="levels"] .level-card-rank-1 .global-score-badge strong {
  color: #ffd66a;
}

@media (max-width: 760px) {
  body[data-route="levels"] .global-score-badge {
    min-width: 70px;
    padding: 5px 6px;
  }
}
