:root {
  color-scheme: light;
  --frame: #e7e7e7;
  --ink: #4e4b46;
  --ink-strong: #35332f;
  --wait: #fff;
  --wait-ink: #111;
  --muted: #686662;
  --quiet: #aaa8a4;
  --rule: #c6c5c2;
  --faint: #e9e9e7;
  --alert: #8c3a2b;
  /* One motion vocabulary: arrivals decelerate, moves ease both ways, presses settle without bounce. */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-press: cubic-bezier(.2, .8, .2, 1);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-kerning: normal;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--frame); color: var(--ink); }
::selection { background: var(--ink); color: var(--frame); }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
button, [role="slider"] { -webkit-tap-highlight-color: transparent; }
button:focus-visible, [role="slider"]:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
/* Pills get a ring that follows their shape and eases in instead of snapping on. */
.button:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--frame), 0 0 0 5px var(--ink); }
button:disabled { cursor: default; }
h1, h2, p { margin: 0; }
h1, h2 { font-weight: 400; letter-spacing: -.025em; }
strong { font-weight: 700; }
h1:focus, h2:focus { outline: none; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#app { min-height: 100svh; }
.screen {
  width: min(100% - 48px, 760px);
  min-height: 100svh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 0;
  text-align: center;
}

/* Start */
.intro, .start {
  --intro-hold: 2500ms;
  --intro-shrink: 1500ms;
  --intro-landing: calc(var(--intro-hold) + var(--intro-shrink));
  --intro-sentence: 600ms;
  --intro-pause: 1250ms;
  --intro-controls: calc(var(--intro-landing) + var(--intro-sentence) + var(--intro-pause));
}
.start h1 { font-size: clamp(22px, 2.5vw, 32px); line-height: 1.3; }
.start-word { display: inline-block; }
.intro { display: none; }
@keyframes intro-zoom {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(var(--intro-x, 0px), var(--intro-y, 0px), 0) scale(var(--intro-scale, 1)); }
}
@keyframes intro-hide { to { visibility: hidden; } }
@keyframes intro-land { from { opacity: 0; } to { opacity: 1; } }
@keyframes intro-enable { from { pointer-events: none; } to { pointer-events: auto; } }
@keyframes intro-fade { from { opacity: 0; } }
@keyframes intro-arrive { from { opacity: 0; transform: translateY(8px); } }
/* The large word is rendered at its full size and only transformed. The sentence keeps its
   final layout throughout; its real word replaces the overlay at the exact landing frame.
   CSS also reveals the normal opening if the module fails to load. */
@media (scripting: enabled) {
  .intro {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: clip;
    pointer-events: none;
    animation: intro-hide 0s var(--intro-landing) forwards;
  }
  .intro-word {
    font-size: min(27vw, 55svh);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.025em;
    white-space: nowrap;
    will-change: transform;
    animation: intro-zoom var(--intro-shrink) cubic-bezier(.65, 0, .25, 1) var(--intro-hold) both;
  }
  .start:not(.intro-complete) .start-word { animation: intro-land 0s var(--intro-landing) both; }
  .start:not(.intro-complete) .start-lead { animation: intro-fade var(--intro-sentence) var(--ease-out) var(--intro-landing) backwards; }
  .start:not(.intro-complete) > .button {
    animation: intro-arrive 750ms var(--ease-out) var(--intro-controls) backwards,
      intro-enable 0s var(--intro-controls) both;
  }
  .start:not(.intro-complete) > .sound-note,
  .start:not(.intro-complete) > .privacy-note { animation: intro-arrive 750ms var(--ease-out) var(--intro-controls) backwards; }
}

