/* The closing bell: a result worth keeping and a challenge worth sending. */
body[data-screen="game"] .result-journey .result-signup .small-note {
  color: #59645f;
}

.market-shell .brand-copy strong {
  font-size: 29px;
  letter-spacing: -.075em;
}

.market-shell .brand-copy small {
  margin-top: 3px;
  font-size: 8px;
  letter-spacing: .17em;
}

body[data-screen="game"] .market-shell .brand-copy strong {
  font-size: 21px;
  letter-spacing: -.065em;
}

body[data-screen="game"] .market-shell .brand-copy small {
  display: block;
  font-size: 6px;
  margin-top: 2px;
  letter-spacing: .15em;
  color: #c5b58f;
}

body[data-screen="game"] .journey-screen.result-journey {
  --result-ink: #172b39;
  --result-muted: #59645f;
  --result-lime: #d4f66b;
  padding: clamp(26px, 4vw, 56px) clamp(20px, 5vw, 76px) 48px;
  color: var(--result-ink);
  background: radial-gradient(ellipse at 9% 0, #e8e0c8 0, transparent 48%), #f6f2e8;
  scrollbar-color: #b5ac93 #f6f2e8;
}

body[data-screen="game"] .result-journey .result-share {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(32px, 5.4vw, 78px);
  max-width: 1120px;
}

.result-poster-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 24px 26px 17px;
  border: 1px solid #172b3917;
  border-radius: 4px;
  background: #e5e0d1;
}

.result-poster {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 500px;
  border-radius: 2px;
  box-shadow: 0 12px 25px #14231c26, 0 2px 4px #14231c12;
}

.result-preview-note {
  margin: 17px 0 0;
  color: #657064;
  font: 10px/1.5 "Courier New", monospace;
  letter-spacing: .015em;
  text-align: center;
}

.result-share-copy {
  min-width: 0;
  padding-block: 6px;
}

body[data-screen="game"] .result-journey .result-share-copy > .eyebrow {
  margin: 0 0 20px;
  color: #877145;
  font-size: 10px;
  letter-spacing: .14em;
}

.market-shell .result-share-copy h1 {
  max-width: 550px;
  margin: 0;
  color: var(--result-ink);
  font-size: clamp(36px, 3.7vw, 52px);
  font-weight: 800;
  letter-spacing: -.06em;
  line-height: 1.04;
  text-wrap: balance;
}

.result-lede {
  max-width: 440px;
  margin: 18px 0 24px;
  color: var(--result-muted);
  font-size: 15px;
  line-height: 1.65;
}

.share-format {
  display: inline-flex;
  gap: 3px;
  max-width: 100%;
  margin: 0 0 16px;
  padding: 4px;
  border: 1px solid #c8c7b9;
  border-radius: 8px;
  background: #eae7db;
}

body[data-screen="game"] .result-journey .button {
  min-height: 46px;
  padding: 12px 17px;
  border: 1px solid #bcbfaf;
  border-radius: 7px;
  background: #fffcf4;
  box-shadow: none;
  color: var(--result-ink);
  font-size: 13px;
  line-height: 1.4;
  white-space: normal;
}

body[data-screen="game"] .result-journey .button:hover:not(:disabled) {
  border-color: #172b39;
  background: #f0ede1;
  transform: translateY(-1px);
  box-shadow: 0 2px 0 #172b391f;
}

body[data-screen="game"] .result-journey .button.primary {
  border-color: var(--result-ink);
  background: var(--result-lime);
  color: var(--result-ink);
  box-shadow: 0 3px 0 var(--result-ink);
}

body[data-screen="game"] .result-journey .button.primary:hover:not(:disabled) {
  background: #e0ff86;
  box-shadow: 0 4px 0 var(--result-ink);
}

body[data-screen="game"] .result-journey .button:focus-visible,
body[data-screen="game"] .result-journey summary:focus-visible {
  outline: 3px solid #766026;
  outline-offset: 4px;
}

