.featured-hero {
  padding-top: clamp(15px, 2.2vw, 28px);
  padding-bottom: 10px;
}

#featured-heading {
  margin-bottom: 12px;
  color: var(--text);
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  font-weight: 850;
  letter-spacing: -.045em;
  line-height: 1.15;
}

.featured-layout {
  --featured-gap: clamp(9px, 1.25vw, 16px);
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: var(--featured-gap);
}

#featured-carousel {
  --spotlight-inset: clamp(16px, 3vw, 38px);
  position: relative;
  min-height: clamp(270px, 30vw, 364px);
  border-radius: 22px;
  background: #141a24;
  box-shadow: 0 10px 24px -14px #10192385;
}

.spotlight-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  touch-action: pan-y pinch-zoom;
}

#spotlight-track, .spotlight-slide, .spotlight-link, .spotlight-cover {
  position: absolute;
  inset: 0;
}

.spotlight-slide[aria-hidden="true"] {
  visibility: hidden;
}

.spotlight-link {
  --spotlight-accent: #8bf7e7;
  display: block;
  isolation: isolate;
  background: radial-gradient(ellipse at 76% 38%, #117679, #102229 77%);
  color: #fff;
  text-decoration: none;
}

.spotlight-link[data-game-id="merge-drop"] {
  --spotlight-accent: #ffcf6e;
  background: radial-gradient(ellipse at 76% 38%, #8f3c2f, #24121b 77%);
}

.spotlight-link[data-game-id="hoop-shot"] {
  --spotlight-accent: #ff9c54;
  background: radial-gradient(ellipse at 76% 38%, #274db2, #12172b 77%);
}

.spotlight-link[data-game-id="cricket-sixes-at-sundown"] {
  --spotlight-accent: #ffc778;
  background: radial-gradient(ellipse at 76% 38%, #365d4e, #101a2c 77%);
}

.spotlight-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.spotlight-cover.lounge-art {
  inset: 0 0 0 auto;
  width: 70%;
}

.spotlight-cover.lounge-art > rect:first-child,
.featured-game-art .lounge-art > rect:first-child {
  fill: transparent;
}

.spotlight-info {
  position: absolute;
  z-index: 1;
  inset: 16px auto 53px var(--spotlight-inset);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 53%;
}

.spotlight-title, .spotlight-description {
  text-shadow: 0 1px 3px #171c32cc;
}

.spotlight-title {
  font-size: clamp(2rem, 4.75vw, 4.1rem);
  font-weight: 880;
  letter-spacing: -.06em;
  line-height: .98;
  text-wrap: balance;
}

.spotlight-description {
  max-width: 26ch;
  margin-top: 12px;
  color: #f4f2fc;
  font-size: clamp(.875rem, 1.25vw, 1rem);
  font-weight: 500;
  line-height: 1.38;
  text-wrap: pretty;
}

.spotlight-play {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 18px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--spotlight-accent);
  color: #191b24;
  box-shadow: 0 3px 0 #11131c80;
  font-size: .875rem;
  font-weight: 850;
  white-space: nowrap;
  transition: transform .18s, box-shadow .18s;
}

.featured-play-mark::before {
  content: '';
  display: block;
  width: 0;
  height: 0;
  margin-left: 2px;
  border-block: 5px solid transparent;
  border-left: 8px solid currentColor;
}

.spotlight-controls {
  position: absolute;
  z-index: 2;
  inset: auto 10px 8px var(--spotlight-inset);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  pointer-events: none;
}

#spotlight-dots, .spotlight-navigation {
  display: flex;
  gap: 2px;
  pointer-events: auto;
}

.spotlight-navigation {
  border: 1px solid #ffffff2e;
  border-radius: 100px;
  background: #141720ed;
}

.spotlight-dot, .spotlight-control {
  display: grid;
  place-items: center;
  width: 27px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
}

.spotlight-dot::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 12px;
  background: #fff9;
  transition: width .2s, background .2s;
}

.spotlight-dot[aria-current="true"]::before {
  width: 21px;
  background: #fff;
}

.spotlight-control {
  width: 40px;
}

.spotlight-control svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.spotlight-play-icon, .is-paused .spotlight-pause-icon {
  display: none;
}

.is-paused .spotlight-play-icon {
  display: block;
}

.spotlight-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: var(--featured-gap);
}