/* Buttons */
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding: 13px 30px 13px 28px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -.01em;
  transition: background-color .2s ease, opacity .35s ease, transform .4s var(--ease-press), box-shadow .25s var(--ease-out);
}
.button:hover:enabled { background: var(--ink-strong); }
.button:active:enabled { transform: scale(.96); transition-duration: .2s, .35s, .1s, .25s; }
.button:disabled { opacity: .32; }
.arrow {
  flex: none;
  width: 30px;
  height: 14px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.arrow path { transform-box: fill-box; transition: transform .45s var(--ease-out); }
.arrow .shaft { transform-origin: left center; }
/* On hover the arrow reaches forward: the head leads, the shaft stretches after it. */
@media (hover: hover) {
  .button:hover:enabled .arrow .head { transform: translateX(4px); }
  .button:hover:enabled .arrow .shaft { transform: scaleX(1.15); }
}
.start .button { margin-top: 42px; }
.sound-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
}
.sound-icon { width: 21px; height: 21px; flex: none; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sound-icon .speaker { fill: currentColor; stroke: none; }
.privacy-note { margin-top: 9px; color: var(--muted); font-size: 13px; line-height: 1.5; text-wrap: balance; }
.privacy-note a, .privacy-page a, .results-privacy a { color: inherit; text-underline-offset: .19em; text-decoration-thickness: 1px; }
.privacy-note a:hover, .privacy-page a:hover, .results-privacy a:hover { color: var(--ink-strong); }
.privacy-note a:focus-visible, .privacy-page a:focus-visible, .results-privacy a:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 2px; }
/* Once the note has arrived, the speaker sounds: its two waves ripple out, one after the other. */
@keyframes sound-out { from { opacity: 0; transform: translateX(-3px); } }
.start:not(.intro-complete) .wave { animation: sound-out .45s var(--ease-out) backwards; }
.start:not(.intro-complete) .wave-1 { animation-delay: calc(var(--intro-controls) + 200ms); }
.start:not(.intro-complete) .wave-2 { animation-delay: calc(var(--intro-controls) + 300ms); }
.error { max-width: 480px; font-size: 14px; line-height: 1.5; color: var(--alert); text-wrap: balance; }
.error:not(:empty) { margin-top: 24px; }

