/* Letter and figure CPTs. Stimuli sit on a fixed light card, so they look the
   same in both themes. The four figure colours differ in lightness as well
   as hue (black, blue, orange, yellow), so they stay apart for the common
   colour-vision types. No transition: a stimulus is fully drawn on the
   frame its onset is timed from. */

.cns-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.cns-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 16px 0; }
.cns-pick {
	display: flex; flex-direction: column; gap: 4px; align-items: flex-start; text-align: left;
	padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 10px;
	background: var(--surface); color: var(--text); font: inherit; cursor: pointer;
}
.cns-pick strong { font-size: 15px; }
.cns-pick span { font-size: 13px; color: var(--text-soft); line-height: 1.4; }
.cns-pick:hover:not(:disabled) { border-color: var(--accent); }
.cns-pick[aria-pressed="true"] { border-color: var(--accent-strong); background: var(--accent-soft); }
.cns-pick:disabled { cursor: not-allowed; opacity: 0.6; }
.cns-pick:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.cns-howto { margin: 4px 0 8px; }
.cns-howto h2 { font-size: 19px; margin: 0 0 8px; }
.cns-howto p, .cns-howto ol { margin: 0 0 8px; }
.cns-howto ol { padding-left: 22px; }
.cns-howto li { margin: 3px 0; }
.cns-sample { display: inline-block; width: 22px; height: 22px; vertical-align: -5px; margin: 0 2px; }

.cns-stage { padding-top: 52px; }
.cns-card {
	display: none; place-items: center; width: 170px; height: 170px;
	border-radius: 14px; background: #f3f2ee; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.08);
}
.cns-stage[data-odak-state="running"] .cns-card { display: grid; }
.cns-letter, .cns-figure { grid-area: 1 / 1; visibility: hidden; }
.cns-letter { font: 700 104px/1 system-ui, sans-serif; color: #1d1d1d; }
.cns-figure { width: 120px; height: 120px; }
.cns-card[data-show="letter"] .cns-letter, .cns-card[data-show="figure"] .cns-figure { visibility: visible; }
.c-blue { color: #0072b2; }
.c-orange { color: #e69f00; }
.c-yellow { color: #f0e442; }
.c-black { color: #1d1d1d; }

.cns-table-wrap { overflow-x: auto; margin-top: 16px; }
.cns-table { border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; min-width: 100%; }
.cns-table caption { text-align: left; font-weight: 700; font-size: 15.5px; margin-bottom: 6px; }
.cns-table th, .cns-table td { padding: 5px 10px 5px 0; border-bottom: 1px solid var(--border); text-align: right; }
.cns-table th:first-child, .cns-table td:first-child { text-align: left; }
.cns-table thead th { font-weight: 600; color: var(--text-soft); vertical-align: bottom; }
.cns-table tbody th { background: none; font-weight: 600; }

@media (max-width: 480px) {
	.cns-card { width: 150px; height: 150px; }
	.cns-letter { font-size: 92px; }
	.cns-figure { width: 104px; height: 104px; }
}
