/* The tier picker · season-3.html hero (#product) and the shop's cards. Radios styled
   like size chips, one chip per option. In a .tier-scope, the checked chip shows the
   panel at the same position in .tier-panels (price, what's inside, its own Stripe
   button). On season-3 it also sets the scene: Games only hides the controller, Duo
   shows a "×2" badge. No script needed for any of it (:has); js/tier-picker.js only
   pre-picks a Season 3 tier from the URL hash. */
.tier-picker {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: var(--spacing-2);
  width: 100%;
  margin: 0 0 var(--spacing-6);
  padding: 0;
  border: 0;
}
.tier-picker-legend {
  margin-bottom: var(--spacing-3);
  padding: 0;
  font-weight: 700;
  font-size: var(--font-size-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tier-option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: var(--spacing-3) var(--spacing-2);
  border: 2px solid rgba(4, 8, 12, 0.15);
  border-radius: var(--radius-xl);
  background: var(--color-light);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.tier-option:hover {
  transform: translateY(-2px);
}
/* The radio stays in the page for the keyboard and screen readers, hidden from sight. */
.tier-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  /* season-3.html#tier-duo scrolls to the radio: leave room for the legend and, on
     phones, the first row of options above it. */
  scroll-margin-top: 160px;
}
.tier-option .pi {
  font-size: 22px;
  margin-bottom: 4px;
}
/* "Most popular" on the Pack, the per-meaning action colour (DESIGN.md). */
.tier-option-tag {
  position: absolute;
  top: -11px;
  left: 50%;
  translate: -50% 0;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background: var(--color-crayola);
  color: var(--color-white);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tier-option-name {
  font-weight: 700;
  line-height: 1.2;
}
.tier-option-price {
  font-size: var(--font-size-sm);
  opacity: 0.7;
}
/* The picked option: ringed in Crayola, the lead colour, over a soft shadow. The
   ring is 3px (border plus an inset), so nothing moves when it lands. */
.tier-option:has(input:checked) {
  border-color: var(--color-crayola);
  box-shadow: inset 0 0 0 1px var(--color-crayola), var(--shadow-md);
}
.tier-option:has(input:checked) .tier-option-price {
  opacity: 1;
}

/* One panel at a time: the one at the checked chip's position. */
.tier-panel {
  display: none;
  width: 100%;
}
.tier-scope:has(.tier-option:nth-of-type(1) input:checked) .tier-panels > :nth-child(1),
.tier-scope:has(.tier-option:nth-of-type(2) input:checked) .tier-panels > :nth-child(2),
.tier-scope:has(.tier-option:nth-of-type(3) input:checked) .tier-panels > :nth-child(3),
.tier-scope:has(.tier-option:nth-of-type(4) input:checked) .tier-panels > :nth-child(4) {
  display: block;
}

/* The scene follows: games only, no controller on the phone. */
#product .tile {
  transition-property: transform, box-shadow, opacity;
}
#product:has(#tier-bundle:checked) .tile {
  opacity: 0;
}
.tier-x2 {
  display: none;
  position: absolute;
  top: 8%;
  right: 8%;
  z-index: 2;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--color-crayola);
  color: var(--color-white);
  font: var(--font-weight-bold) 1.5rem/1 var(--font-family-outfit);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.tier-scope:has(#tier-duo:checked) .tier-x2 {
  display: block;
}

@media (max-width: 576px) {
  .tier-picker {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (prefers-reduced-motion: reduce) {
  .tier-option { transition: none; }
}
