.recap-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid rgba(201, 168, 76, .38);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(201, 168, 76, .12), rgba(22, 22, 26, .96));
  color: #f4f2ec;
  font-family: var(--font-sans, "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}
.recap-bar[hidden] { display: none; }
.players-panel > .recap-bar { margin: 0; }

/* The Play page uses its own lightweight shell instead of content.css. The
   shared navigation still mounts its splash ring, so hide that otherwise
   unstyled SVG before it can appear as a large black circle below the tracker. */
.dc-splash-progress { display: none !important; }
.recap-bar__copy { min-width: 0; }
.recap-bar__copy strong { display: block; font-size: .94rem; }
.recap-bar__copy span { display: block; margin-top: 3px; color: #aaa6b0; font-size: .8rem; }
.recap-bar__actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.recap-button {
  min-height: 44px;
  border: 1px solid #38373f;
  border-radius: 10px;
  padding: 9px 14px;
  background: #1b1a20;
  color: #f4f2ec;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.recap-button--primary { border-color: #c9a84c; background: #c9a84c; color: #171208; }
.recap-button--danger { border-color: rgba(239, 119, 119, .45); color: #ffaaaa; background: rgba(115, 36, 36, .13); }
.recap-button:disabled { opacity: .5; cursor: not-allowed; }
.recap-button:focus-visible, .recap-dialog input:focus-visible, .recap-dialog textarea:focus-visible, .recap-dialog select:focus-visible, .recap-dialog summary:focus-visible, .recap-dialog a:focus-visible { outline: 3px solid #f2d36f; outline-offset: 3px; }
.player-card.is-recap-hidden { display: none; }

.recap-dialog {
  inset: 0;
  width: min(720px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  margin: auto;
  overflow: hidden;
  border: 1px solid #3a3840;
  border-radius: 18px;
  padding: 0;
  background: #111114;
  color: #f4f2ec;
  font-family: var(--font-sans, "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .72);
}
.recap-dialog::backdrop { background: rgba(0, 0, 0, .76); backdrop-filter: blur(4px); }
html:has(.recap-dialog[open]), body:has(.recap-dialog[open]) { overflow: hidden; }
.recap-dialog form { display: flex; max-height: calc(100dvh - 24px); flex-direction: column; }
.recap-dialog__head { display: flex; flex: 0 0 auto; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid #2b2a30; }
.recap-dialog__head h2 { margin: 4px 0 0; font-size: 1.35rem; }
.recap-dialog__body { display: grid; gap: 14px; padding: 18px 20px; overflow: visible; }
.recap-dialog__body--published { gap: 12px; }
.recap-dialog section { min-width: 0; }

.recap-eyebrow { margin: 0; color: #c9a84c; font-size: .7rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.recap-help, .recap-status { margin: 0; color: #a7a3ac; font-size: .8rem; }
.recap-status { min-height: 18px; }
.recap-status:empty { min-height: 0; }
.recap-status[data-tone=error] { color: #ffaaaa; }
.recap-status[data-tone=success] { color: #8de2be; }
.recap-section-title { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; }

.recap-field { display: grid; gap: 6px; min-width: 0; font-size: .8rem; font-weight: 800; }
.recap-field input, .recap-field textarea, .recap-field select { width: 100%; min-height: 44px; border: 1px solid #35343b; border-radius: 9px; padding: 9px 11px; background: #17171b; color: #f4f2ec; font: inherit; }
.recap-field textarea { min-height: 72px; resize: vertical; }
.recap-field small { min-width: 0; overflow: hidden; color: #aaa6b0; font-size: .69rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }

.recap-grid, .recap-label-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.recap-label-field { padding: 10px; border: 1px solid #302f35; border-radius: 11px; background: #17171b; }
.recap-label-field > span { color: #aaa6b0; font-size: .7rem; }
.recap-player, .recap-option, .recap-turning { border: 1px solid #302f35; border-radius: 12px; padding: 12px; background: #17171b; }
.recap-player { display: grid; gap: 7px; }
.recap-player__facts { display: flex; gap: 8px; flex-wrap: wrap; color: #aaa6b0; font-size: .76rem; }

.recap-check { display: flex; min-height: 44px; align-items: center; gap: 9px; padding: 8px 0; }
.recap-check input { flex: 0 0 auto; width: 20px; height: 20px; accent-color: #c9a84c; }
.recap-check span { line-height: 1.3; }
.recap-choice-row { display: flex; gap: 8px; flex-wrap: wrap; }
.recap-choice-row .recap-check { min-height: 42px; padding: 7px 11px; border: 1px solid #302f35; border-radius: 10px; background: #17171b; }
.recap-options { display: grid; gap: 4px; }

.recap-more { border: 1px solid #302f35; border-radius: 12px; background: #151519; }
.recap-more summary { min-height: 44px; padding: 12px 14px; color: #f4f2ec; font-weight: 800; cursor: pointer; }
.recap-more summary span { display: inline-flex; min-width: 22px; min-height: 22px; align-items: center; justify-content: center; margin-left: 6px; border-radius: 999px; background: rgba(201, 168, 76, .16); color: #e8ca70; font-size: .72rem; }
.recap-more__content { display: grid; gap: 12px; padding: 0 14px 14px; }

.recap-publish-box { padding: 12px; border: 1px solid rgba(201, 168, 76, .35); border-radius: 12px; background: rgba(201, 168, 76, .06); }
.recap-publish-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: end; gap: 12px; }
.recap-consent { align-items: center; }
.recap-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; padding-top: 4px; }

.recap-published { display: grid; gap: 14px; padding: 16px; border: 1px solid rgba(91, 194, 146, .4); border-radius: 12px; background: rgba(52, 123, 91, .12); }
.recap-published > div:first-child { display: grid; gap: 3px; }
.recap-published > div:first-child span { color: #a7a3ac; font-size: .8rem; }
.recap-public-link { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; border: 1px solid #3c3b43; border-radius: 10px; color: #efd36f; text-decoration: none; font-weight: 800; }
.recap-share-row { display: flex; gap: 8px; flex-wrap: wrap; }
.recap-share-row a { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; border: 1px solid #38373f; border-radius: 10px; padding: 9px 14px; color: #efd36f; text-decoration: none; font-weight: 800; }

.recap-loading { display: inline-block; width: 16px; height: 16px; margin-right: 7px; border: 2px solid rgba(255, 255, 255, .25); border-top-color: #c9a84c; border-radius: 50%; animation: recapSpin .8s linear infinite; }
@keyframes recapSpin { to { transform: rotate(360deg); } }

@media (max-height: 720px) {
  .recap-dialog__body { overflow-y: auto; }
}

@media (max-width: 640px) {
  .recap-bar { align-items: stretch; flex-direction: column; }
  .recap-bar__actions, .recap-actions { display: grid; grid-template-columns: 1fr; }
  .recap-grid, .recap-publish-row { grid-template-columns: 1fr; }
  .recap-dialog__body { overflow-y: auto; padding: 14px; }
  .recap-dialog__head { padding: 14px; }
  .recap-button, .recap-share-row > * { width: 100%; }
  .recap-share-row { display: grid; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 360px) {
  .recap-dialog__head, .recap-dialog__body { padding: 12px; }
  .recap-dialog__body { gap: 10px; }
  .recap-label-grid { gap: 7px; }
  .recap-label-field { padding: 8px; }
  .recap-section-title { margin-bottom: 7px; }
  .recap-publish-box { padding: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .recap-loading { animation: none; }
}
