.after-play-panel {
  width: 100%;
  margin: 24px auto 34px;
  scroll-margin-top: 84px;
}

.return-panel.after-play-panel {
  background: transparent;
  border: 0;
  padding: 0;
}

.after-play-panel-dynamic {
  width: min(100% - 28px, 450px);
}

.discovery-home .home-continuation:has(> .after-play-panel:not([hidden])) {
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
}

.home-continuation .after-play-card {
  background: var(--cream);
  border-color: var(--line);
}

.after-play-card {
  --after-play-ink: #171614;
  --after-play-copy: #5f5850;
  --after-play-muted: #706a63;
  --after-play-border: #ded8d1;
  --after-play-accent: #b54e32;
  box-sizing: border-box;
  position: relative;
  width: min(100%, 450px);
  margin-inline: auto;
  padding: 33px 25px 29px;
  color: var(--after-play-ink);
  text-align: left;
  background: linear-gradient(#f6f3f0, #eee8e2);
  border: 1px solid #f1ede9;
  border-radius: 19px;
  box-shadow: 0 3px 8px #25211d0b;
}

.after-play-card :is(h2,h3,h4,p) {
  margin: 0;
  letter-spacing: normal;
}

.after-play-card button {
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.after-play-card :is(a,button,summary):focus-visible {
  outline: 2px solid var(--after-play-accent);
  outline-offset: 3px;
}

.after-play-handle {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  width: 72px;
  height: 31px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  place-items: center;
}

.after-play-handle::after {
  content: '';
  width: 40px;
  height: 5px;
  border-radius: 8px;
  background: #cec7c0;
}

.after-play-handle:hover::after {
  background: #a79d94;
}

.after-play-identity {
  position: relative;
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 17px;
  min-height: 105px;
  align-items: start;
}

.after-play-identity-icon {
  display: grid;
  justify-items: center;
  gap: 7px;
}

.after-play-identity-icon > img {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 13px;
  object-fit: cover;
}

.after-play-card .after-play-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 78px;
  min-height: 30px;
  padding: 4px 8px;
  white-space: nowrap;
  background: #fff;
  border: 1px solid #d8d1c9;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
}

.after-play-save .ui-icon {
  width: 13px;
  height: 13px;
}

.after-play-card .after-play-save[aria-pressed="true"] {
  background: #e4eddb;
  border-color: #b5c4a6;
}

.after-play-intro {
  padding: 4px 17px 0 0;
}

.after-play-card .after-play-kicker {
  color: var(--after-play-accent);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}

.after-play-card .after-play-opened {
  margin-top: 3px;
  color: var(--after-play-copy);
  font-size: 12px;
  line-height: 1.4;
}

.after-play-card .after-play-intro h2 {
  margin-top: 3px;
  font-size: 20px;
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: -.045em;
}

.after-play-card .after-play-lineup {
  margin-top: 10px;
  color: var(--after-play-muted);
  font-size: 12px;
  line-height: 1.4;
}

.after-play-options {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
}

.after-play-options summary {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 6px;
  cursor: pointer;
  list-style: none;
}

.after-play-options summary::-webkit-details-marker {
  display: none;
}

.after-play-options summary .ui-icon {
  width: 18px;
  height: 18px;
  opacity: .48;
}

.after-play-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  width: max-content;
  max-width: 220px;
  padding: 5px;
  background: #fff;
  border: 1px solid var(--after-play-border);
  border-radius: 9px;
  box-shadow: 0 5px 12px #25211d1c;
}

.after-play-card .after-play-menu button {
  display: block;
  width: 100%;
  padding: 9px 10px;
  background: transparent;
  border: 0;
  border-radius: 5px;
  text-align: left;
  font-size: 12px;
}

.after-play-options summary:hover,
.after-play-menu button:hover {
  background: #e8e1da;
}

.after-play-recommendations {
  margin-top: 19px;
  padding-top: 17px;
  border-top: 1px solid var(--after-play-border);
}

.after-play-card .after-play-recommendations h3 {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.035em;
}

.after-play-card .after-play-context {
  margin-top: 7px;
  color: var(--after-play-muted);
  font-size: 13px;
  line-height: 1.4;
}

.after-play-card .after-play-game {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 13px;
  gap: 13px;
  align-items: center;
  padding: 13px 11px;
  color: inherit;
  text-decoration: none;
  border-radius: 10px;
}

.after-play-game > img:first-child {
  object-fit: cover;
  border-radius: 8px;
}

.after-play-card .after-play-featured {
  min-height: 91px;
  box-sizing: border-box;
  margin-top: 15px;
  padding: 13px 14px 13px 16px;
  background: #fff;
  border: 1px solid var(--after-play-border);
  border-radius: 12px;
  box-shadow: 0 2px 5px #25211d0a;
}

.after-play-featured > img:first-child {
  border-radius: 12px;
}

.after-play-game > .ui-icon:last-child {
  width: 13px;
  height: 13px;
  opacity: .33;
}

.after-play-game-copy strong {
  display: block;
  color: var(--after-play-ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.025em;
}

.after-play-featured .after-play-game-copy strong {
  font-size: 16px;
}

.after-play-card .after-play-game-summary {
  margin-top: 2px;
  color: var(--after-play-copy);
  font-size: 11px;
  line-height: 1.35;
}

.after-play-featured .after-play-game-copy .after-play-game-summary {
  margin-top: 4px;
  font-size: 12px;
}

.after-play-category {
  display: inline-block;
  margin-top: 3px;
  color: var(--after-play-muted);
  font-size: 11px;
  line-height: 1.3;
}

.after-play-featured .after-play-category {
  margin-top: 6px;
  padding: 1px 7px;
  color: #545962;
  background: #edeef0;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}

.after-play-card .after-play-next {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 47px;
  margin-top: 16px;
  padding: 8px 12px;
  color: #fff;
  background: linear-gradient(100deg, #ac492e, #b65639);
  border-radius: 999px;
  box-shadow: 0 3px 9px #aa563739;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
}

.after-play-next .ui-icon {
  width: 14px;
  height: 14px;
  filter: brightness(0) invert(1);
}

.after-play-card .after-play-next:hover {
  background: #a54129;
}

.after-play-card .after-play-game:hover {
  background: #eae3dd;
}

.after-play-card .after-play-featured:hover {
  background: #faf6f1;
}

.after-play-related {
  margin-top: 17px;
  padding-top: 16px;
  border-top: 1px solid var(--after-play-border);
}

.after-play-card .after-play-related h4 {
  margin-bottom: 7px;
  color: var(--after-play-muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.after-play-related .after-play-game + .after-play-game {
  margin-top: 5px;
}

@media (max-width: 480px) {
  .after-play-panel {
    scroll-margin-top: 68px;
  }

  .after-play-card {
    padding: 32px 16px 20px;
    border-radius: 16px;
  }

  .after-play-identity {
    grid-template-columns: 73px minmax(0, 1fr);
    gap: 12px;
  }

  .after-play-card .after-play-save {
    min-width: 70px;
  }

  .after-play-card .after-play-featured {
    padding-inline: 10px;
  }

  .after-play-card .after-play-game {
    gap: 9px;
  }
}
