/* The Replay comparison belongs to Local Premium. */
.plans-replay {
  padding-block: clamp(2.25rem, 4vw, 5rem);
  background: #edf2f7;
}
.replay-feature {
  --replay-gold: #efd5a0;
  --replay-text: #eff3f7;
  --replay-muted: #bbcad7;
  --replay-rule: #34495b;
  max-width: 74rem;
  margin-inline: auto;
  padding: clamp(1.25rem, 3.6vw, 3.5rem);
  color: var(--replay-text);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(107, 140, 165, .17), transparent 49%),
    linear-gradient(135deg, #102238, #0c1b2d 59%, #14283a);
  border: 1px solid #aa936c;
  border-radius: clamp(1.1rem, 2vw, 1.8rem);
  box-shadow: 0 1.25rem 3.75rem -2.25rem rgba(9, 29, 49, .55);
}
.replay-heading { max-width: 46rem; margin: 0 auto; text-align: center; }
.replay-edition {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .45rem .7rem;
  max-width: 100%;
  margin: 0;
  padding: .5rem .8rem;
  color: #f4deb3;
  background: #2c333c;
  border: 1px solid #8c7959;
  border-radius: .6rem;
  font-size: clamp(1rem, 1.45vw, 1.23rem);
  line-height: 1.3;
}
.replay-emblem {
  width: .58em;
  height: .58em;
  margin-inline: .16em;
  border: 1px solid #f9e9c7;
  background: linear-gradient(135deg, #fff0d0 49%, #b69666 50%);
  transform: rotate(45deg);
}
.replay-phase {
  padding-inline-start: .7rem;
  border-inline-start: 1px solid #796f5f;
  font: 650 .72em/1.35 ui-monospace, monospace;
}
.replay-heading h2 {
  margin: .8rem 0 .65rem;
  color: var(--replay-text);
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -.053em;
}
.replay-heading h2 span { color: var(--replay-gold); }
.replay-lead {
  margin: 0;
  color: #ccdae5;
  font-size: clamp(1rem, 1.3vw, 1.19rem);
  line-height: 1.65;
  text-wrap: pretty;
}
.replay-workbench {
  max-width: 59rem;
  margin: clamp(1.35rem, 2.6vw, 2.25rem) auto 0;
  background: #101f30;
  border: 1px solid #405264;
  border-radius: 1rem;
}
.replay-sequence, .replay-rules {
  min-inline-size: 0;
  margin: 0;
  padding: clamp(1rem, 2.2vw, 1.65rem);
}
.replay-sequence { border-bottom: 1px solid var(--replay-rule); }
.replay-sequence figcaption {
  display: flex;
  align-items: baseline;
  gap: .47em;
  color: #a9d9db;
  font: 650 .79rem/1.4 ui-monospace, monospace;
  letter-spacing: .065em;
  text-transform: uppercase;
}
.replay-events {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: .8rem 1.5rem;
  list-style: none;
  margin: .85rem 0 0;
  padding: 0;
}
.replay-events li {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: .7rem;
  padding-top: .75rem;
  border-top: 1px solid var(--replay-rule);
}
.replay-events li::before {
  position: absolute;
  inset: -3px auto auto 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #87c4ca;
  content: '';
}
.replay-event-time {
  padding: .23rem .37rem;
  color: #afe4e5;
  background: #16333e;
  border-radius: .28rem;
  font: 650 .84rem/1.25 ui-monospace, monospace;
  white-space: nowrap;
}
.replay-event-label { display: block; margin-bottom: .24rem; color: var(--replay-muted); font-size: .88rem; }
.replay-events strong, .replay-levels { font: 650 clamp(.91rem, 1.2vw, 1.06rem)/1.4 ui-monospace, monospace; }
.replay-levels { display: flex; flex-wrap: wrap; gap: .18em .88em; }
.replay-levels > * { white-space: nowrap; }
.replay-levels span { color: #c5d5df; font-weight: 450; }
.replay-rules { border: 0; padding-top: .85rem; }
.replay-rules legend {
  float: left;
  width: 100%;
  padding: 0;
  margin: 0 0 .65rem;
  font-size: 1rem;
  font-weight: 700;
}
.replay-selector {
  position: relative;
  clear: both;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .45rem;
}
.replay-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.replay-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .52rem;
  min-height: 2.8rem;
  padding: .47rem .45rem;
  background: #192c3e;
  border: 1px solid #45596b;
  border-radius: .55rem;
  color: #e1e8ed;
  font-size: clamp(.9rem, 1.12vw, 1.02rem);
  font-weight: 660;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
}
.replay-label::before {
  flex: 0 0 auto;
  width: .65em;
  height: .65em;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  content: '';
}
.replay-label:hover { border-color: #a8b5c2; }
.replay-input:checked + .replay-label {
  color: #342819;
  background: #ead3a8;
  border-color: #f6e5c5;
}
.replay-input:checked + .replay-label::before { background: currentColor; }
.replay-input:focus-visible + .replay-label, .replay-guide summary:focus-visible, .replay-plan-link:focus-visible {
  outline: 3px solid #62c9e0;
  outline-offset: 3px;
}
/* Each rule reserves the same area, including when long translations wrap. */
.replay-readings { display: grid; grid-column: 1 / -1; margin-top: .6rem; }
.replay-answer {
  visibility: hidden;
  grid-area: 1 / 1;
  min-width: 0;
  padding: .75rem 1rem;
  border-inline-start: 2px solid var(--replay-gold);
  background: #17293a;
}
#replay-early:checked ~ .replay-readings #replay-result-early,
#replay-wait:checked ~ .replay-readings #replay-result-wait,
#replay-staged:checked ~ .replay-readings #replay-result-staged { visibility: visible; }
.replay-reading { display: flex; flex-wrap: wrap; gap: .32rem .7rem; align-items: baseline; margin: 0; }
.replay-reading strong { color: var(--replay-gold); font-size: 1.06rem; }
.replay-count { color: #c3d1dd; font-size: .87rem; }
.replay-answer > p + p { margin: .4rem 0 0; color: #d2dfe8; font-size: .98rem; line-height: 1.55; }
.replay-foot { max-width: 59rem; margin: 1.1rem auto 0; }
.replay-credit { margin: 0; color: #c9d6df; font-size: .94rem; line-height: 1.55; }
.replay-guide { margin-top: .45rem; }
.replay-guide summary {
  width: fit-content;
  max-width: 100%;
  min-height: 2.75rem;
  align-content: center;
  padding: .6rem .1rem;
  color: var(--replay-gold);
  font-size: .96rem;
  font-weight: 700;
  cursor: pointer;
}
.replay-guide summary:hover { text-decoration: underline; text-underline-offset: .17em; }
.replay-guide p { max-width: 76ch; margin: .2rem 0 .65rem; color: var(--replay-muted); line-height: 1.6; }
.replay-plan-link { color: #205787; font-weight: 700; text-decoration: underline; text-underline-offset: .19em; }
.replay-plan-link:hover { color: #123c67; }
.replay-plan-link span[aria-hidden] { display: inline-block; text-decoration: none; }
@media (max-width: 40rem) {
  .plans-replay { padding-block: 1.65rem; }
  .replay-feature { padding: 1.25rem .9rem .8rem; }
  .replay-edition { gap: .35rem .5rem; padding: .4rem .55rem; }
  .replay-phase { padding-inline-start: .5rem; }
  .replay-events { grid-template-columns: 1fr; gap: .6rem; }
  .replay-events li { grid-template-columns: 3.3rem minmax(0, 1fr); padding-top: .6rem; }
  .replay-event-time { justify-self: start; }
  .replay-selector { gap: .32rem; }
  .replay-label { gap: .28rem; flex-direction: column; padding-inline: .23rem; font-size: .88rem; }
  .replay-answer { padding-inline: .65rem; }
}
@media (max-width: 23rem) {
  .replay-sequence, .replay-rules { padding-inline: .7rem; }
  .replay-emblem { display: none; }
}
@media (forced-colors: active) {
  .replay-input:checked + .replay-label { outline: 2px solid Highlight; outline-offset: -3px; }
  .replay-input:checked + .replay-label::before { background: Highlight; }
  .replay-input:focus-visible + .replay-label { outline: 3px dashed Highlight; outline-offset: 2px; }
}
