/* Three real API grades. Restore the original substantial capsule silhouette
   while retaining a 44px native range hit area and quiet moving sparkle. */
.practice-catalogue .mega-difficulty {
  --difficulty-orange: #ff7b35;
  --difficulty-ember: #d34d12;
  position: relative;
  display: block;
  flex: 0 1 302px;
  width: 302px;
  min-width: 250px;
  max-width: none;
  padding: 12px 14px 9px;
  border: 1px solid #34302c;
  border-radius: 13px;
  background: linear-gradient(115deg, #191512 0%, #111111 62%);
  box-shadow: inset 0 1px 0 #ffffff04, 0 5px 18px #0000001a;
}
.practice-catalogue .mega-difficulty > label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  color: #aaa39c;
  font-size: 10px;
  font-weight: 550;
  line-height: 18px;
}
.practice-catalogue .mega-difficulty > label > span {
  text-transform: uppercase;
  letter-spacing: .12em;
}
.practice-catalogue .mega-difficulty #practice-difficulty-value {
  color: #ffad7e;
  font-size: 11px;
  font-weight: 650;
}
.practice-catalogue .mega-difficulty > .mega-range {
  position: relative;
  display: block;
  width: 100%;
  height: 44px;
  margin: 1px 0 0;
  border: 0;
  background: transparent;
  isolation: isolate;
}
.practice-catalogue .mega-range::before,
.practice-catalogue .mega-range-fill::after { content: none; animation: none; }
.practice-catalogue .mega-range-track,
.practice-catalogue .mega-difficulty[data-level] .mega-range-fill {
  position: absolute;
  top: 10px;
  left: 3px;
  height: 24px;
  border-radius: 999px;
  pointer-events: none;
}
.practice-catalogue .mega-range-track {
  right: 3px;
  border: 1px solid #88502b66;
  background: linear-gradient(180deg, #352318, #261a13);
  box-shadow: inset 0 2px 4px #0000003d, 0 1px 0 #ffffff04;
}
.practice-catalogue .mega-difficulty[data-level] .mega-range-fill {
  width: calc(12px + var(--position) * (100% - 30px) / var(--steps, 2));
  background: linear-gradient(110deg, #b94b1d 0%, #e9672c 48%, #ff8b47 100%);
  box-shadow: inset 0 1px 0 #ffc28b61, inset 0 -1px 0 #862b1a3d, 0 0 14px #ff6e201f;
  transition: width .28s cubic-bezier(.2,.75,.25,1);
  overflow: hidden;
}
.practice-catalogue .mega-range-ticks {
  position: absolute;
  z-index: 1;
  inset: 19px 12px auto;
  height: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.practice-catalogue .mega-range-ticks i {
  width: 6px;
  height: 6px;
  background: #bc9175;
  border: 0;
  border-radius: 50%;
}
.practice-catalogue .mega-difficulty[data-level="1"] .mega-range-ticks i:first-child,
.practice-catalogue .mega-difficulty[data-level="2"] .mega-range-ticks i { background: #ffaf80; }
.practice-catalogue .mega-range-spark {
  position: absolute;
  z-index: 2;
  inset: 12px 3px auto;
  height: 20px;
  overflow: hidden;
  pointer-events: none;
  border-radius: 999px;
}
.practice-catalogue .mega-range-spark > i {
  position: absolute;
  inset: 0;
  display: block;
  animation: difficulty-spark-travel 5.6s linear infinite;
  will-change: transform;
}
.practice-catalogue .mega-range-spark > i::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 6px;
  width: 42px;
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, #ffb27424 45%, #ffd6a166);
  box-shadow: 5px 0 8px #ff9b3933;
}
.practice-catalogue .mega-range-spark > i::after {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 11px;
  height: 11px;
  background: #ffe2ba;
  clip-path: polygon(50% 0,62% 36%,100% 50%,62% 62%,50% 100%,36% 62%,0 50%,36% 36%);
}
.practice-catalogue .mega-range-thumb {
  position: absolute;
  z-index: 3;
  top: 7px;
  left: calc(var(--position) * (100% - 30px) / var(--steps, 2));
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #ffbf8e;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffc17e, #ff9a4f 54%, #ec702c);
  box-shadow: inset 0 1px 0 #ffe0ba8a, 0 0 0 3px #1a100c45, 0 3px 9px #00000065;
  pointer-events: none;
  transition: left .28s cubic-bezier(.2,.75,.25,1), box-shadow .2s ease;
}
.practice-catalogue .mega-range-thumb > i {
  display: block;
  width: 12px;
  height: 12px;
  background: #32180c;
  clip-path: polygon(50% 0,62% 36%,100% 50%,62% 62%,50% 100%,36% 62%,0 50%,36% 36%);
}
.practice-catalogue .mega-difficulty .mega-range input {
  position: relative;
  z-index: 4;
  display: block;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  touch-action: pan-y;
}
.practice-catalogue .mega-range input::-webkit-slider-runnable-track { height: 24px; background: transparent; border: 0; }
.practice-catalogue .mega-range input::-moz-range-track,
.practice-catalogue .mega-range input::-moz-range-progress { height: 24px; background: transparent; border: 0; }
.practice-catalogue .mega-range input::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 30px;
  height: 30px;
  margin-top: -3px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}
.practice-catalogue .mega-range input::-moz-range-thumb {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}
.practice-catalogue .mega-range:has(input:focus-visible) { outline: 2px solid #ff995d; outline-offset: 1px; border-radius: 8px; }
.practice-catalogue .mega-range input:focus-visible { outline: 0; }
.practice-catalogue .mega-range:has(input:hover) .mega-range-thumb,
.practice-catalogue .mega-range:has(input:focus-visible) .mega-range-thumb { box-shadow: inset 0 1px 0 #ffe0ba8a, 0 0 0 4px #ff7b351c, 0 3px 11px #00000065; }
.practice-catalogue .mega-difficulty > .mega-range-labels {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  align-items: stretch;
  gap: 4px;
  margin: 0;
  padding: 0;
}
.practice-catalogue .mega-difficulty .mega-range-labels .text-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  min-height: 36px;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #b7aea7;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 550;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.practice-catalogue .mega-difficulty .mega-range-labels .text-link:hover { color: #f9e5d8; background: #ffffff06; border-color: #ffffff0a; }
.practice-catalogue .mega-difficulty .mega-range-labels [aria-pressed="true"] { color: #ffac7b; background: #ff7b3510; border-color: #ff8b482b; }
.practice-catalogue .mega-difficulty .mega-range-labels .text-link:focus-visible { outline: 2px solid #ff995d; outline-offset: 2px; }
@keyframes difficulty-spark-travel {
  0% { transform: translate3d(-8%,0,0); opacity: 0; }
  10% { opacity: .75; }
  85% { opacity: .8; }
  100% { transform: translate3d(105%,0,0); opacity: 0; }
}
@media (max-width: 950px) {
  .practice-catalogue .mega-difficulty { width: 100%; min-width: 0; flex-basis: 100%; margin: 0; }
  .practice-catalogue .mega-difficulty .mega-range-labels .text-link { min-height: 40px; }
}
@media (max-width: 520px) {
  .practice-catalogue .mega-difficulty { display: block; padding: 11px 13px 8px; }
  .practice-catalogue .mega-difficulty > label { margin: 0; }
  .practice-catalogue .mega-difficulty > .mega-range { display: block; height: 44px; }
  .practice-catalogue .mega-difficulty > div.mega-range-labels { gap: 5px; }
  .practice-catalogue .mega-difficulty .mega-range-labels .text-link { min-height: 44px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .practice-catalogue .mega-range-spark > i { animation: none; opacity: .6; transform: translateX(50%); will-change: auto; }
  .practice-catalogue .mega-difficulty[data-level] .mega-range-fill,
  .practice-catalogue .mega-range-thumb,
  .practice-catalogue .mega-range-labels .text-link { transition: none; }
}
