.choices, .quilt { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
.choices button, .reset { font: inherit; color: var(--navy); cursor: pointer; }
.choices button, .quilt li { min-height: 4.75rem; border: 2px solid #955c1e; border-radius: .55rem; background: #ffdfa1; text-align: center; }
.choices button:nth-child(3n+2), .quilt li:nth-child(3n+2) { background: #bce8f8; border-color: #277089; }
.choices button:nth-child(3n), .quilt li:nth-child(3n) { background: #f3c6e1; border-color: #915274; }
.choices button { padding: .4rem .1rem; font-size: clamp(.85rem, 3vw, 1rem); font-weight: 650; }
.choices button span { display: block; font-size: 1.85rem; line-height: 1.2; }
.choices button[aria-disabled="true"] { cursor: default; }
.choices button:focus-visible, .reset:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.quilt { list-style: none; padding: 0; margin: 0 0 .8rem; }
.quilt li { display: grid; place-items: center; font-size: 2rem; }
.quilt li:empty { background: white; border: 2px dashed var(--line); }
.reset { padding: .45rem .75rem; border: 1px solid var(--navy); border-radius: .4rem; background: white; }
.quilt-game { padding: clamp(.8rem, 4vw, 1.5rem); background: white; border: 1px solid var(--line); border-radius: .8rem; }
.quilt-game h2 { margin: .6rem 0 .4rem; }
.quilt-example { display: flex; align-items: center; gap: .7rem; padding: .55rem .75rem; background: #f5eee1; border-radius: .5rem; }
.quilt-example[hidden] { display: none; }
.quilt-example p { margin: 0; }
.example-picture { font-size: 1.85rem; flex-shrink: 0; }
.turn { background: var(--navy); color: white; border-radius: .5rem; padding: .6rem .75rem; margin-bottom: .65rem; }
.quilt-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .15rem .75rem; }
#progress { color: var(--muted); }
.quilt li:not(.filled) { background: white; border: 2px dashed #9eabb8; color: #235271; }
.quilt li.next-square { background: #e8f7ff; border: 2px dashed #277089; font-weight: 700; }
.quilt li.filled { animation: place-picture .2s ease-out; }
.reset { margin-top: .65rem; }
@keyframes place-picture {
  from { transform: scale(.86); }
  to { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .quilt li.filled { animation: none; }
}

[hidden] { display: none !important; }
.choices button { background: var(--patch-color, #ffdfa1); }
.choices button:nth-child(3n+2) { background: var(--patch-color, #bce8f8); }
.choices button:nth-child(3n) { background: var(--patch-color, #f3c6e1); }
.choices button:disabled { background: #e4f1e8; border-color: #497352; color: #234330; cursor: default; }
.quilt li.filled { background: var(--patch-color); }
.quilt-heading { margin-top: 1rem; }
.sequence { background: #edf4fa; border-radius: .55rem; padding: .7rem .4rem; text-align: center; font-size: clamp(1.15rem, 5vw, 2.25rem); }
.feedback { min-height: 1.6em; margin: .6rem 0 0; color: #1c4b5f; font-weight: 650; }
#finished { flex-wrap: wrap; }
