/* Hedonic treadmill lesson. Everything scoped under .ht-*. */
.ht-sc { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ht-note { text-align: center; font-size: 12px; color: var(--faint); }

/* the stare: a teal circle on gray, a black dot to hold the eyes still */
.ht-eye { position: relative; width: min(250px, 34vh); aspect-ratio: 1; border-radius: 18px; background: #bcbcbc; }
.ht-disc { position: absolute; inset: 17%; border-radius: 50%; background: #00c4c4; }
.ht-disc.gone { display: none; }
.ht-dot { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #000; }
.ht-count { min-height: 26px; font: 700 20px var(--mono); color: var(--text); text-align: center; }
.ht-count:not(:empty) { font-size: 14px; }

/* the gap chart */
.ht-panel { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 6px; }
.ht-read { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 12px; border-radius: 12px; background: var(--raised); border: 1.5px solid var(--line); }
.ht-read span { font-size: 13px; font-weight: 700; color: var(--dim); }
.ht-read b { font: 700 17px var(--sans); color: var(--text); transition: color .3s; }
.ht-read.up b { color: var(--mint); }
.ht-read.dn b { color: var(--red); }
.ht-chw { width: 100%; }
.ht-ch { display: block; width: 100%; height: auto; overflow: visible; }
.ht-ax { stroke: var(--line-strong); stroke-width: 1.5; }
.ht-have { fill: none; stroke: var(--gold); stroke-width: 3.5; stroke-linejoin: round; }
.ht-ghost { fill: none; stroke: var(--gold); stroke-width: 3.5; stroke-linejoin: round; opacity: .35; }
.ht-used { fill: none; stroke: var(--text); stroke-width: 2; stroke-dasharray: 5 4; opacity: .85; }
.ht-pos { fill: var(--mint); opacity: .38; stroke: none; }
.ht-neg { fill: var(--red); opacity: .42; stroke: none; }
.ht-tl, .ht-tt { font: 700 12px var(--sans); fill: var(--faint); }
.ht-tt { fill: var(--text); }
.ht-key { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; font-size: 12px; font-weight: 700; color: var(--dim); }
.ht-key .k::before { content: ''; display: inline-block; width: 18px; height: 0; margin-right: 6px; vertical-align: middle; }
.ht-key .have::before { border-top: 3.5px solid var(--gold); }
.ht-key .used::before { border-top: 2px dashed var(--text); }

/* breaks: two small charts */
.ht-pw { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 8px; }
.ht-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ht-pair text { font-size: 13px; }
.ht-pair .ht-chw { padding: 6px; border-radius: 12px; background: var(--raised); border: 1.5px solid var(--line); }