body[data-screen="game"] .result-journey .share-format .button {
  min-height: 40px;
  padding: 8px 15px;
  border-color: transparent;
  border-radius: 5px;
  background: transparent;
  color: #606959;
  font-size: 12px;
  box-shadow: none;
  transform: none;
}

body[data-screen="game"] .result-journey .share-format .button[aria-pressed="true"] {
  border-color: #172b3914;
  background: #fffdf5;
  color: var(--result-ink);
  box-shadow: 0 1px 3px #172b3912;
}

.result-share-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  max-width: 445px;
}

.result-share-actions > .primary {
  grid-column: 1 / -1;
}

body[data-screen="game"] .result-journey .result-share-actions > .primary {
  min-height: 53px;
  margin-bottom: 2px;
  font-size: 15px;
}

.share-status {
  max-width: 445px;
  min-height: 21px;
  margin: 12px 0 4px;
  color: #365c42;
  font-size: 12px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.share-platforms {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

body[data-screen="game"] .result-journey .share-platforms a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #59645f;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: underline;
  text-decoration-color: #a3a894;
  text-underline-offset: 4px;
}

body[data-screen="game"] .result-journey .share-platforms a:first-child {
  margin-left: -13px;
}

body[data-screen="game"] .result-journey .share-platforms a:hover {
  color: var(--result-ink);
  background: #e7e6d9;
  box-shadow: none;
  transform: none;
}

.share-platform-note {
  max-width: 400px;
  margin: 1px 0 0;
  color: #707664;
  font-size: 11px;
  line-height: 1.7;
}

.share-caption {
  max-width: 445px;
  margin-top: 9px;
}

.share-caption summary {
  min-height: 44px;
  padding-block: 13px;
  color: #59645f;
  font-size: 12px;
  cursor: pointer;
}

.share-caption textarea {
  display: block;
  width: 100%;
  min-height: 160px;
  max-height: 320px;
  padding: 14px;
  border: 1px solid #b8bfac;
  border-radius: 7px;
  background: #fffcf4;
  color: var(--result-ink);
  font: 12px/1.65 "Courier New", monospace;
  resize: vertical;
}

.share-caption textarea:focus-visible {
  outline: 3px solid #766026;
  outline-offset: 3px;
}

.result-signup {
  max-width: 465px;
  margin-top: 22px;
  padding: 22px;
  border: 1px solid #c2c7b4;
  border-radius: 8px;
  background: #e8eddc;
}

.result-signup[hidden] {
  display: none;
}

.result-signup-tag {
  display: block;
  margin-bottom: 10px;
  color: #65704a;
  font: 700 9px/1.5 "Courier New", monospace;
  letter-spacing: .12em;
}

.result-signup h2 {
  max-width: 330px;
  font-size: 25px;
  letter-spacing: -.045em;
  line-height: 1.12;
  text-wrap: balance;
}

.result-signup p {
  margin: 11px 0 17px;
  color: #57634f;
  font-size: 12px;
  line-height: 1.65;
}

body[data-screen="game"] .result-journey .result-signup .button.primary {
  border-color: var(--result-ink);
  background: var(--result-ink);
  color: #fffcf4;
  box-shadow: none;
}

body[data-screen="game"] .result-journey .result-signup .button.primary:hover {
  background: #304751;
}

body[data-screen="game"] .result-journey .button.quiet {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: #59645f;
  font-size: 12px;
}

.result-replay-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 445px;
  margin: 24px 0 0;
  padding-top: 19px;
  border-top: 1px solid #d6d6c7;
}

body[data-screen="game"] .result-journey .result-replay-actions .button {
  min-height: 44px;
  padding: 9px 12px;
  font-size: 12px;
}

body[data-screen="game"] .result-journey .result-details {
  max-width: 1120px;
  margin-top: 36px;
  border-top: 1px solid #cdcfbd;
}