/* Waiting */
.waiting, body:has(.waiting) { background: var(--wait); color: var(--wait-ink); }
.nothing, .nothing * { cursor: none !important; }
.countdown { --reel: clamp(66px, 13vw, 132px); display: flex; justify-content: center; gap: calc(var(--reel) * .13); }
.digit-reel {
  position: relative;
  flex: none;
  width: var(--reel);
  height: calc(var(--reel) * 1.9);
  overflow: hidden;
  border: 3px solid var(--wait-ink);
  border-radius: calc(var(--reel) * .3);
  /* The drum curves away from the light: a whisper of shade towards the rims. */
  background: linear-gradient(#e9e9e7, #fbfbfa 24%, #fff 42%, #fff 58%, #fbfbfa 76%, #e9e9e7);
}
.digit-reel canvas { display: block; width: 100%; height: 100%; }
/* A soft occlusion where the drum disappears behind the frame. */
.digit-reel::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 calc(var(--reel) * .09) calc(var(--reel) * .09) calc(var(--reel) * -.07) rgb(0 0 0 / .1),
    inset 0 calc(var(--reel) * -.09) calc(var(--reel) * .09) calc(var(--reel) * -.07) rgb(0 0 0 / .1);
  pointer-events: none;
}
.bar { width: min(100%, 360px); height: 10px; border-radius: 999px; background: var(--faint); overflow: hidden; }
.bar-fill { width: 100%; height: 100%; border-radius: inherit; background: var(--wait-ink); transform: scaleX(0); transform-origin: left; }
.wait-copy { max-width: 390px; font-size: clamp(22px, 3vw, 28px); line-height: 1.4; letter-spacing: -.02em; text-wrap: balance; transition: color .35s ease; }
.key {
  position: relative;
  display: inline-block;
  min-width: 5.4em;
  margin: 0 .1em;
  padding: .02em .6em .08em;
  border: 1px solid #d4d4d1;
  border-radius: .42em;
  background: #fafaf9;
  box-shadow: 0 .09em 0 #d4d4d1;
  font: inherit;
  letter-spacing: -.01em;
  transition: transform .28s var(--ease-press), box-shadow .28s var(--ease-press), background-color .28s ease, color .28s ease, border-color .28s ease;
}
/* One ring leaves the key or the finger at the moment contact begins. */
.ripple { position: absolute; inset: -1px; border: 2px solid var(--wait-ink); border-radius: inherit; pointer-events: none; }
.touch-mark {
  position: fixed;
  left: 0;
  top: 0;
  width: 88px;
  height: 88px;
  margin: -44px 0 0 -44px;
  border-radius: 50%;
  background: rgb(17 17 17 / .07);
  box-shadow: inset 0 0 0 2px rgb(17 17 17 / .22);
  opacity: 0;
  pointer-events: none;
}
.touch-mark.is-visible { opacity: 1; }
.queue-display { display: flex; flex-direction: column; align-items: center; }
.queue-label, .wait-caption { color: var(--muted); font-size: 16px; line-height: 1.5; }
.queue-number {
  display: grid;
  place-items: center;
  width: 80px;
  height: 132px;
  margin: 24px 0;
  overflow: hidden;
  border: 3px solid var(--wait-ink);
  border-radius: 27px;
  font-size: 38px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.queue-number > span { grid-area: 1 / 1; }
.reading { max-width: 560px; font-size: clamp(18px, 2vw, 22px); line-height: 1.65; letter-spacing: -.015em; white-space: pre-line; text-align: left; hyphens: auto; text-wrap: pretty; }
.reading-screen { justify-content: flex-start; padding-top: max(56px, 14svh); padding-bottom: 56px; }
.untangle { position: relative; width: min(80vw, 54svh, 390px); }
.untangle-title { font-size: clamp(24px, 3vw, 30px); line-height: 1.2; letter-spacing: -.025em; }
.untangle-instruction { margin: 9px 0 22px; color: var(--muted); font-size: 15px; line-height: 1.45; text-wrap: balance; }
.untangle-board { position: relative; width: 100%; aspect-ratio: 1; }
.untangle-lines, .untangle-points { position: absolute; inset: 0; width: 100%; height: 100%; }
.untangle-lines { overflow: visible; pointer-events: none; }
.untangle-line { stroke: #b8b7b3; stroke-width: .62; stroke-linecap: round; transition: stroke .16s ease; }
.untangle-line.is-crossed { stroke: var(--wait-ink); }
.untangle-crossing { fill: white; stroke: var(--wait-ink); stroke-width: .6; }
.untangle-dot {
  position: absolute;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  transform: translate(-50%, -50%);
  touch-action: none;
  cursor: grab;
}
.untangle-dot::before {
  content: '';
  display: block;
  width: 22px;
  height: 22px;
  margin: auto;
  border: 2px solid var(--wait-ink);
  border-radius: 50%;
  background: white;
  transition: transform .18s var(--ease-press), background-color .18s ease, box-shadow .18s ease;
}
.untangle-dot.is-dragging { cursor: grabbing; z-index: 1; }
.untangle-dot.is-dragging::before { transform: scale(1.25); background: var(--wait-ink); box-shadow: 0 0 0 7px white; }
.untangle-dot:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--wait-ink); }
@media (hover: hover) {
  .untangle-dot:hover::before { transform: scale(1.13); }
.untangle-dot.is-dragging:hover::before { transform: scale(1.25); }
}
.untangle-board.is-solved .untangle-line { stroke: var(--wait-ink); }
.untangle-board.is-solved .untangle-dot::before { background: var(--wait-ink); transform: scale(1.08); }
.untangle-score { position: absolute; right: 3%; bottom: -12px; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; opacity: 0; transition: opacity .2s ease; }
.untangle-score.is-visible { opacity: 1; }
.holding, .holding * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: none; }
.holding.is-held .wait-copy { color: var(--muted); }
/* Pressed: the key goes down and fills at once (no easing on the way in), and springs back on release. */
.holding.is-held .key {
  transform: translateY(.09em) scale(.97);
  box-shadow: 0 0 0 #d4d4d1;
  border-color: var(--wait-ink);
  background: var(--wait-ink);
  color: #fff;
  transition-duration: .06s;
}

