/* An animated explanation, not a test. The two layers that matter, the
   example viewer's gaze and the reference group's region, use two marks
   that differ in shape as well as colour (a dot with a trail; a soft disc
   with a dashed ring). The strip uses fill against hatching, so it reads
   without colour vision. Nothing here is a right-or-wrong colour. */

.ep-not { font-size: 15px; }
.ep-note { font-size: 13.5px; color: var(--text-soft); }

.ep-steps { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 12px; }
.ep-step {
	min-height: 44px;
	padding: 8px 14px;
	font: inherit;
	font-size: 14.5px;
	font-weight: 600;
	color: var(--text);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 999px;
	cursor: pointer;
	touch-action: manipulation;
}
@media (hover: hover) {
	.ep-step:hover { border-color: var(--accent); }
}
/* --surface as the text colour keeps contrast in both themes: white on the
   dark light-theme accent, near-black on the bright dark-theme accent. */
.ep-step[aria-pressed="true"] { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--surface); }
.ep-step:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.ep-stage { cursor: default; padding: 14px; min-height: 0; }
.ep-scene { display: block; width: 100%; max-width: 560px; height: auto; }

.ep-backdrop { fill: var(--surface); stroke: var(--border); }
.ep-floor { stroke: var(--border); stroke-width: 2; }
.ep-body.left { fill: #8a9bb5; }
.ep-body.right { fill: #b39a83; }
.ep-head { fill: #e2c3a2; stroke: rgb(0 0 0 / 0.18); }
.ep-eye { fill: #2b2b2b; }
.ep-mouth { fill: #6d3f3f; }
.ep-ball { fill: #e0a43c; stroke: rgb(0 0 0 / 0.25); }

.ep-blob { fill: var(--accent); opacity: 0.18; }
.ep-ring { fill: none; stroke: var(--accent-strong); stroke-width: 2; stroke-dasharray: 5 4; }
.ep-trail { fill: none; stroke: var(--text); stroke-width: 1.5; stroke-linejoin: round; opacity: 0.45; }
.ep-dot { fill: var(--text); stroke: var(--surface); stroke-width: 1.5; }

/* The comparison strip: one run per stretch of agreeing or differing moments. */
.ep-strip {
	position: relative;
	width: 100%;
	max-width: 560px;
	height: 22px;
	border: 1px solid var(--border);
	border-radius: 6px;
	background: var(--surface);
	overflow: hidden;
}
.ep-strip[hidden] { display: none; }
.ep-run { position: absolute; top: 0; bottom: 0; }
.ep-run.same { background: color-mix(in srgb, var(--accent) 55%, transparent); }
.ep-run.elsewhere { background: repeating-linear-gradient(135deg, var(--text-soft) 0 2px, transparent 2px 7px); }
.ep-playhead { position: absolute; top: -2px; bottom: -2px; width: 2px; margin-left: -1px; background: var(--text); z-index: 1; }

/* One column track per key, left-aligned, so the swatches line up. */
.ep-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(16em, 1fr)); gap: 6px 18px; width: 100%; max-width: 560px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--text-soft); }
.ep-key { display: flex; align-items: center; gap: 7px; margin: 0; }
.ep-key[hidden] { display: none; }
.ep-key::before { content: ""; flex: none; display: block; width: 14px; height: 14px; box-sizing: border-box; }
.ep-key.viewer::before { width: 9px; height: 9px; margin: 0 2.5px; border-radius: 50%; background: var(--text); }
.ep-key.reference::before { border-radius: 50%; border: 2px dashed var(--accent-strong); background: color-mix(in srgb, var(--accent) 18%, transparent); }
.ep-key.same::before { border-radius: 3px; background: color-mix(in srgb, var(--accent) 55%, transparent); }
.ep-key.elsewhere::before { border-radius: 3px; border: 1px solid var(--border); background: repeating-linear-gradient(135deg, var(--text-soft) 0 2px, transparent 2px 7px); }

.ep-player { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 14px 0 0; }
.ep-player .odak-btn { min-width: 7.5em; min-height: 44px; }
.ep-time { display: flex; flex: 1 1 220px; align-items: center; gap: 10px; font-size: 14px; color: var(--text-soft); }
.ep-time input { flex: 1; min-width: 0; min-height: 32px; accent-color: var(--accent-strong); }

.ep-explain { margin: 16px 0 0; padding: 14px 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); min-height: 4.5em; }
.ep-next { margin-top: 24px; }
.ep-next h2 { margin: 0 0 8px; font-size: 18px; }
.ep-next p { margin: 0; }