.result-details > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 16px 0;
  color: #6a6d59;
  font-size: 12px;
  cursor: pointer;
  list-style: none;
}

.result-details > summary::-webkit-details-marker {
  display: none;
}

.result-details > summary::after {
  content: "+";
  margin-left: auto;
  color: #7f795d;
  font-size: 22px;
  line-height: 1;
}

.result-details[open] > summary::after {
  content: "−";
}

/* Recap panels share this page's paper palette, including inherited journey UI. */
body[data-screen="game"] .result-journey .result-details .market-panel,
body[data-screen="game"] .result-journey .result-details .encounter-reflection {
  border-color: #cccfbd;
  background: #eeeee2;
  color: var(--result-ink);
}

body[data-screen="game"] .result-journey .result-details .eyebrow {
  color: #877145;
}

body[data-screen="game"] .result-journey .result-details .small-note,
body[data-screen="game"] .result-journey .result-details .journal-row p {
  color: #59645f;
}

body[data-screen="game"] .result-journey .result-details .positive {
  color: #28614d;
}

body[data-screen="game"] .result-journey .result-details .negative {
  color: #a83725;
}

body[data-screen="game"] .result-journey .result-details .reflection-answer,
body[data-screen="game"] .result-journey .result-details .debrief blockquote {
  border-color: #798658;
  background: #e1e7d4;
  color: #30402d;
}

@media (min-width: 1400px) {
  body[data-screen="game"] .result-journey .result-share {
    min-height: 620px;
  }
}

@media (max-width: 820px) {
  body[data-screen="game"] .journey-screen.result-journey {
    padding-inline: 24px;
  }

  body[data-screen="game"] .result-journey .result-share {
    gap: 28px;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  }

  .result-poster-wrap {
    padding-inline: 15px;
  }

  .market-shell .result-share-copy h1 {
    font-size: 36px;
  }

  .result-lede {
    font-size: 13px;
  }

  body[data-screen="game"] .result-journey .button {
    padding-inline: 12px;
    font-size: 12px;
  }
}

@media (max-width: 640px) {
  body[data-screen="game"] .journey-screen.result-journey {
    padding: 20px 20px 35px;
  }

  body[data-screen="game"] .result-journey .result-share {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    max-width: 430px;
  }

  .result-poster-wrap {
    padding: 18px 20px 13px;
  }

  .result-poster {
    max-height: 390px;
  }

  .result-preview-note {
    margin-top: 12px;
    font-size: 9px;
  }

  .result-share-copy {
    padding: 0;
  }

  body[data-screen="game"] .result-journey .result-share-copy > .eyebrow {
    margin-bottom: 13px;
    font-size: 9px;
  }

  .market-shell .result-share-copy h1 {
    font-size: clamp(33px, 8vw, 43px);
  }

  .result-lede {
    margin: 15px 0 18px;
    font-size: 14px;
  }

  .share-format {
    display: flex;
  }

  body[data-screen="game"] .result-journey .share-format .button {
    flex: 1;
    min-height: 42px;
  }

  body[data-screen="game"] .result-journey .button {
    min-height: 48px;
    font-size: 13px;
  }

  .result-share-actions {
    gap: 10px;
  }

  .share-platform-note {
    font-size: 12px;
  }

  .result-signup {
    padding: 20px;
  }

  .result-signup h2 {
    font-size: 26px;
  }

  .result-signup p {
    font-size: 13px;
  }

  .result-replay-actions > .button {
    flex: 1;
  }

  body[data-screen="game"] .result-journey .result-details {
    max-width: 430px;
    margin-top: 28px;
  }
}

@media (max-width: 360px) {
  body[data-screen="game"] .journey-screen.result-journey {
    padding-inline: 15px;
  }

  .result-signup {
    padding: 17px;
  }

  body[data-screen="game"] .result-journey .result-signup .button.quiet {
    padding-inline: 10px;
  }
}
