.hero-selector {
  --selector-ink: #1b2a20;
  --selector-solid: #eceee0;
  --selector-glass: #eef1dfce;
  --selector-rim: #fffff2d9;
  --selector-track: #5a70451a;
  --selector-track-edge: #40593622;
  --selector-active: #fffdf5;
  --ticket: #fffbef;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  justify-self: end;
  gap: 7px clamp(8px, 2.4cqi, 18px);
  width: min(448px, calc(100% - 24px));
  min-inline-size: 0;
  margin: max(-96px, -14%) clamp(12px, 3.5cqi, 24px) 0 0;
  padding: 12px clamp(12px, 3cqi, 18px);
  border: 1px solid var(--selector-rim);
  border-radius: 23px;
  color: var(--selector-ink);
  background: var(--selector-solid);
  box-shadow: inset 0 1px 0 #ffffff40, 0 5px 16px #10281816;
}

:root[data-theme="dark"] .hero-selector {
  --selector-ink: #f3f6e9;
  --selector-solid: #253c32;
  --selector-glass: #1a322bd9;
  --selector-rim: #cce4cd68;
  --selector-track: #071e1680;
  --selector-track-edge: #d9f1d82e;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .hero-selector {
    --selector-ink: #f3f6e9;
    --selector-solid: #253c32;
    --selector-glass: #1a322bd9;
    --selector-rim: #cce4cd68;
    --selector-track: #071e1680;
    --selector-track-edge: #d9f1d82e;
  }
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .hero-selector {
    background: linear-gradient(155deg, #ffffff17, transparent 68%), var(--selector-glass);
    -webkit-backdrop-filter: blur(15px) saturate(116%);
    backdrop-filter: blur(15px) saturate(116%);
  }
}

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

.hero-play__stars {
  display: flex;
  align-items: center;
  gap: clamp(5px, 1.6cqi, 9px);
  min-width: 0;
  font-size: clamp(14px, 3.2cqi, 18px);
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}

.hero-play__star {
  display: grid;
  flex: none;
  place-items: center;
  width: clamp(28px, 6.6cqi, 36px);
  aspect-ratio: 1;
  border: 1px solid #e9f1d8;
  border-radius: 50%;
  color: #fffef5;
  background: radial-gradient(ellipse at 26% 16%, #b5cb93, #567d47 48%, #346541 82%);
  box-shadow: inset 0 0 0 2px #ffffff38;
}

.hero-play__star::after {
  content: "";
  width: 63%;
  aspect-ratio: 1;
  background: currentColor;
  -webkit-mask: url("../images/star.svg") center / contain no-repeat;
  mask: url("../images/star.svg") center / contain no-repeat;
}

.hero-play__arrow { margin-inline-start: auto; font-size: 1.24em; font-weight: 420; }

.hero-selector__stage { min-width: 0; }

.hero-award {
  display: none;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  min-height: 44px;
  padding: 5px clamp(8px, 1.8cqi, 12px);
  border-radius: 8px;
  color: #19251b;
  background: var(--ticket);
  -webkit-mask: radial-gradient(circle at 0 50%, transparent 3px, black 3.7px), radial-gradient(circle at 100% 50%, transparent 3px, black 3.7px);
  mask: radial-gradient(circle at 0 50%, transparent 3px, black 3.7px), radial-gradient(circle at 100% 50%, transparent 3px, black 3.7px);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

#pick-paypal:checked ~ .hero-selector__stage #ticket-paypal,
#pick-pubg:checked ~ .hero-selector__stage #ticket-pubg,
#pick-steam:checked ~ .hero-selector__stage #ticket-steam { display: grid; }

.hero-award__image {
  width: clamp(25px, 5.4cqi, 32px);
  height: auto;
  aspect-ratio: 1;
}

.hero-award--paypal .hero-award__image { mix-blend-mode: multiply; }
.hero-award--pubg .hero-award__image { border-radius: 17%; }
.hero-award--steam .hero-award__image { border-radius: 50%; }

.hero-award h2 {
  display: grid;
  align-items: center;
  align-self: stretch;
  margin-left: clamp(5px, 1.6cqi, 10px);
  padding-left: clamp(5px, 1.6cqi, 10px);
  border-left: 1px dashed #aca991;
  font-size: clamp(13px, 2.8cqi, 17px);
  font-weight: 660;
  line-height: 1.1;
  letter-spacing: -.03em;
}

.hero-selector__label {
  grid-column: 1 / -1;
  font-size: 13px;
  font-weight: 580;
  line-height: 1.2;
}

.hero-selector__choices {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr) minmax(0, 1fr);
  min-width: 0;
  gap: 1px;
  padding: 2px;
  border: 1px solid var(--selector-track-edge);
  border-radius: 999px;
  color: var(--selector-ink);
  background: var(--selector-track);
}

.hero-selector__choices label {
  display: grid;
  place-content: center;
  min-width: 0;
  min-height: 44px;
  padding-inline: .3rem;
  border: 1px solid transparent;
  border-radius: inherit;
  font-size: clamp(13px, 2.5cqi, 15px);
  font-weight: 550;
  line-height: 1.04;
  text-align: center;
  cursor: pointer;
  touch-action: manipulation;
}

#pick-paypal:checked ~ .hero-selector__choices #select-paypal,
#pick-pubg:checked ~ .hero-selector__choices #select-pubg,
#pick-steam:checked ~ .hero-selector__choices #select-steam {
  color: #17251a;
  background: var(--selector-active);
  font-weight: 660;
}

#pick-paypal:focus-visible ~ .hero-selector__choices #select-paypal,
#pick-pubg:focus-visible ~ .hero-selector__choices #select-pubg,
#pick-steam:focus-visible ~ .hero-selector__choices #select-steam {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

@media (hover: hover) {
  .hero-selector__choices label:hover { background: #ffffed4c; }
}

@container (max-width: 360px) {
  .hero-selector {
    width: calc(100% - 16px);
    margin-inline-end: 8px;
    padding: 10px;
    gap: 5px 8px;
    border-radius: 18px;
  }
  .hero-play__stars { gap: 5px; }
  .hero-award h2 { letter-spacing: -.025em; }
  .hero-selector__choices label { padding-inline: 2px; }
}

@media (prefers-reduced-transparency: reduce), (prefers-contrast: more), (forced-colors: active) {
  .hero-selector { background: var(--selector-solid); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

@media (forced-colors: active) {
  .hero-play__star::after { background: CanvasText; forced-color-adjust: none; }
  .hero-award { border: 1px solid CanvasText; }
  #pick-paypal:checked ~ .hero-selector__choices #select-paypal,
  #pick-pubg:checked ~ .hero-selector__choices #select-pubg,
  #pick-steam:checked ~ .hero-selector__choices #select-steam { border-color: Highlight; }
}
