/* Who Was Closer: the page a friend's link lands on.
   It asks for nothing, so it has no form, no field and no dialog of its own but the help sheet.
   Plain and flat on purpose: no countdown, nothing flashing, nothing moving by itself. */

.d-wrap { padding-bottom: 32px; }
.d-h1 { margin-top: 10px; font-family: var(--display); font-weight: 800; font-size: clamp(1.75rem, 7.4vw, 2.5rem); letter-spacing: -0.035em; line-height: 1.07; }
.d-lede { margin-top: 8px; font-size: 1.05rem; line-height: 1.4; }

/* the promise, where a careful person lands */
.d-safe { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; padding: 12px 14px; border-radius: 16px; background: var(--tint); color: var(--ink); font-size: 0.95rem; font-weight: 700; line-height: 1.35; }
.d-tick { flex: none; width: 22px; height: 22px; border-radius: 99px; background: var(--c); color: var(--on-c); font-size: 0.8rem; font-weight: 800; line-height: 22px; text-align: center; }
.d-safe-more { flex-basis: 100%; color: var(--soft); font-weight: 600; font-size: 0.875rem; }

.d-panel { margin-top: 18px; }
.d-state { font-size: 1rem; line-height: 1.4; }
.d-who { margin-top: 12px; display: grid; gap: 6px; }
.d-pair { display: flex; align-items: baseline; gap: 10px; font-size: 0.95rem; }
.d-pair-k { flex: none; color: var(--soft); font-weight: 600; }
.d-pair-v { font-weight: 700; overflow-wrap: anywhere; }

.d-go { margin-top: 16px; display: flex; align-items: center; gap: 12px; padding: 13px 16px 14px 18px; border-radius: 20px; background: var(--c); color: var(--on-c); text-decoration: none; box-shadow: 0 8px 20px rgba(21, 23, 43, .16); -webkit-tap-highlight-color: transparent; }
.d-go:active { transform: scale(0.985); }
.d-go-text { flex: 1; min-width: 0; display: block; }
.d-go-kicker { display: block; font-size: 0.82rem; font-weight: 700; line-height: 1.2; opacity: .88; }
.d-go-name { display: block; margin-top: 2px; font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; line-height: 1.1; }
.d-go svg { width: 26px; height: 26px; flex: none; }

.d-games { margin-top: 14px; display: grid; gap: 2px; list-style: none; }
.d-games li { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 0.95rem; }
.d-games li:first-child { border-top: 0; }
.d-games li a { font-weight: 700; color: var(--ink); text-decoration: none; }
.d-games li a:hover { text-decoration: underline; text-underline-offset: 3px; }
.d-games-w { margin-left: auto; flex: none; color: var(--soft); font-weight: 600; font-size: 0.85rem; }
.d-games li.s-won .d-games-w { color: var(--c); font-weight: 800; }

.d-demo, .d-steps { margin-top: 28px; }
.d-demo-h { font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; line-height: 1.2; }
.d-figure { margin-top: 12px; }
.d-ol { margin: 12px 0 0 1.15em; display: grid; gap: 8px; font-size: 0.98rem; line-height: 1.4; }
.d-ol b { font-weight: 800; }
.d-steps .quiet { margin-top: 14px; }

.d-setname { appearance: none; min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font-weight: 700; font-size: 0.9rem; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.d-setname:active { transform: scale(0.98); }

@media (prefers-reduced-motion: reduce) {
  .d-go:active, .d-setname:active { transform: none; }
}
@media (min-width: 760px) {
  .d-figure .duel-mini { max-width: 420px; }
}
@media (max-width: 350px) {
  .d-safe { padding: 10px 12px; font-size: 0.9rem; }
  .d-go-name { font-size: 1.3rem; }
}
