.test-header, .test-main, .test-footer { max-width: 71rem; }
.test-header nav { gap: clamp(.8rem, 3vw, 1.8rem); }
.test-header nav a { display: flex; align-items: center; min-height: 44px; }
.test-main { padding-block: clamp(2rem, 5vw, 4rem) 2rem; }
.test-intro { margin-bottom: clamp(1.55rem, 4vw, 2.5rem); }
.test-intro .test-meta { margin: 0 0 .8rem; font-size: .925rem; font-weight: 650; color: #486453; }
.test-intro h1 { font-size: clamp(4rem, 8vw, 6.7rem); }
.test-intro > p:last-child { max-width: 34rem; margin-top: .75rem; color: var(--text); font-size: clamp(1rem, 2vw, 1.2rem); line-height: 1.6; }
.test-layout { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr); align-items: start; gap: clamp(1rem, 4vw, 2rem); }
.test-card, .test-aside { border: 1px solid var(--line); border-radius: 1.15rem; padding: clamp(1.1rem, 3.6vw, 2.15rem); }
.test-card { background: #fffef8; box-shadow: 0 14px 36px #234a3220; }
.test-card h2, .test-aside h2, .test-premium h2 { font-size: clamp(2.1rem, 4.8vw, 3.25rem); line-height: 1.04; }
.test-card p, .test-aside p, .test-premium p { color: var(--text); line-height: 1.55; }
.test-card h2 + p, .test-aside h2 + p, .test-premium h2 + p { margin-top: .6rem; }
.test-card [data-start], .test-card [data-next] { margin-top: 1.25rem; }
.test-card button:disabled { cursor: default; opacity: .65; }
.test-aside { background: #e9eee3; }
.test-aside h2 { font-size: clamp(1.9rem, 3vw, 2.45rem); }
.test-example { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem; margin-block: 1rem; }
.test-example span { display: grid; place-items: center; min-height: 2.5rem; padding: .25rem; border: 1px solid #a4b5a5; border-radius: .45rem; background: #f8f9f2; text-align: center; }
.test-example span.example-selected { background: #cddfca; border-color: #577966; font-weight: 650; }
.test-example b { font-size: .85rem; line-height: 1; }
.test-example-shapes span { font-size: 1.6rem; line-height: 1; }
.test-phase { margin-bottom: .3rem; font-size: .9rem; font-weight: 650; }
.test-board { display: grid; gap: .55rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.test-words { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.test-shapes { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.test-board li, .test-board button { display: grid; place-items: center; min-height: 48px; width: 100%; padding: .4rem .2rem; border: 1px solid #a6b8ab; border-radius: .55rem; background: #f6f7ed; font-weight: 600; }
.test-board button { position: relative; }
.test-board button:hover { background: #e5eee0; }
.test-board button[aria-pressed="true"] { background: #d1e1cd; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.test-board button[aria-pressed="true"]::after { content: ""; position: absolute; inset: .24rem .25rem auto auto; width: .4rem; height: .65rem; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.test-shapes button { font: 1.75rem/1 system-ui, sans-serif; }
.test-card .test-target { display: flex; align-items: center; gap: .6rem; margin-top: .95rem; font-weight: 650; color: var(--ink); }
.test-target span { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: .45rem; background: var(--ink); color: white; font: 1.65rem/1 system-ui, sans-serif; }
.test-selection:not(:empty) { min-height: 1.55em; margin-top: .7rem; font-weight: 600; }
.test-card h2 + .test-score { margin-top: .85rem; color: var(--ink-deep); font: 400 clamp(3.75rem, 10vw, 6rem)/.87 var(--serif); }
.test-score span { color: #4d6a53; font-size: .57em; }
.test-result-caption { margin-top: .45rem; font-weight: 600; }
.test-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; margin-block: 1.2rem; }
.test-details > div { display: flex; flex-direction: column-reverse; padding: .85rem; border-radius: .65rem; background: #edf1e8; }
.test-details dd { margin: 0 0 .1rem; font-size: 1.4rem; font-weight: 650; }
.test-details dt { color: var(--text); }
.test-actions { display: flex; flex-wrap: wrap; gap: .6rem 1.25rem; align-items: center; }
.test-actions .link-action { display: inline-flex; align-items: center; min-height: 44px; }
.test-premium { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.15rem 2rem; margin-top: clamp(2rem, 5vw, 4rem); padding: clamp(1.15rem, 4vw, 2rem); border: 1px solid var(--line); border-radius: 1rem; background: #e8ede1; }
.test-premium p { max-width: 35rem; }
.test-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; padding-block: 1.1rem 1.5rem; border-top: 1px solid var(--line); }
.test-footer > span { font-weight: 650; }
.test-footer .link-action { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 760px) {
  .test-layout { grid-template-columns: minmax(0, 1fr); }
  .test-example { max-width: 20rem; }
}

@media (max-width: 480px) {
  .test-header { flex-wrap: wrap; column-gap: .75rem; }
  .test-header .wordmark { min-height: 44px; }
  .test-words { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .test-shapes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .test-main .button { transition: none; }
}
