.experiment-back { margin-left: auto; white-space: nowrap; }
.experiment { max-width: 980px; padding-block: 45px 65px; }
.experiment .eyebrow { margin-bottom: 8px; }
.experiment h1 { margin: 0; font: 500 clamp(29px, 5vw, 48px)/1.35 var(--serif); }
.experiment h1 span { display: inline-block; }
.experiment i { font-family: Georgia, "Times New Roman", serif; }
.experiment-lead { margin: 15px 0 27px; color: var(--muted); }
.experiment-board { padding: 20px 24px; background: #fcfbf7; border: 1px solid var(--line); }
.experiment-tools { display: flex; align-items: center; justify-content: space-between; gap: 9px 15px; flex-wrap: wrap; }
.experiment-tools > span { color: var(--muted); font-size: 13px; }
.experiment-tools > div { display: flex; gap: 7px; flex-wrap: wrap; }
.experiment-tools button { min-height: 44px; padding: 6px 15px; }
.experiment-tools button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
#circumcenter-figure { display: block; width: 100%; height: clamp(285px, 48vw, 410px); touch-action: none; overflow: hidden; }
#circumcenter-figure text { fill: var(--ink); paint-order: stroke; stroke: #fcfbf7; stroke-width: 4; stroke-linejoin: round; }
#circumcenter-figure .math-label { font: italic 20px Georgia, "Times New Roman", serif; }
#base-guide, #bisector-guide { stroke: #a8b2a8; stroke-width: 1.2; stroke-dasharray: 5 6; }
#bisector-guide { stroke: #b08172; }
#triangle-shape { fill: #dbe8e38c; stroke: #38534c; stroke-width: 2; stroke-linejoin: round; }
#circumcircle { fill: none; stroke: #527d71; stroke-width: 1.6; }
#radius-lines { fill: none; stroke: #b36a56; stroke-width: 1.3; stroke-dasharray: 4 4; }
.fixed-point { fill: var(--ink); }
#center-mark circle { fill: var(--red); }
#point-c { fill: #236881; }
#point-c-halo { fill: #d4e8ed; }
#point-c-hit { cursor: grab; }
#moving-handle[data-dragging] #point-c-hit { cursor: grabbing; }
#experiment-result { border-top: 1px solid var(--line); min-height: 3em; margin: 0; padding-block: 8px; font-size: 14px; }
.experiment-sliders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.experiment-sliders label { display: grid; min-width: 0; }
.experiment-sliders label > span { display: flex; justify-content: space-between; font-size: 13px; }
.experiment-sliders output { font: 13px var(--mono); align-self: center; }
.experiment-sliders input[type=range] { width: 100%; height: 34px; margin: 0; }
.experiment-note { max-width: 68ch; margin-top: 36px; }
.experiment-note h2 { font-size: 26px; }
@media (max-width: 540px) {
  .experiment { padding-top: 32px; }
  .experiment-board { padding: 12px 11px; }
  .experiment-tools { gap: 5px; }
  .experiment-tools button { padding-inline: 12px; }
  .experiment-sliders { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