/* The breath is a change in space: one large, quiet aperture in the same white
   room as every other wait. There is no illustration or progress measure. */
.breathing-screen { width: 100%; height: 100svh; min-height: 100svh; padding: 0; overflow: hidden; }
.breathing-scene { position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--wait); }
.breathing-title {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 0;
  width: 100%;
  padding: 0 24px;
  display: grid;
  place-items: center;
  translate: 0 -50%;
  color: var(--ink-strong);
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.052em;
}
.breathing-label { grid-area: 1 / 1; opacity: 0; transform: translateY(8px); transition: opacity .7s ease, transform .85s var(--ease-out); }
.breathing-label.is-current { opacity: 1; transform: none; }
.breath-field { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.breath-halo, .breath-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(120vw, 112svh);
  aspect-ratio: 1;
  border-radius: 50%;
  translate: -50% -50%;
  will-change: transform;
}
.breath-halo { background: radial-gradient(circle, rgb(78 75 70 / .065) 0, rgb(78 75 70 / .025) 45%, transparent 72%); transform: scale(.59); }
.breath-ring { border: 1px solid rgb(78 75 70 / .48); transform: scale(.52); }
.breath-ring::before, .breath-ring::after { content: ''; position: absolute; border: 1px solid rgb(78 75 70 / .16); border-radius: 50%; }
.breath-ring::before { inset: 11%; }
.breath-ring::after { inset: 23%; border-color: rgb(78 75 70 / .09); }

/* The conversation belongs to the site itself; there is no simulated person
   or usable message field. The small line of context makes that clear. */
