/* Motion clarity test: layout of its controls (the look comes from glass-controls.css and test-ui.css).
   Under the picture: mode menu, object (steamboat / snail / train), direction, speed presets (in the cadence mode:
   step per frame and cadence), Settings, pause, fullscreen. Settings (pursuit marks, background, high precision) open in a popover, a bottom sheet on phones,
   and sit open above the capsule in fullscreen. */
.mct-df { display: flex; gap: 8px; }
.mct [data-k="fig"] svg { width: 22px; height: 22px; fill: currentColor; }
.mct [data-k="fig"] .mct-ico-ln { fill: none; stroke: rgba(0,0,0,.55); stroke-width: 1.3; stroke-linecap: round; }
.mct [data-k="fig"] .mct-ico-st { stroke: currentColor; stroke-width: 1.4; }
.mct [data-k="dir"] svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.mct-scene { padding-left: 10px; }
.mct-scene-name { min-width: 5.8em; text-align: left; }
.mct-presets > button { min-width: 46px; padding: 0 9px; }
.mct-ppf > button { min-width: 38px; }
.mct .tst-grp[hidden] { display: none; }

/* the readout's warning when the browser runs below 50 Hz */
.mct-warn { display: block; margin-top: 4px; color: #ff9f0a; }
.mct-warn[hidden] { display: none; }
.tst-fs .mct-out:has(.mct-warn:not([hidden])) { max-width: min(560px, calc(100% - 48px)); border-radius: 14px; }

/* muted: a setting the scene doesn't use */
.mct-sec { transition: opacity .2s; }
.mct-sec.mct-off { opacity: .35; }
.mct button:disabled { cursor: default; }
.mct .mct-off .gl-seg > button:disabled { opacity: 1; }

/* Settings */
.mct-set { position: absolute; right: 14px; bottom: calc(100% + 12px); width: 380px; padding: 16px 16px 14px;
  display: flex; flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 16px 22px; }
.mct-set .mct-sec { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.mct-sec-hp { flex: 1 1 100%; }
.mct-hpnote { font-size: 12px; color: #8e8e93; }
.mct-rng { display: flex; align-items: center; gap: 12px; }
.mct .gl-dots { padding-left: 4px; }
.mct-set .gl-seg, .mct-set .gl-dots { align-self: flex-start; }

/* fullscreen: Settings open above the capsule, all in one glass panel */
.tst-fs .mct-setbtn, .tst-fs .mct-setbtn + .gl-sep { display: none; }
.tst-fs .mct-set[hidden], .tst-fs .mct-set { display: flex; position: static; width: auto; max-width: min(1100px, 100%); max-height: calc(100vh - 140px); overflow: auto;
  align-items: flex-end; border-radius: 22px; background: rgba(28,28,32,.84); animation: none; }
.tst-fs .mct-sec-hp { flex: 1 1 210px; }

@media (max-width: 600px) {
  .mct .tst-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 4px; }
  .mct-g1 { display: contents; }
  .mct-scenewrap { grid-column: 1; grid-row: 1; justify-self: start; }
  .mct .tst-end { grid-column: 2; grid-row: 1; }
  .mct-df { grid-column: 1 / -1; grid-row: 2; }
  .mct-df > .gl-seg { flex: 1 1 0; }
  .mct-df .gl-seg--ico > button { width: auto; flex: 1; }
  .mct-spd, .mct-cadg { grid-column: 1 / -1; grid-row: 3; }
  .mct-cadg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .mct-setlbl { display: none; }
  .mct-setbtn { width: 36px; padding: 0; justify-content: center; }
  .mct-scene-name { min-width: 0; }
  .mct-presets > button, .mct-ppf > button { min-width: 0; }
  .mct-set.gl-sheet { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 16px; }
  .mct-set .mct-sec { flex: none; }
  .mct-scenes.gl-sheet > button { padding: 12px; font-size: 15px; }
  .tst-fs.mct .tst-bar { display: flex; }
  .tst-fs .mct-set[hidden] { display: none !important; }
  .tst-fs .mct-setbtn, .tst-fs .mct-setbtn + .gl-sep { display: inline-flex; }
}
@media (prefers-reduced-motion: reduce) { .mct-sec { transition: none; } }
@media (prefers-reduced-transparency: reduce) { .tst-fs .mct-set { background: #1c1c20; } }

/* a first-visit pointer at the scene menu, as in the rolling buffer test */
@keyframes mct-hint { 0%, 100% { box-shadow: 0 0 0 0 rgba(10,132,255,0); } 50% { box-shadow: 0 0 0 2px rgba(10,132,255,.9), 0 0 14px 2px rgba(10,132,255,.45); } }
.mct-scene.mct-hint { animation: mct-hint 2s ease-in-out infinite; }

/* a note right under the tool: the main advice, in the accent blue */
.mct-note { margin: 14px 0 0; padding: 12px 16px; border-radius: 12px; background: rgba(0,122,255,.1); color: var(--accent); font-size: 15px; line-height: 1.5; font-weight: 500; }
