.coinflip-page {
  overflow: visible;
}

.coinflip-page > h1 {
  margin: 12px 0 6px;
  font-size: 1.5rem;
}

.coinflip-page .coinflip-frame {
  display: block;
  margin-top: 0;
}

.steam-spotlight {
  --steam-bg: #1b2838;
  --steam-text: #c7d5e0;
  --steam-text-dim: #8f98a0;
  --steam-blue: #66c0f4;
  --steam-green: #75b022;
  --steam-green-hover: #8cd633;
  --steam-border: rgba(255, 255, 255, 0.12);
  position: relative;
  margin: 0 0 10px;
  border-radius: 4px;
  overflow: hidden;
  color: var(--steam-text);
  font-family: "Motiva Sans", Arial, Helvetica, sans-serif;
  background:
    linear-gradient(90deg, rgba(23, 26, 33, 0.96) 0%, rgba(27, 40, 56, 0.92) 42%, rgba(27, 40, 56, 0.78) 100%),
    var(--steam-bg);
  border: 1px solid var(--steam-border);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 8px 18px rgba(0, 0, 0, 0.28);
}

.steam-spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--steam-spotlight-bg, none);
  background-size: cover;
  background-position: center top;
  opacity: 0.18;
  filter: blur(2px) saturate(1.1);
  pointer-events: none;
}

.steam-spotlight-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: 18px;
  padding: 16px 18px 18px;
}

.steam-spotlight-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.steam-spotlight-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.steam-spotlight-badge {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.steam-spotlight-logo {
  display: block;
  width: auto;
  height: 22px;
  max-width: 100%;
}

.steam-spotlight-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 2px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.steam-spotlight-status.is-coming-soon {
  color: #dbe2e6;
  background: rgba(143, 152, 160, 0.22);
  border-color: rgba(199, 213, 224, 0.18);
}

.steam-spotlight-status.is-available {
  color: #e3ffc8;
  background: rgba(117, 176, 34, 0.24);
  border-color: rgba(140, 214, 51, 0.35);
}

.steam-spotlight-header {
  width: 100%;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45);
}

.steam-spotlight-text,
.steam-spotlight-name,
.steam-spotlight-release-compact {
  display: none;
}

.steam-spotlight-title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 400;
  color: #fff;
}

.steam-spotlight-meta {
  margin: 0;
  font-size: 0.82rem;
  color: var(--steam-blue);
}

.steam-spotlight-blurb {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--steam-text);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ~400px coinflip banner — full layout, tighter */
.steam-spotlight--medium {
  max-height: 400px;
  margin-bottom: 14px;
}

.steam-spotlight--medium .steam-spotlight-inner {
  max-height: 400px;
  grid-template-columns: minmax(210px, 280px) minmax(0, 1fr);
  gap: 12px;
  padding: 12px 14px;
  align-items: stretch;
}

.steam-spotlight--medium .steam-spotlight-info {
  gap: 7px;
  overflow: hidden;
}

.steam-spotlight--medium .steam-spotlight-header {
  max-height: 52px;
  width: auto;
  object-fit: cover;
  object-position: left center;
}

.steam-spotlight--medium .steam-spotlight-blurb {
  font-size: 0.8rem;
  line-height: 1.35;
  -webkit-line-clamp: 2;
}

.steam-spotlight--medium .steam-spotlight-meta,
.steam-spotlight--medium .steam-spotlight-release {
  font-size: 0.74rem;
}

.steam-spotlight--medium .steam-spotlight-cta {
  min-height: 30px;
  padding: 0 14px;
  font-size: 0.78rem;
  margin-top: 2px;
}

.steam-spotlight--medium .steam-spotlight-media {
  gap: 6px;
  min-height: 0;
}

.steam-spotlight--medium .steam-spotlight-viewport {
  aspect-ratio: unset;
  height: 210px;
  max-height: 210px;
}

.steam-spotlight--medium .steam-spotlight-thumb {
  width: 84px;
}

.steam-spotlight--medium .steam-spotlight-thumbs {
  gap: 5px;
}

@media (max-width: 900px) {
  .steam-spotlight--medium {
    max-height: none;
  }

  .steam-spotlight--medium .steam-spotlight-inner {
    max-height: none;
    grid-template-columns: 1fr;
  }

  .steam-spotlight--medium .steam-spotlight-info {
    order: 2;
  }

  .steam-spotlight--medium .steam-spotlight-media {
    order: 1;
  }

  .steam-spotlight--medium .steam-spotlight-viewport {
    max-height: 180px;
    height: 180px;
  }
}

.steam-spotlight-release {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 0.78rem;
  color: var(--steam-text-dim);
}

.steam-spotlight-release-label {
  color: var(--steam-text);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.steam-spotlight-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: 4px;
  min-height: 34px;
  padding: 0 18px;
  border-radius: 2px;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  border: none;
  transition: background 0.15s ease;
}