.reply-screen { max-width: 520px; }
.reply-scene { width: 100%; transform: translateY(-1.5svh); text-align: left; }
.reply-header { display: flex; align-items: center; gap: 15px; padding: 0 2px 20px; border-bottom: 1px solid #deddda; animation: reply-enter .75s var(--ease-out) both; }
.reply-avatar { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 50%; background: #eae8e4; color: var(--ink-strong); font-size: 19px; font-weight: 700; letter-spacing: -.07em; }
.reply-name { color: var(--ink-strong); font-size: 20px; font-weight: 700; line-height: 1.25; letter-spacing: -.025em; }
.reply-fiction { margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.35; letter-spacing: .005em; }
.reply-thread { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; min-height: 260px; padding: 50px 0 0; }
.reply-prompt, .reply-incoming { font-size: clamp(19px, 3vw, 23px); line-height: 1.3; letter-spacing: -.018em; }
.reply-prompt { align-self: flex-end; max-width: 82%; padding: 17px 23px 18px; border-radius: 23px 23px 7px 23px; background: var(--ink-strong); color: #fff; animation: reply-enter .7s var(--ease-out) .2s both; }
.reply-incoming { position: relative; width: 96px; height: 68px; max-width: 82%; border-radius: 23px 23px 23px 7px; background: #efeeeb; transition: width .72s var(--ease-out); animation: reply-enter .7s var(--ease-out) .65s both; }
.reply-incoming.has-replied { width: 240px; }
.reply-typing, .reply-answer { position: absolute; top: 50%; left: 23px; translate: 0 -50%; }
.reply-typing { display: flex; gap: 7px; transition: opacity .2s ease; }
.reply-dot { width: 8px; height: 8px; border-radius: 50%; background: #83807a; animation: reply-dot 1.35s ease-in-out infinite; }
.reply-dot:nth-child(2) { animation-delay: .16s; }
.reply-dot:nth-child(3) { animation-delay: .32s; }
.reply-answer { color: var(--ink-strong); opacity: 0; white-space: nowrap; transform: translateY(6px); transition: opacity .38s ease .22s, transform .55s var(--ease-out) .22s; }
.reply-incoming.has-replied .reply-typing { opacity: 0; }
.reply-incoming.has-replied .reply-answer { opacity: 1; transform: none; }
@keyframes reply-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes reply-dot { 0%, 55%, 100% { opacity: .42; transform: translateY(0); } 26% { opacity: 1; transform: translateY(-5px); } }

/* Question */
.question { max-width: 480px; }
.step { display: flex; gap: 6px; margin-bottom: 36px; }
.step-segment { width: 20px; height: 3px; border-radius: 999px; background: var(--rule); overflow: hidden; }
.step-segment > i { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.step-segment.done > i, .step-segment.current > i { transform: none; }
.question h2 { max-width: 400px; font-size: clamp(26px, 3vw, 32px); line-height: 1.25; text-wrap: balance; }
.estimate { min-height: 104px; display: flex; align-items: center; justify-content: center; margin-top: 20px; font-variant-numeric: tabular-nums; }
.estimate:empty::before { content: '—'; color: var(--quiet); font-size: 32px; }
.estimate-value { font-size: 48px; line-height: 1; letter-spacing: -.035em; }
.estimate .unit { margin-left: 6px; font-size: 20px; letter-spacing: 0; color: var(--muted); }
.slider { position: relative; width: 100%; height: 48px; border-radius: 999px; touch-action: none; cursor: pointer; }
.slider:focus-visible { outline-offset: 2px; }
.slider.dragging { cursor: grabbing; }
.slider-track, .slider-fill { position: absolute; left: 0; right: 0; top: 22px; height: 3px; border-radius: 999px; }
.slider-track { background: var(--rule); transform-origin: left; transition: background-color .25s ease; }
.slider-fill { background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out); }
.slider-ghost, .slider-handle { position: absolute; left: 0; border-radius: 50%; translate: -50% 0; pointer-events: none; }
.slider-ghost { top: 16px; width: 15px; height: 15px; background: var(--ink); opacity: 0; transition: opacity .2s ease; }
.slider-handle {
  top: 12px;
  width: 23px;
  height: 23px;
  border: 3px solid var(--frame);
  background: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
  transition: left .45s var(--ease-out), transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
@media (hover: hover) {
  .slider:hover:not([aria-disabled="true"]) .slider-track { background: #b4b2ae; }
  .slider.is-pointing:not(.dragging, [aria-disabled="true"]) .slider-ghost { opacity: .2; }
  .slider:hover .slider-handle { transform: scale(1.1); }
}
.slider.dragging .slider-fill { transition: none; }
.slider.dragging .slider-handle { transition-property: transform, box-shadow; transform: scale(1.2); box-shadow: 0 0 0 1px var(--ink), 0 0 0 9px rgb(78 75 70 / .1); }
.slider[aria-disabled="true"] { cursor: default; }
.slider-labels { display: flex; width: 100%; justify-content: space-between; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.slider-hint { max-width: 290px; font-size: 13px; line-height: 1.5; color: var(--muted); margin-top: 24px; text-wrap: balance; transition: opacity .5s ease; }
.slider-hint.is-done { opacity: 0; }
.estimate-value { transition: color .25s ease; }
.estimate-value.is-preview, .estimate-value.is-preview .unit { color: var(--quiet); }
.question .button { margin-top: 28px; }

/* Resolution */
.reveal h1, .results h1 { max-width: 550px; font-size: clamp(26px, 3vw, 34px); line-height: 1.3; text-wrap: balance; }
.reveal .button { margin-top: 24px; }
.results { justify-content: flex-start; padding-top: clamp(56px, 9vh, 100px); padding-bottom: 40px; }
.chart { width: 100%; margin-top: 52px; text-align: left; }
.legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 24px; font-size: 13px; color: var(--muted); margin-bottom: 36px; }
.legend span { display: flex; align-items: center; gap: 8px; }
.legend-own, .legend-mean { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.legend-mean { border: 1px solid var(--ink); background: var(--frame); }
.chart-axis, .chart-row { display: grid; grid-template-columns: 155px minmax(0, 1fr); gap: 20px; }
.axis-line { display: flex; justify-content: space-between; position: relative; font-size: 12px; color: var(--muted); padding-bottom: 12px; font-variant-numeric: tabular-nums; }
.axis-line span { width: 0; display: flex; justify-content: center; white-space: nowrap; }
.axis-line span:last-child { justify-content: flex-end; }
.axis-line .axis-reference { color: var(--ink); font-weight: 700; }
.chart-row { min-height: 61px; align-items: stretch; }
.row-label { font-size: 14px; align-self: center; line-height: 1.35; transition: color .2s ease; }
.row-plot { --plot: var(--frame); position: relative; display: flex; align-items: center; min-width: 0; border-top: 1px solid var(--rule); background: var(--plot); transition: background-color .25s ease; }
.chart-row:has(+ .other-first) .row-plot, .chart-row:last-of-type .row-plot { border-bottom: 1px solid var(--rule); }
.reference { position: absolute; top: 0; bottom: -1px; left: calc(100% / 3); border-left: 1px solid var(--ink); opacity: .35; transform-origin: top; }
.spread { position: absolute; top: 29px; height: 1px; background: var(--ink); }
.spread::before, .spread::after { content: ''; position: absolute; top: -3px; height: 7px; border-left: 1px solid var(--ink); }
.spread::before { left: 0; }
.spread::after { right: 0; }
.average-point, .own-point { position: absolute; top: 29px; translate: -50% -50%; border-radius: 50%; }
.average-point { width: 14px; height: 14px; border: 1px solid var(--ink); background: var(--plot); transition: background-color .25s ease; }
.own-point { width: 8px; height: 8px; background: var(--ink); z-index: 1; }
.average-point::after, .own-point::after {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  translate: -50% 0;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .3s var(--ease-out);
}
.own-point::after { bottom: calc(100% + 6px); transform: translateY(3px); color: var(--ink); font-weight: 700; }
.average-point::after { top: calc(100% + 5px); transform: translateY(-3px); color: var(--muted); }
@media (hover: hover) {
  .chart-row:hover .row-label { color: var(--ink-strong); }
  .chart-row:hover .row-plot { --plot: #e1e1e0; }
  .chart-row:hover .own-point::after, .chart-row:hover .average-point::after { opacity: 1; transform: none; }
  .other:hover .row-label, .other:hover .spread, .other:hover .average-point { opacity: .85; }
}
.with-own:has(.insufficient) .own-point { top: 19px; }
.insufficient { font-size: 12px; color: var(--muted); position: relative; background: var(--plot); padding-right: 8px; pointer-events: none; transition: background-color .25s ease; }
.with-own .insufficient { align-self: flex-end; margin-bottom: 5px; }
.other .row-label, .other .spread, .other .average-point { opacity: .5; transition: opacity .2s ease, color .2s ease; }
.other .insufficient { color: var(--quiet); }
.other-first { margin-top: 22px; }
.chart-note { margin-top: 20px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.footer { width: 100%; border-top: 1px solid var(--rule); margin-top: 40px; padding-top: 28px; font-size: 13px; line-height: 1.7; text-wrap: balance; }
.footer h2 { font-size: 18px; font-weight: 700; letter-spacing: -.015em; margin-bottom: 10px; }
.footer .credits { margin-top: 20px; color: var(--muted); }
.results-privacy { margin-top: 14px; color: var(--muted); }
.participation-id { margin-top: 10px; color: var(--muted); }
.participation-id summary { cursor: pointer; text-decoration: underline; text-underline-offset: .19em; }
.participation-id code { display: inline-block; margin-top: 6px; font-size: 11px; overflow-wrap: anywhere; }

/* Privacy information stays in the same visual language, with room to read. */
.privacy-page { width: min(100% - 48px, 620px); margin: 0 auto; padding: clamp(42px, 9vh, 90px) 0 80px; color: var(--ink); }
.privacy-nav { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 13px; }
.privacy-page h1 { margin-top: clamp(48px, 10vh, 96px); font-size: clamp(36px, 7vw, 58px); line-height: 1.08; letter-spacing: -.045em; }
.privacy-intro { max-width: 530px; margin-top: 24px; font-size: clamp(18px, 2.5vw, 21px); line-height: 1.5; }
.privacy-page section { margin-top: 42px; padding-top: 22px; border-top: 1px solid var(--rule); }
.privacy-page h2 { font-size: 17px; font-weight: 700; letter-spacing: -.015em; }
.privacy-page section p { margin-top: 12px; font-size: 15px; line-height: 1.7; }
.privacy-page footer { margin-top: 58px; color: var(--muted); font-size: 13px; line-height: 1.6; }

@media (max-width: 520px) {
  .screen { width: calc(100% - 40px); padding-top: 40px; padding-bottom: 40px; }
  .start h1 { font-size: clamp(19px, 5.6vw, 24px); white-space: nowrap; }
  .start .button { margin-top: 30px; }
  .button { min-height: 52px; padding: 10px 24px 10px 22px; gap: 11px; font-size: 20px; }
  .arrow { width: 25px; height: 12px; }
  .sound-note { font-size: 14px; margin-top: 18px; }
  .privacy-note { font-size: 12px; }
  .sound-icon { width: 19px; height: 19px; }
  .reading-screen { padding-top: 56px; }
  .breathing-screen { width: 100%; padding: 0; }
  .breathing-title { font-size: clamp(38px, 10vw, 50px); }
  .reply-screen { width: calc(100% - 48px); }
  .reply-thread { padding-top: 44px; }
  .question { width: calc(100% - 64px); }
  .step { margin-bottom: 28px; }
  .chart { margin-top: 36px; }
  .legend { font-size: 11px; gap: 10px 18px; margin-bottom: 30px; }
  .chart-axis, .chart-row { grid-template-columns: 94px minmax(0, 1fr); gap: 12px; }
  .row-label { font-size: 12px; }
  .insufficient { font-size: 10px; }
  .axis-line { font-size: 10px; }
  .chart-note { font-size: 11px; }
}
@media (max-width: 380px) {
  .axis-line span:nth-child(even) { visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  /* Keep every change legible as a cross-fade; drop travel, scale and blur. */
  .intro { display: none; }
  .start:not(.intro-complete) .start-word,
  .start:not(.intro-complete) .start-lead,
  .start:not(.intro-complete) > .button,
  .start:not(.intro-complete) > .sound-note {
    animation: intro-fade 180ms ease-out backwards;
  }
  .start:not(.intro-complete) .wave { animation: none; }
  .button:active:enabled, .untangle-dot:hover::before, .slider:hover .slider-handle,
  .slider.dragging .slider-handle, .holding.is-held .key { transform: none; }
  .untangle-dot::before, .untangle-line, .untangle-score { transition-duration: .01s; }
  .button:hover:enabled .arrow path { transform: none; }
  @keyframes sound-out { from { opacity: 0; } }
  .slider-handle { transition-property: box-shadow; }
  .slider-fill { transition: none; }
  .breath-halo, .breath-ring { will-change: auto; transform: scale(.85) !important; }
  .breathing-label { transform: none; transition: opacity .25s ease; }
  .reply-header, .reply-prompt, .reply-incoming { animation: reply-fade .2s ease both; }
  .reply-incoming { transition: none; }
  .reply-answer { transform: none; transition: opacity .2s ease; }
  .reply-dot { animation: none; opacity: .75; }
}
@keyframes reply-fade { from { opacity: 0; } to { opacity: 1; } }
