.game-selection .line-heading {
  margin-bottom: clamp(18px, 3vw, 34px);
}

.ground-content .practice-game {
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #45454a;
  border-radius: 8px;
  background: #25262c;
  color: #fff5ee;
  text-decoration: none;
}

.practice-game > img,
.practice-game::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.practice-game > img {
  object-fit: cover;
  object-position: center 48%;
}

.practice-game::after {
  content: "";
  background: linear-gradient(0deg, #121318 2%, #121318b8 38%, #1213180d 94%);
}

.practice-game-stage {
  position: relative;
  isolation: isolate;
  height: clamp(250px, 33vw, 450px);
  overflow: hidden;
  border-radius: 8px;
  background: #1a1b21;
}

.ground-content .practice-game-feature {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.practice-game-feature[inert] {
  z-index: 0;
}

.practice-game-feature::after {
  background: linear-gradient(12deg, #0f1017 2%, #121318ad 38%, #1011161a 82%);
}

.practice-game-stage :is(.practice-game-feature, .practice-game-nav)[hidden] {
  display: none;
}

.practice-game-nav {
  position: absolute;
  z-index: 2;
  inset: 12px 12px auto auto;
  display: flex;
  gap: 6px;
}

.practice-game-nav button {
  appearance: none;
  padding: .5rem .7rem;
  border: 1px solid #ffffff54;
  border-radius: 4px;
  background: #131419e8;
  color: #fff5ee;
  font: 650 .875rem/1.25 var(--ui-sans, Arial, sans-serif);
  text-transform: none;
  cursor: pointer;
}

.practice-game-nav button:hover {
  border-color: #ff9868;
}

.practice-game-copy {
  display: grid;
  justify-items: start;
  gap: 5px;
  padding: 16px;
}

.practice-game-copy strong {
  font-size: clamp(.95rem, 1.4vw, 1.3rem);
  font-weight: 760;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.practice-game-copy small {
  font-size: .875rem;
  color: #ded8d5;
}

.practice-game-feature .practice-game-copy {
  gap: clamp(10px, 1.5vw, 16px);
  padding: clamp(20px, 4vw, 56px);
}

.practice-game-feature .practice-game-copy h2 {
  max-width: 16ch;
  margin: 0;
  color: #fff5ee;
  font: 850 clamp(2rem, 6.1vw, 5.8rem)/.96 var(--ui-sans, Arial, sans-serif);
  letter-spacing: -.06em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.ground-content .practice-game-action {
  padding: .58rem .9rem;
  border-radius: 4px;
  background: #ff8a55;
  color: #211510;
  font-weight: 750;
}

.ground-content .practice-game-action:hover {
  background: #ffae85;
  color: #211510;
}

.practice-game-status {
  padding: .5rem .75rem;
  border: 1px solid #ffffff54;
  border-radius: 4px;
  background: #16171be8;
  color: #f2eae5;
  font-weight: 650;
}

.practice-game-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(8px, 1.15vw, 16px);
  padding: 5px;
  margin: clamp(5px, 1vw, 12px) -5px -5px;
  list-style: none;
}

.ground-content .practice-game-list .practice-game {
  appearance: none;
  width: 100%;
  height: 100%;
  min-height: clamp(110px, 11vw, 160px);
  padding: 0;
  box-shadow: none;
  text-align: start;
  text-transform: none;
  cursor: pointer;
}

.practice-game-list .practice-game:is(:hover, [aria-pressed="true"]) {
  border-color: #ff945f;
}

.practice-game-list .practice-game[aria-pressed="true"] {
  box-shadow: 0 0 0 1px #ff945f;
}

.practice-game-locked img {
  filter: saturate(.57) brightness(.72);
}

.practice-filters {
  margin-top: 24px;
  border-bottom: 1px solid #403e40;
}

.practice-levels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.practice-levels > span {
  margin-inline-end: 6px;
  color: #c2c0c0;
  font-size: .9rem;
}

.practice-levels button {
  appearance: none;
  padding: .55rem .85rem;
  border: 1px solid #555159;
  border-radius: 4px;
  background: #222228;
  box-shadow: none;
  color: #f5ede6;
  font: 650 .875rem/1.35 var(--ui-sans, Arial, sans-serif);
  text-transform: none;
  cursor: pointer;
}

.practice-levels button:hover {
  border-color: #ff9767;
}

.practice-levels button[aria-pressed="true"] {
  border-color: #ff996b;
  background: #ff996b;
  color: #211510;
}

.practice-filters .val-skills {
  margin-top: 10px;
}

@media (max-width: 740px) {
  .practice-game-list {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: clamp(116px, 31vw, 155px);
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .practice-game-list .practice-game-copy {
    padding: 12px;
  }

  .practice-levels > span {
    width: 100%;
  }

  .practice-levels button {
    padding-inline: .65rem;
  }
}
