/* The contact reveal. Colours come from the page (--ink, --muted, --gold-2, --hair-2) with fallbacks. */
.cr { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.cr-stage { position: relative; display: block; }
.cr-stage.cr-sealed { cursor: pointer; }
.cr-canvas { position: absolute; left: 0; top: 0; display: block; transition: opacity 0.2s linear; }
.cr-seal { min-height: 44px; padding: 0 18px; border: 1px solid var(--hair-2, rgba(236, 231, 220, 0.22)); border-radius: 999px;
  background: transparent; color: var(--ink-2, #d3cec3); font: 500 15px/1 "IBM Plex Mono", ui-monospace, Menlo, monospace;
  letter-spacing: 0.02em; cursor: pointer; transition: border-color 0.2s ease, color 0.2s ease; }
.cr-seal:hover { border-color: var(--gold, #c8a36a); color: var(--gold-2, #e4c48a); }
.cr-seal:focus-visible { outline: 2px solid var(--gold-2, #e4c48a); outline-offset: 3px; }
.cr-addr { position: absolute; top: 0; white-space: nowrap; letter-spacing: normal; color: var(--ink, #ece7dc); text-decoration: none;
  user-select: text; cursor: pointer; }
/* the underline is drawn here so it can drain toward the reseal (--cr-left from 1 to 0) */
.cr-addr::after { content: ""; position: absolute; left: 0; right: 0; bottom: 22%; height: 1px; background: var(--gold, #c8a36a);
  transform-origin: left center; transform: scaleX(0); opacity: 0; transition: transform 0.6s cubic-bezier(.2, .8, .2, 1), opacity 0.4s ease; }
.cr-addr.cr-on::after { transform: scaleX(1); opacity: 0.9; }
.cr-addr.cr-on.cr-cue::after { transform: scaleX(var(--cr-left, 1)); transition: transform 0.25s linear, opacity 0.4s ease; }
.cr-addr:hover::after { opacity: 1; }
.cr-addr:focus-visible { outline: 2px solid var(--gold-2, #e4c48a); outline-offset: 4px; border-radius: 4px; }
.cr-out { display: flex; gap: 10px; align-items: center; min-height: 44px; opacity: 0; transform: translateY(6px);
  transition: opacity 0.45s cubic-bezier(.2, .8, .2, 1), transform 0.6s cubic-bezier(.2, .8, .2, 1); }
.cr-out.cr-in { opacity: 1; transform: none; }
.cr-out.cr-now { transition: none; }
.cr-copy { min-height: 44px; padding: 0 16px; border: 1px solid var(--hair-2, rgba(236, 231, 220, 0.22)); border-radius: 999px;
  background: transparent; color: var(--ink-2, #d3cec3); font: 500 15px/1 "IBM Plex Mono", ui-monospace, Menlo, monospace; cursor: pointer; }
.cr-copy:hover { border-color: var(--gold, #c8a36a); color: var(--gold-2, #e4c48a); }
.cr-copy:focus-visible { outline: 2px solid var(--gold-2, #e4c48a); outline-offset: 3px; }
.cr-copy.cr-done { border-color: #7fd18b; color: #7fd18b; }
.cr-count { display: block; min-height: 18px; margin-top: -4px; font: 500 13px/18px "IBM Plex Mono", ui-monospace, Menlo, monospace;
  letter-spacing: 0.03em; color: var(--muted, #9a9386); opacity: 0; transition: opacity 0.35s ease, color 0.3s ease; font-variant-numeric: tabular-nums; }
.cr-count.cr-on { opacity: 1; }
.cr-count.cr-solved { color: var(--gold-2, #e4c48a); }
.cr-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; margin: 0; }
@media (prefers-reduced-motion: reduce) { .cr-out, .cr-canvas, .cr-label, .cr-addr { transition: none; } }
