/* Random box listing page */
.random-box-page {
  padding: 30px 0 74px;
}

.random-box-shell {
  width: min(94vw, 2080px);
  margin-inline: auto;
}

.random-box-hero,
.random-box-lineup,
.random-box-prizes {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background:
    radial-gradient(circle at 18% 20%, rgba(56, 231, 255, .12), transparent 30%),
    radial-gradient(circle at 86% 8%, rgba(255, 77, 221, .16), transparent 32%),
    linear-gradient(180deg, rgba(20, 6, 34, .94), rgba(7, 2, 12, .96));
  border: 1px solid rgba(205, 116, 255, .26);
  box-shadow: 0 0 42px rgba(150, 52, 255, .18), inset 0 0 0 1px rgba(255,255,255,.03);
}

.random-box-hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(480px, 1fr) minmax(380px, .62fr);
  gap: clamp(24px, 3vw, 72px);
  align-items: center;
  padding: clamp(30px, 3vw, 64px);
}

.random-box-hero::before,
.random-box-lineup::before,
.random-box-prizes::before {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 26px;
  border: 1px solid rgba(255, 113, 232, .13);
  pointer-events: none;
}

.random-box-hero > *,
.random-box-lineup > *,
.random-box-prizes > * {
  position: relative;
  z-index: 2;
}

.random-box-kicker {
  margin: 0 0 10px;
  color: #ff74e9;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .28em;
}

.random-box-hero h1 {
  margin: 0;
  font-size: clamp(58px, 5vw, 116px);
  line-height: .95;
  text-shadow:
    0 0 14px rgba(255,255,255,.42),
    0 0 34px rgba(165, 72, 255, .72),
    7px 0 0 rgba(56, 231, 255, .22),
    -7px 0 0 rgba(255, 77, 221, .22);
}

.random-box-hero-copy > p:not(.random-box-kicker) {
  max-width: 760px;
  margin: 22px 0 0;
  color: #d2bee8;
  font-size: 18px;
  line-height: 1.8;
}

.random-box-hero-actions,
.random-box-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.random-box-hero-actions a,
.random-box-card-actions a {
  display: inline-grid;
  place-items: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 16px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  box-shadow: 0 0 28px rgba(255, 77, 221, .28);
}

.random-box-hero-actions .ghost,
.random-box-card-actions .ghost {
  background: rgba(31, 10, 50, .88);
  border: 1px solid rgba(255, 130, 237, .28);
  box-shadow: none;
}

.random-box-featured {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: clamp(22px, 2vw, 34px);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 213, 143, .18), transparent 34%),
    rgba(7, 2, 15, .72);
  border: 1px solid rgba(255, 213, 143, .24);
  text-align: center;
}

.random-box-featured span,
.random-box-card-copy small {
  color: #8ff5ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .18em;
}

.random-box-featured strong {
  color: #fff;
  font-size: clamp(24px, 2vw, 36px);
}

.random-box-featured p {
  max-width: 360px;
  margin: 0;
  color: #d2bee8;
  line-height: 1.65;
}

.random-box-lineup,
.random-box-prizes {
  margin-top: 28px;
  padding: clamp(24px, 2.6vw, 48px);
}

.random-box-section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 24px;
}

.random-box-section-head h2 {
  margin: 0;
  font-size: clamp(32px, 2.5vw, 54px);
}

.random-box-section-head > span {
  color: #fff0ad;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
}

.random-box-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 1.6vw, 28px);
}

.random-box-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(230px, .58fr) minmax(280px, 1fr);
  gap: 22px;
  align-items: center;
  min-height: 360px;
  padding: clamp(18px, 1.8vw, 30px);
  border-radius: 30px;
  background:
    radial-gradient(circle at 16% 24%, rgba(56, 231, 255, .10), transparent 34%),
    linear-gradient(180deg, rgba(21, 7, 34, .94), rgba(8, 3, 15, .98));
  border: 1px solid rgba(205, 116, 255, .24);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
}

.random-box-card::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 24px;
  border: 1px solid rgba(255, 113, 232, .10);
  pointer-events: none;
}

.random-box-card-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 260px;
}

.random-box-badge {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  background: rgba(163, 61, 255, .18);
  border: 1px solid rgba(223, 166, 255, .28);
}

.random-box-badge.premium {
  color: #ffdfaa;
  background: rgba(255, 197, 109, .16);
  border-color: rgba(255, 197, 109, .38);
}

.random-box-badge.legend {
  background: linear-gradient(135deg, rgba(56,231,255,.18), rgba(255,77,221,.22));
  border-color: rgba(133,236,255,.38);
}

.random-box-card-copy h3 {
  margin: 8px 0 12px;
  color: #fff;
  font-size: clamp(28px, 2vw, 42px);
}

.random-box-card-copy p {
  margin: 0;
  color: #cdb9e6;
  line-height: 1.7;
}

.random-box-meta {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(3, 0, 8, .52);
  border: 1px solid rgba(205, 116, 255, .20);
}

.random-box-meta span {
  display: block;
  color: #8ff5ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
}

.random-box-meta strong {
  display: block;
  margin-top: 5px;
  color: #fff0ad;
  font-size: clamp(24px, 1.8vw, 36px);
}

.random-box-meta del {
  margin-right: 8px;
  color: #a994bf;
  font-size: .72em;
}

.random-box-prize-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.random-box-prize-card {
  min-height: 230px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(12, 5, 22, .78);
  border: 1px solid rgba(205, 116, 255, .20);
}

.random-box-prize-card span {
  display: inline-grid;
  place-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 77, 221, .12);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
}

.random-box-prize-card strong {
  display: block;
  margin-top: 18px;
  color: #fff0ad;
  font-size: 26px;
}

.random-box-prize-card p {
  margin: 8px 0 14px;
  color: #e8d9ff;
  font-weight: 900;
}

.random-box-prize-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: #cdb9e6;
  list-style: none;
}

.random-box-prize-card.legendary {
  border-color: rgba(255, 213, 143, .34);
}

.random-box-prize-card.epic {
  border-color: rgba(255, 77, 221, .32);
}

.random-box-prize-card.rare {
  border-color: rgba(56, 231, 255, .28);
}

@media (max-width: 1180px) {
  .random-box-hero,
  .random-box-card {
    grid-template-columns: 1fr;
  }

  .random-box-grid,
  .random-box-prize-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .random-box-page {
    padding-top: 18px;
  }

  .random-box-hero,
  .random-box-lineup,
  .random-box-prizes {
    border-radius: 24px;
  }

  .random-box-hero {
    padding: 24px 18px;
  }

  .random-box-section-head {
    align-items: start;
    flex-direction: column;
  }

  .random-box-grid,
  .random-box-prize-grid {
    grid-template-columns: 1fr;
  }

  .random-box-card-actions a,
  .random-box-hero-actions a {
    width: 100%;
  }
}