.featured-game {
  --tile-light: #dfff95;
  --tile-color: #99d955;
  position: relative;
  display: flex;
  align-items: flex-end;
  min-width: 0;
  overflow: hidden;
  border-radius: 18px;
  background: radial-gradient(ellipse at 60% 0%, var(--tile-light), var(--tile-color) 85%);
  color: #20232d;
  text-decoration: none;
  box-shadow: 0 7px 17px -12px #20232d80;
}

.featured-game[data-game-id="block-drop"] {
  --tile-light: #edddff;
  --tile-color: #bd9fff;
}

.featured-game[data-game-id="ludo"] {
  --tile-light: #ffe6aa;
  --tile-color: #ffab7e;
}

.featured-game[data-game-id="stack-tower"] {
  --tile-light: #c5fbff;
  --tile-color: #80d7f5;
}

.featured-game::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, #fff9 1px, transparent 1.5px) 0 0 / 13px 13px;
  mask-image: linear-gradient(130deg, #000, transparent 45%, transparent 75%, #000);
}

.featured-game-art {
  position: absolute;
  inset: 0 0 15px;
  filter: saturate(1.35) contrast(1.05);
  transition: transform .28s cubic-bezier(.2,.7,.3,1);
}

.featured-game-art:has(.featured-game-cover) {
  inset: 0;
  filter: none;
}

.featured-game-art:has(.featured-game-cover)::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #0d12227a, transparent 42%);
  pointer-events: none;
}

.featured-game-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  pointer-events: none;
}

.featured-game-caption {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  width: 100%;
  padding: 7px 9px;
}

.featured-game-name, .featured-game-caption .featured-play-mark {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 3px 10px #1015242e;
}

.featured-game-name {
  padding: 3px 9px;
  font-size: clamp(.875rem, 1.5vw, 1.0625rem);
  font-weight: 850;
  letter-spacing: -.04em;
  line-height: 1.12;
}

.featured-game-caption .featured-play-mark {
  justify-content: center;
  width: 32px;
  flex-shrink: 0;
  border-radius: 50%;
}

#featured-carousel .spotlight-link:focus-visible {
  outline: 3px solid var(--spotlight-accent);
  outline-offset: -5px;
}

#featured-carousel button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -2px;
}

@media (hover: hover) {
  .spotlight-link:hover .spotlight-play {
    transform: translateY(-2px);
    box-shadow: 0 5px 0 #11131c80;
  }

  .spotlight-control:hover {
    background: #ffffff27;
  }

  .spotlight-dot:hover::before {
    background: #fff;
  }

  .featured-game:hover .featured-game-art {
    transform: scale(1.08);
  }

  .featured-game:hover .featured-play-mark {
    background: #242631;
    color: #fff;
  }
}

@media (max-width: 680px) {
  .featured-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  #featured-carousel {
    min-height: clamp(238px, 68vw, 310px);
    border-radius: 18px;
  }

  .spotlight-cover {
    object-position: 74% center;
  }

  .spotlight-info {
    width: 59%;
  }

  .spotlight-title {
    font-size: clamp(2rem, 7vw, 3rem);
  }

  .spotlight-description {
    margin-top: 9px;
  }

  .spotlight-play {
    margin-top: 13px;
  }

  .featured-grid {
    grid-auto-rows: clamp(103px, 27vw, 155px);
  }

  .featured-game {
    border-radius: 14px;
  }
}

@media (max-width: 380px) {
  .spotlight-link[data-game-id="cricket-sixes-at-sundown"] .spotlight-title {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }

  .spotlight-controls {
    left: 8px;
    right: 8px;
  }

  .spotlight-dot {
    width: 24px;
  }

  .spotlight-control {
    width: 34px;
  }
}
