/* EX-12 Reckon (js/ex/reckon/view.js). The view, the circle, the turn row, subtitles and the map are the
   first-person kit's (css/ex/homing.css, scoped by .ex-fp); here only what Reckon adds: the walk-back
   buttons (Walk is the big one, in the thumb zone), the locked turn controls while away from the route's
   end, and the chart of the last angle errors. */

.ex-reckon .ex-reckon-hold {
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.ex-reckon .ex-fp-actions > .ex-reckon-walk { flex: 2 1 0; min-height: 4rem; font-size: var(--fs-md, 1rem); font-weight: 600; } /* 64 px in the thumb zone (R1 §7.1) */
.ex-reckon .ex-fp-actions > .ex-reckon-back { flex: 1 1 0; }
.ex-reckon .ex-fp-actions > .ex-reckon-here { flex: 1.2 1 0; min-height: 4rem; }
.ex-reckon .ex-reckon-hold:active:not(:disabled) { background: var(--surface-2, #E9ECEE); }
/* away from the route's end the direction is set: the circle and the fine turns rest */
.ex-reckon .ex-fp.is-answering.is-walked .ex-fp-dialbox, .ex-reckon .ex-fp.is-answering.is-distance .ex-fp-dialbox { opacity: 0.45; }
.ex-reckon .ex-fp.is-walked.is-answering .ex-fp-stage, .ex-reckon .ex-fp.is-distance.is-answering .ex-fp-stage { cursor: default; }
.ex-reckon .ex-fp.is-distance .ex-fp-fine { visibility: hidden; }
.ex-reckon .ex-reckon-keyswalk[hidden] { display: none; }
/* walking back, the readout says the direction is set and how to turn again (two lines on a phone): the
   room is kept from the start, so Walk, Back and Here never move under the finger */
.ex-reckon .ex-fp.is-return .ex-fp-readout { line-height: 1.3; min-height: 2.6em; }

/* the last angle errors: dots (filled when right, open when wrong) against the tolerance band */
.ex-reckon .ex-reckon-chart { margin: 0; }
.ex-reckon .ex-reckon-chart[hidden] { display: none; }
.ex-reckon .ex-reckon-chartsvg { display: block; max-width: 18rem; height: auto; margin: 0 auto; }
.ex-reckon .ex-reckon-band { fill: var(--right-wash, #E3EFE5); }
.ex-reckon .ex-reckon-zero { stroke: var(--right, #2A7239); stroke-width: 1; }
.ex-reckon .ex-reckon-dot { stroke-width: 1.4; }
.ex-reckon .ex-reckon-dot.is-right { fill: var(--ink-2, #454B52); stroke: var(--ink-2, #454B52); }
.ex-reckon .ex-reckon-dot.is-wrong { fill: var(--surface, #FFFFFF); stroke: var(--ink-2, #454B52); }
.ex-reckon .ex-reckon-bias { font-weight: 500; color: var(--ink, #1A1D21); }
.ex-reckon .ex-reckon-chartnote { margin: var(--s1, 0.25rem) 0 0; font-size: var(--fs-xs, 0.8125rem); line-height: 1.4; color: var(--ink-3, #5D646C); text-align: center; }


/* walking back, the controls under the view are taller than the kit's (the 64 px Back / Walk / Here row and
   two lines of readout): their room is kept so that a Try or scored item fits 360 × 640 (B2: it ended 10 px
   below with the kit's 17rem) */
@media (max-width: 42rem) {
  .ex-reckon .ex-fp.is-return .ex-fp-stage { max-height: min(42svh, calc(var(--pl-avail, 100vh) - 18.25rem)); }
}
@media (max-width: 42rem) and (min-height: 43.75rem) {
  .ex-reckon .ex-fp.is-return .ex-fp-dialbox { width: clamp(8.5rem, calc(var(--pl-avail, 100vh) - 75vw - 14.25rem), 13rem); }
}
