/* Revyu roadmap: the atom of circles. Needs the page's tokens (--night --paper --mute --serif --sans --pad --ease)
   and the .rb button family (../buttons.css). */
.rm { position: relative; overflow: hidden; color: var(--paper); --rm-band: 196px; touch-action: manipulation; }
.rm canvas { position: absolute; left: 0; top: 0; pointer-events: none; }
/* the glow is the picture again, soft, added on top (as on the site) */
.rm .rm-bloom { mix-blend-mode: screen; mix-blend-mode: plus-lighter; }
.rm-hits { position: absolute; inset: 0; }
.rm-hit { position: absolute; transform: translate(-50%, -50%); padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.rm-hit:focus { outline: none; }
.rm-hit:focus-visible { outline: 2px solid var(--paper); outline-offset: 1px; }
.rm-band { position: absolute; left: 0; right: 0; bottom: 0; height: var(--rm-band); display: grid; place-items: center; padding: 0 var(--pad); pointer-events: none; }
.rm-score { position: absolute; left: 0; right: 0; bottom: clamp(10px, 2.2vh, 20px); margin: 0; padding: 0 var(--pad); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 24px; font: 500 16px/1.2 var(--sans); letter-spacing: .02em; color: var(--paper); transition: opacity 240ms var(--ease); }
.rm-key { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.rm-key i { width: 11px; height: 11px; flex-shrink: 0; border-radius: 50%; background: var(--paper); }
.rm-k-next i { box-shadow: 0 0 0 2.5px var(--night), 0 0 0 4px var(--paper); margin: 0 4px; }
.rm-k-later i { background: none; border: 1.5px solid var(--paper); }
.rm-cue { white-space: nowrap; }
.rm-cue::before { content: "\00b7"; margin-right: 24px; }
/* the card: the mechanism, its figures, one line; Source and Close beside it */
.rm-card { pointer-events: auto; width: fit-content; max-width: min(100%, 940px); display: grid; grid-template-columns: minmax(0, auto) auto; column-gap: 40px; align-items: center; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 200ms var(--ease), transform 260ms var(--ease), visibility 0s linear 260ms; }
.rm-card:focus { outline: none; }
.rm-open .rm-card { opacity: 1; visibility: visible; transform: none; transition: opacity 200ms var(--ease), transform 260ms var(--ease), visibility 0s; }
.rm-open .rm-score { opacity: 0; }
.rm-kind { display: flex; align-items: center; gap: 9px; margin: 0 0 8px; font: 500 15px/1 var(--sans); color: var(--c, var(--paper)); }
.rm-kind i { width: 9px; height: 9px; flex-shrink: 0; border-radius: 50%; background: var(--c, var(--paper)); box-shadow: 0 0 10px 1px var(--c, var(--paper)); }
.rm-kind b { font-weight: 500; color: var(--paper); }
.rm-kind b::before { content: "\00b7"; margin-right: 9px; color: var(--mute); }
.rm-name { margin: 0 0 12px; font: 600 clamp(22px, min(2.2vw, 3.6vh), 32px)/1.08 var(--serif); letter-spacing: -0.01em; text-wrap: balance; }
.rm-stats { display: flex; gap: 6px clamp(18px, 2.6vw, 36px); margin: 0 0 13px; }
.rm-stat { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rm-stat b { font: 600 clamp(22px, min(2.1vw, 3.5vh), 30px)/1 var(--serif); color: var(--c, var(--paper)); font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; letter-spacing: -0.01em; }
.rm-stat span { font: 500 13px/1.2 var(--sans); color: var(--mute); max-width: 36ch; }
.rm-line { margin: 0; max-width: 62ch; font: 400 clamp(15px, min(1.2vw, 2.2vh), 18px)/1.35 var(--serif); text-wrap: pretty; }
.rm-line.rm-deep { font: 400 15px/1.45 var(--sans); color: var(--mute); }
.rm-acts { display: flex; gap: 8px; }
.rm-acts .rb { --tone: var(--c, var(--gold)); }
/* no graphics card: each button draws its own ring, so the roadmap still works */
.rm-nogl .rm-hit { border: 1.5px solid var(--c, var(--paper)); }
.rm-nogl .rm-hit[data-state="done"], .rm-nogl .rm-hit[data-state="next"], .rm-nogl .rm-hit[data-state="group"] { background: var(--c, var(--paper)); }
.rm-nogl .rm-hit[data-state="next"] { box-shadow: 0 0 0 3px var(--night), 0 0 0 4.5px var(--c, var(--paper)); }
@media (max-width: 760px) {
  /* on a phone the two buttons ride on the first row, so the figures and the line get the room */
  .rm-card { width: 100%; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "kind acts" "name name" "stats stats" "line line"; column-gap: 12px; row-gap: 0; align-content: center; }
  .rm-text { display: contents; }
  .rm-kind { grid-area: kind; margin: 0; align-self: center; } .rm-acts { grid-area: acts; }
  .rm-name { grid-area: name; margin: 4px 0 8px; font-size: clamp(20px, 5.6vw, 23px); } .rm-stats { grid-area: stats; gap: 6px 16px; margin-bottom: 8px; } .rm-line { grid-area: line; }
  .rm-stat { flex: 1 1 0; } .rm-stat b { font-size: clamp(19px, 5.4vw, 22px); } .rm-stat span { font-size: 12px; max-width: none; }
  .rm-line { font-size: 15px; line-height: 1.32; }
  .rm-score { font-size: 15px; gap: 6px 18px; }
  .rm-cue { flex-basis: 100%; text-align: center; }
  .rm-cue::before { content: none; }
  .rm-line.rm-deep { font-size: 13.5px; line-height: 1.36; }
}
@media (prefers-reduced-motion: reduce) { .rm-card, .rm-score { transition: none; } }
/* Nov 16, his note "these listings are so lame and dispalyed like a 3rd grader.. this needs to be my nerdy and data science":
   the card reads as a measurement. The kind row and every figure's working sit in a mono face; a rate carries its bar, its
   Wilson 95% band and, where there is one, a tick at the rate before. */
.rm-card { --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace; }
.rm-kind { font: 500 13px/1 var(--mono); letter-spacing: 0; }
.rm-kind i { width: 7px; height: 7px; border-radius: 1px; }
.rm-kind b { font-weight: 400; color: var(--mute); }
.rm-stats { gap: 10px clamp(22px, 3vw, 44px); flex-wrap: wrap; }
.rm-stat b { font: 500 clamp(26px, min(2.5vw, 4vh), 36px)/1 var(--mono); letter-spacing: -0.03em; }
.rm-stat span { font: 500 13px/1.25 var(--sans); color: var(--paper); opacity: 0.82; }
.rm-rate { min-width: min(220px, 40vw); }
.rm-bar { position: relative; display: block; height: 4px; margin-top: 4px; border-radius: 2px; background: rgba(239, 237, 231, 0.1); overflow: visible; }
.rm-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; background: var(--c, var(--paper)); box-shadow: 0 0 8px var(--c, var(--paper)); }
.rm-ci { position: absolute; top: -3px; bottom: -3px; border-left: 1px solid var(--paper); border-right: 1px solid var(--paper); background: rgba(239, 237, 231, 0.14); opacity: 0.7; z-index: 1; }
.rm-was { position: absolute; top: -5px; bottom: -5px; width: 2px; margin-left: -1px; background: var(--mute); z-index: 2; }
.rm-stat small { font: 400 11.5px/1.3 var(--mono); color: var(--mute); white-space: nowrap; }
.rm-meth { margin: 0 0 8px; font: 400 12px/1.35 var(--mono); color: var(--mute); }
@media (max-width: 760px) { .rm-card { grid-template-areas: "kind acts" "name name" "stats stats" "meth meth" "line line"; } .rm-meth { grid-area: meth; font-size: 11px; margin-bottom: 8px; } .rm-stat b { font-size: clamp(20px, 6vw, 24px); } .rm-rate { min-width: 0; flex: 1 1 100%; } .rm-stat small { font-size: 10.5px; } }

.rm-name { margin-bottom: 8px; } .rm-stats { margin-bottom: 10px; } .rm-line { max-width: 72ch; }
@media (min-width: 761px) { .rm-band { padding-bottom: 14px; } }
@media (max-width: 760px) { .rm-name { margin: 2px 0 6px; } .rm-stats { margin-bottom: 6px; } .rm-meth { margin-bottom: 6px; } .rm-band { padding-bottom: 8px; } }
@media (max-width: 760px) { .rm-rate { flex: 1 1 40%; } .rm-stat small { white-space: normal; } }
.rm-stat small i { font-style: normal; white-space: nowrap; } .rm-stat small .rm-cv::before { content: "\00a0\00a0\00b7\00a0\00a0"; }
@media (max-width: 760px) { .rm-stat small .rm-cv { display: block; } .rm-stat small .rm-cv::before { content: none; } }
