/* Solved (layout "R1"): the drawing stays the hero; under it a museum-style label (title, time,
   stars), then one primary button and "Challenge a friend" (result-bar.css shows them). */
.relation-result {
  display: none;
}

.is-complete .goals-row,
.is-complete .dock-tools {
  display: none;
}

.is-complete .goals-dock,
.is-complete .goals-dock.solved {
  margin-top: var(--space-3);
  border-color: transparent;
  background: none;
}

.is-complete .relation-result {
  display: block;
  animation: result-in 0.25s ease;
}

.result-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.result-text {
  min-width: 0;
}

.result-title {
  display: block;
  font-size: var(--text-h2);
  line-height: 1.2;
}

.result-time {
  margin: 2px 0 0;
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}

.result-time b {
  font-size: var(--text-title);
  font-weight: 600;
}

.result-time span {
  color: var(--muted);
  font-size: var(--text-caption);
}

.result-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.result-stars {
  display: flex;
  gap: 6px;
}

.result-star {
  color: var(--line-strong);
}

.result-star.earned {
  color: var(--ink);
}

.result-star svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke-width: 1.6;
}

.result-star.earned svg {
  fill: currentColor;
}

.result-chip {
  min-height: 26px;
  padding: 0 var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--wash);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: var(--text-caption);
  font-weight: 500;
}

.result-chip svg {
  width: 15px;
  height: 15px;
}

.result-banner {
  margin: var(--space-3) 0 0;
  min-height: 36px;
  border-radius: 10px;
  background: var(--daily-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lilac-text);
  font-size: var(--text-small);
  font-weight: 600;
}

.is-complete .relation-result-actions {
  margin-top: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.relation-result-actions .primary-btn {
  width: 100%;
  min-height: 52px;
}

.challenge-button {
  min-height: 44px;
  border: 0;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: 15px;
  font-weight: 600;
}

.challenge-button svg {
  width: 20px;
  height: 20px;
}

.challenge-button[hidden] {
  display: none;
}

@media (max-height: 640px) {
  .result-title {
    font-size: var(--text-title);
  }

  .result-star svg {
    width: 26px;
    height: 26px;
  }

  .is-complete .goals-dock,
  .is-complete .relation-result-actions {
    margin-top: var(--space-2);
  }
}