.steam-spotlight-cta.is-play {
  background: linear-gradient(180deg, var(--steam-green-hover) 5%, var(--steam-green) 95%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.steam-spotlight-cta.is-play:hover {
  background: linear-gradient(180deg, #98e057 5%, var(--steam-green-hover) 95%);
  color: #fff;
}

.steam-spotlight-cta.is-wishlist {
  background: linear-gradient(180deg, rgba(102, 192, 244, 0.28) 5%, rgba(102, 192, 244, 0.12) 95%);
  border: 1px solid rgba(102, 192, 244, 0.45);
  color: var(--steam-blue);
}

.steam-spotlight-cta.is-wishlist:hover {
  background: linear-gradient(180deg, rgba(102, 192, 244, 0.42) 5%, rgba(102, 192, 244, 0.18) 95%);
  color: #fff;
}

.steam-spotlight-media {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.steam-spotlight-viewport {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.45);
  aspect-ratio: 16 / 9;
}

.steam-spotlight-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.steam-spotlight-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: translateX(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.steam-spotlight-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  z-index: 1;
}

.steam-spotlight-slide.is-leaving {
  opacity: 0;
  transform: translateX(-16px);
  z-index: 0;
}

.steam-spotlight-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.steam-spotlight-thumbs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(102, 192, 244, 0.45) rgba(0, 0, 0, 0.2);
}

.steam-spotlight-thumb {
  flex: 0 0 auto;
  width: 116px;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
  overflow: hidden;
  opacity: 0.72;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}

.steam-spotlight-thumb:hover,
.steam-spotlight-thumb.is-active {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.55);
}

.steam-spotlight-thumb.is-active {
  border-color: var(--steam-blue);
  box-shadow: 0 0 0 1px rgba(102, 192, 244, 0.35);
}

.steam-spotlight-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Compact ribbon for Coinflip — keeps game visible above the fold */
.steam-spotlight--compact {
  margin-bottom: 8px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 4px 10px rgba(0, 0, 0, 0.22);
}

.steam-spotlight--compact .steam-spotlight-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
}

.steam-spotlight--compact .steam-spotlight-info {
  flex: 1 1 auto;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  min-width: 0;
}

.steam-spotlight--compact .steam-spotlight-brand-row {
  flex: 0 0 auto;
  gap: 6px;
}

.steam-spotlight--compact .steam-spotlight-badge {
  font-size: 0.62rem;
}

.steam-spotlight--compact .steam-spotlight-logo {
  height: 16px;
}

.steam-spotlight--compact .steam-spotlight-status {
  padding: 2px 7px;
  font-size: 0.62rem;
}

.steam-spotlight--compact .steam-spotlight-header {
  display: none;
}

.steam-spotlight--compact .steam-spotlight-text {
  display: block;
  flex: 1 1 140px;
  min-width: 0;
}

.steam-spotlight--compact .steam-spotlight-name {
  display: block;
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.steam-spotlight--compact .steam-spotlight-meta {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.steam-spotlight--compact .steam-spotlight-release-compact {
  display: block;
  margin: 0;
  flex: 0 0 auto;
  font-size: 0.66rem;
  color: var(--steam-text-dim);
  white-space: nowrap;
}

.steam-spotlight--compact .steam-spotlight-cta {
  flex: 0 0 auto;
  margin-top: 0;
  min-height: 28px;
  padding: 0 12px;
  font-size: 0.72rem;
}

.steam-spotlight--compact .steam-spotlight-media {
  flex: 0 0 112px;
  width: 112px;
  gap: 0;
}

.steam-spotlight--compact .steam-spotlight-viewport {
  aspect-ratio: unset;
  height: 63px;
}

@media (max-width: 720px) {
  .steam-spotlight--compact .steam-spotlight-inner {
    flex-wrap: wrap;
    padding: 8px;
  }

  .steam-spotlight--compact .steam-spotlight-media {
    order: 4;
    flex: 0 0 100%;
    width: 100%;
  }

  .steam-spotlight--compact .steam-spotlight-viewport {
    height: 52px;
  }

  .steam-spotlight--compact .steam-spotlight-cta {
    margin-left: auto;
  }
}

@media (max-width: 900px) {
  .steam-spotlight:not(.steam-spotlight--compact) .steam-spotlight-inner {
    grid-template-columns: 1fr;
  }

  .steam-spotlight:not(.steam-spotlight--compact) .steam-spotlight-info {
    order: 2;
  }

  .steam-spotlight:not(.steam-spotlight--compact) .steam-spotlight-media {
    order: 1;
  }
}

@media (max-width: 520px) {
  .steam-spotlight:not(.steam-spotlight--compact) .steam-spotlight-inner {
    padding: 12px;
  }

  .steam-spotlight:not(.steam-spotlight--compact) .steam-spotlight-thumb {
    width: 92px;
  }
}
