.ortho { padding-bottom: 4rem; }
.ortho [data-screen] { scroll-margin-top: 1.5rem; }
.ortho__heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.ortho .eyebrow { margin-bottom: 0.65rem; }
.ortho__count, .ortho__options > p { color: var(--muted); font-size: 0.9375rem; }
.ortho__count strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.ortho__setup { display: grid; grid-template-columns: 1fr 17rem; align-items: start; gap: 2rem; padding-block: 1.5rem 2rem; }
.ortho__filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.ortho button { cursor: pointer; }
.ortho button:disabled { cursor: default; opacity: 0.5; }
.ortho__filter { min-height: 44px; padding: 0.45rem 0.85rem; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); background: transparent; font-size: 0.875rem; }
.ortho__filter::before { content: "+"; display: inline-block; width: 1.1rem; }
.ortho__filter[aria-pressed="true"] { background: #f0e7dd; border-color: var(--copper); color: var(--copper-dark); }
.ortho__filter[aria-pressed="true"]::before { content: "✓"; }
.ortho__filter:hover { border-color: var(--copper); }
.ortho__button { display: inline-flex; justify-content: center; align-items: center; gap: 1rem; min-height: 48px; padding: 0.75rem 1.2rem; border: 1px solid var(--copper); border-radius: 3px; background: var(--copper); color: var(--white); font-size: 0.9375rem; font-weight: 600; line-height: 1.4; }
.ortho__button:hover:not(:disabled) { background: var(--copper-dark); border-color: var(--copper-dark); }
.ortho__button--secondary { color: var(--copper); background: transparent; }
.ortho__button--secondary:hover:not(:disabled) { background: #f0e7dd; color: var(--copper-dark); }
.ortho__start .ortho__button { width: 100%; }
.ortho__start p { margin-top: 0.6rem; font-size: 0.8125rem; line-height: 1.5; color: var(--muted); }
.ortho__link { min-height: 44px; padding: 0.4rem 0; color: var(--copper); text-decoration: underline; text-underline-offset: 0.22em; background: transparent; border: 0; font-size: 0.875rem; }
.ortho__options > .ortho__link { margin-top: 0.5rem; }
.ortho__roster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; padding: 0; margin: 0; list-style: none; }
.ortho__profile { display: flex; align-items: center; gap: 1rem; min-width: 0; padding-block: 1.1rem; border-top: 1px solid var(--line); }
.ortho__profile img { width: 48px; height: 64px; flex-shrink: 0; object-fit: cover; object-position: top; border-radius: 3px; background: #f0e7dd; }
.ortho__profile-details { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ortho__profile h3 { font-family: inherit; font-size: 0.9375rem; font-weight: 600; letter-spacing: normal; }
.ortho__profile p { margin-top: 0.25rem; color: var(--muted); font-size: 0.8125rem; line-height: 1.45; }
.ortho__profile-role { display: block; margin-top: 0.3rem; font-size: 0.7rem; color: var(--copper); }
.ortho__remove { flex-shrink: 0; align-self: center; width: 44px; height: 44px; border: 0; background: transparent; color: var(--muted); font-size: 1.4rem; }
.ortho__remove:hover { background: #f0e7dd; color: var(--copper-dark); }
.ortho__empty { padding: 1.5rem; border-left: 2px solid var(--copper); background: #f0e7dd; }
.ortho__play { display: grid; grid-template-columns: minmax(0, 1fr) 16rem; align-items: start; gap: 3rem; max-width: 52rem; margin: 2rem auto 0; }
.ortho__table { width: 100%; max-width: 25rem; margin-inline: auto; min-width: 0; }
.ortho__card { display: block; position: relative; width: 100%; aspect-ratio: 3 / 4; padding: 0; border: 0; color: var(--ink); background: transparent; perspective: 1200px; text-align: center; }
.ortho__card:disabled { opacity: 1; }
.ortho__card-inner { display: block; position: absolute; inset: 0; transform-style: preserve-3d; }
.ortho__card.is-revealed .ortho__card-inner { transform: rotateY(180deg); transition: transform 350ms ease; }
.ortho__face { position: absolute; inset: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 5px; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
.ortho__face--front { background: var(--white); }
.ortho__face--front img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; background: #f0e7dd; }
.ortho__card-hint { position: absolute; inset: auto 0 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 2.5rem 1rem 1rem; background: linear-gradient(transparent, rgb(40 39 32 / 85%)); font-size: 0.8125rem; color: var(--white); }
.ortho__face--back { justify-content: center; align-items: center; gap: 1rem; padding: 2rem; background: var(--copper-dark); border-color: var(--copper-dark); color: var(--white); transform: rotateY(180deg); }
.ortho__role { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.ortho__name { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.75rem, 3.4vw, 2.75rem); line-height: 1.15; overflow-wrap: anywhere; }
.ortho__affiliation { font-size: 0.9375rem; line-height: 1.6; overflow-wrap: anywhere; }
.ortho__answers { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 1rem; }
.ortho__answers[inert] { visibility: hidden; }
.ortho__answers .ortho__button { padding-inline: 0.6rem; gap: 0.5rem; }
.ortho__instructions { margin-top: 1.25rem; color: var(--muted); text-align: center; font-size: 0.8125rem; }
.ortho kbd { font: inherit; padding: 0.1rem 0.3rem; border: 1px solid var(--line); border-radius: 2px; }
.ortho__stats { padding-left: 2rem; border-left: 1px solid var(--line); }
.ortho__stats dl { margin: 1.5rem 0; }
.ortho__stats dl > div + div { margin-top: 1.25rem; }
.ortho__stats dt { color: var(--muted); font-size: 0.8125rem; }
.ortho__stats dd { margin: 0; font-size: 1.75rem; line-height: 1.3; font-variant-numeric: tabular-nums; }
.ortho__total { font-size: 1rem; color: var(--muted); }
.ortho progress { display: block; width: 100%; height: 6px; border: 0; border-radius: 3px; overflow: hidden; background: var(--line); accent-color: var(--copper); }
.ortho progress::-webkit-progress-bar { background: var(--line); }
.ortho progress::-webkit-progress-value { background: var(--copper); }
.ortho progress::-moz-progress-bar { background: var(--copper); }
.ortho__stats > p:last-child { margin-top: 1rem; color: var(--muted); font-size: 0.875rem; }
.ortho__end { padding: 3.5rem 1rem; border-top: 1px solid var(--line); text-align: center; }
.ortho__end > p:not(.eyebrow) { margin-top: 1.25rem; color: var(--muted); }
.ortho__end-time strong { display: block; margin-top: 0.25rem; color: var(--ink); font-size: 2rem; font-variant-numeric: tabular-nums; }
.ortho__end .ortho__button { margin-top: 2rem; }
.ortho__sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 760px) {
  .ortho__heading { flex-wrap: wrap; padding-top: 1.5rem; }
  .ortho__setup { grid-template-columns: 1fr; gap: 1.5rem; }
  .ortho__start { max-width: 25rem; }
  .ortho__roster { grid-template-columns: 1fr; }
  .ortho__play { grid-template-columns: 1fr; gap: 1.5rem; margin-top: 1.5rem; }
  .ortho__stats { grid-row: 1; padding: 0 0 1.25rem; border-left: 0; border-bottom: 1px solid var(--line); }
  .ortho__stats .eyebrow, .ortho__stats > p:last-child { display: none; }
  .ortho__stats dl { display: flex; justify-content: space-between; gap: 0.5rem; margin: 0 0 0.75rem; }
  .ortho__stats dl > div + div { margin-top: 0; }
  .ortho__stats dd { font-size: 1.4rem; }
  .ortho__card { max-width: min(100%, 42vh); margin-inline: auto; }
  .ortho__face--back { gap: 0.65rem; padding: 1rem; }
  .ortho__name { font-size: 1.75rem; }
  .ortho__affiliation { font-size: 0.8125rem; }
}
@media (max-width: 760px) and (max-height: 600px) {
  .ortho__card { max-width: 18rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ortho__card.is-revealed .ortho__card-inner { transition: none; }
}
