/* Sorting Consonants and Vowels (spider and flies). Placeholder art; big tap targets for young children. */
/* Capital I with top and bottom bars (Brandie, Oct 17 2026). Atkinson Hyperlegible Bold (SIL Open Font License, bundled; no internet font).
   unicode-range U+0049 means this face is used for the capital I ONLY; every other letter, and lowercase l, keeps the normal app font. */
@font-face { font-family: 'Piko Capital I'; src: url('/assets/fonts/AtkinsonHyperlegible-Bold.woff2') format('woff2'); font-weight: 100 900; font-style: normal; unicode-range: U+0049; font-display: block; }
.sl-screen, .sl-screen button { font-family: 'Piko Capital I', "Trebuchet MS", "Arial Rounded MT Bold", system-ui, sans-serif; } /* same stack as :root in styles.css */
.sl-title { margin: 6px 0 8px; }
.sl-intro { margin: 0 0 8px; font-size: 1.15rem; font-weight: 700; color: var(--muted); max-width: 820px; }
.sl-instruction { margin: 0 0 12px; font-size: 1.35rem; font-weight: 700; max-width: 860px; }
/* "Round 1:" stands out: heavier, bigger, Forest Green (brand --green-dark) */
.sl-round { font-size: 1.45em; font-weight: 900; color: var(--green-dark); letter-spacing: .01em; }
.sl-kind-VOWELS { color: #9a5a0c; } .sl-kind-CONSONANTS { color: var(--blue-action); }
.sl-v { color: #9a5a0c; } .sl-c { color: var(--blue-action); }
.sl-y-cell { margin: 8px 0 0; font-weight: 700; }
.sl-y { color: #6a1f8f; } /* Y is both: purple, the same as the Y die in Make your own words */
.sl-layout { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 16px; align-items: start; }
.sl-layout-done { grid-template-columns: 240px 1fr; }
.sl-stage { position: relative; width: 100%; aspect-ratio: 100 / 56; border-radius: 20px; overflow: hidden; background: linear-gradient(#dff0d8, #eaf6e0); border: 3px solid var(--border); }
.sl-web { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sl-thread { fill: none; stroke: #6b5a85; stroke-width: .38; stroke-linecap: round; stroke-linejoin: round; } /* stage units: the picture is scaled evenly */
.sl-thread-spoke { stroke-width: .2; opacity: .75; } .sl-thread-drag { stroke-width: .3; }
.sl-thread-new { stroke-dasharray: 1; stroke-dashoffset: 1; animation: sl-draw linear forwards; }
@keyframes sl-draw { to { stroke-dashoffset: 0; } }
.sl-knot { fill: #6b5a85; }
.sl-spider { position: absolute; width: 7.6%; aspect-ratio: 100 / 90; transform: translate(-50%, -50%); pointer-events: none; z-index: 3; } /* the page script moves it along the web */
.sl-spider-svg { width: 100%; height: 100%; }
.sl-spider.sl-happy { animation: sl-hop .5s ease-out; }
@keyframes sl-hop { 0%, 100% { margin-top: 0; } 50% { margin-top: -10px; } }
.sl-fly { position: absolute; width: 9.6%; aspect-ratio: 96 / 80; min-width: 56px; transform: translate(-50%, -50%); padding: 0; border: 0; background: transparent; cursor: pointer; z-index: 2; }
.sl-fly img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sl-letter { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); font-size: 2rem; font-weight: 900; color: var(--ink); text-shadow: 0 0 4px #fff, 0 0 4px #fff; font-family: inherit; }
.sl-fly:focus-visible { outline: 4px solid var(--ink); outline-offset: 2px; border-radius: 16px; }
.sl-fly.sl-caught { cursor: default; filter: drop-shadow(0 0 6px #276844); }
.sl-fly.sl-caught::after { content: '✓'; position: absolute; right: 2px; top: -4px; width: 28px; height: 28px; border-radius: 50%; background: var(--green-dark); color: #fff; font-weight: 900; line-height: 28px; }
.sl-fly.sl-oops { cursor: default; opacity: .45; animation: sl-shake .35s ease-in-out; }
@keyframes sl-shake { 0%, 100% { margin-left: 0; } 30% { margin-left: -8px; } 70% { margin-left: 8px; } }
.sl-overlay { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: rgba(255,253,247,.88); text-align: center; }
.sl-overlay h2 { margin: 0; font-size: 2rem; color: var(--green-dark); }
.sl-next { min-width: 190px; min-height: 56px; font-size: 1.25rem; }
.sl-table { border-collapse: collapse; width: 100%; background: #fff; }
.sl-table th, .sl-table td { border: 2px solid var(--border); padding: 10px 14px; vertical-align: top; }
.sl-tally td { font-size: 1.1rem; }
.sl-tally-right td { background: #e6f6ec; } .sl-tally-wrong td { background: #fdeceb; }
.sl-tally-label { font-weight: 800; }
.sl-tally-n { float: right; font-size: 1.6rem; }
.sl-tally-right .sl-tally-n { color: var(--green-dark); } .sl-tally-wrong .sl-tally-n { color: #b3261e; }
.sl-marks { clear: both; display: flex; flex-wrap: wrap; gap: 3px; min-height: 28px; margin-top: 4px; font-size: 1.15rem; font-weight: 900; }
.sl-mark-right { color: var(--green-dark); } .sl-mark-wrong { color: #b3261e; }
.sl-note { min-height: 48px; margin: 12px auto 0; padding: 8px 14px; max-width: 700px; border-radius: 14px; text-align: center; font-size: 1.15rem; font-weight: 800; }
.sl-note.good { color: var(--green-dark); background: #e6f6ec; } .sl-note.try { color: #8a4a1c; background: #fff3b0; }
.sl-hint { font-size: 1.2rem; } .sl-hint-text { font-size: 1.3rem; font-weight: 700; }
.sl-hint-list { font-size: 1.2rem; line-height: 1.5; font-weight: 600; max-width: 820px; }
.sl-hint-list li { margin-bottom: 8px; }
.sl-hint-piko { width: 110px; height: auto; }
.sl-hint .sl-hint-piko { float: right; margin: 0 0 8px 12px; } /* rule 15: Piko on a Hint page = top-right corner */
.sl-sort-table { max-width: 820px; margin: 12px 0; font-size: 1.1rem; }
.sl-sort-table th { font-size: 1.5rem; background: var(--sky); text-align: center; width: 50%; }
.sl-chip { display: inline-block; min-width: 38px; margin: 3px; padding: 6px 8px; border-radius: 10px; text-align: center; font-weight: 900; font-size: 1.2rem; border: 2px solid; }
.sl-chip-y { background: #f1e3fa; border-color: #7b2fa3; color: #6a1f8f; }
.sl-fly-y .sl-letter { color: #6a1f8f; display: flex; flex-direction: column; align-items: center; line-height: 1; white-space: nowrap; }
.sl-fly.sl-fly-y { width: 11.5%; min-width: 74px; } /* the Y fly is a little wider so Y (yo-yo) fits on it, also on a tablet */
.sl-y-note { display: block; font-size: .62em; font-weight: 800; margin-top: 1px; } /* Y (i/e) / Y (yo-yo) on the fly: smaller words under the Y */
.sl-chip-vowel { background: #fff1dc; border-color: #c9791a; color: #9a5a0c; } .sl-chip-consonant { background: #dcecff; border-color: var(--blue-action); color: var(--blue-action); }
.sl-done { text-align: center; } .sl-done .sl-layout-done { text-align: left; } .sl-lead { font-size: 1.25rem; }
.sl-tips { font-size: 1.15rem; font-weight: 600; } .sl-btn-row { margin-top: 14px; }
@media (max-width: 900px) { .sl-layout { grid-template-columns: minmax(0, 1fr) 150px; } .sl-letter { font-size: 1.6rem; } }
@media (max-width: 900px) { .sl-layout-done { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .sl-layout, .sl-layout-done { grid-template-columns: 1fr; } .sl-letter { font-size: 1.6rem; } }
@media (prefers-reduced-motion: reduce) { .sl-spider.sl-happy, .sl-fly.sl-oops, .sl-thread-new { animation: none; stroke-dashoffset: 0; } }

/* Oct 17 2026 batch 2 (Brandie play-test): Y chip note, yellow highlighter, small Phonics button on the right of the first sentence */
.sl-chip-note { font-size: .62em; font-weight: 800; }
.sl-hl { background: #ffe94d; color: var(--ink); padding: 0 .2em; border-radius: 4px; }
.sl-hint-line { max-width: none; width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.sl-more-btn { min-height: 36px; padding: 4px 12px; font-size: .95rem; margin-left: auto; }

/* Oct 19 2026: "-ake" rhyme game (placeholder leaves; Picasso art comes later). Words need a wider fly than a letter. */
.sl-stage-leaves { background: linear-gradient(#f6ecd2, #efe0b6); }
.sl-fly.sl-fly-word { width: 13.5%; min-width: 104px; aspect-ratio: 120 / 78; transform: translate(-50%, -50%) rotate(var(--rot, 0deg)); } /* Picasso's leaf shape; --rot is the small tilt */
.sl-ake-tree { position: absolute; left: 72%; top: 3%; width: 28%; height: auto; pointer-events: none; z-index: 1; } /* decorative bare tree, right of the leaves */
.sl-leaf-svg { width: 100%; height: 100%; display: block; }
.sl-fly-word .sl-letter.sl-word { font-size: 1.5rem; left: 53.5%; letter-spacing: .01em; text-shadow: none; top: 50%; transform: translate(-50%, -50%) rotate(calc(var(--rot, 0deg) * -1)); }
.sl-fly-word.sl-caught { filter: drop-shadow(0 0 6px #276844); }
.sl-side-piko { display: block; width: 120px; height: auto; margin: 0 auto 10px; }
.sl-kind-LAKE { color: var(--blue-action); }
.sl-ake-big { margin: 6px 0; font-size: 3.2rem; font-weight: 900; letter-spacing: .02em; }
.sl-ake-examples, .sl-ake-found { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 14px; }
.sl-chip-word { font-size: 1.6rem; padding: 8px 16px; min-width: 0; }
@media (max-width: 900px) { .sl-fly-word .sl-letter.sl-word { font-size: 1.35rem; } .sl-side-piko { width: 90px; } }
.sl-ake-hint .sl-hint-back { margin-bottom: 14px; }
.sl-ake-big .sl-hl, .sl-chip-word .sl-hl { padding: 0 .04em; }
/* Rhyming Words list (Oct 20 2026): the pattern name and its detail sit on two lines inside the usual game row */
.rl-menu .sl-name small { display: block; color: var(--muted); font-weight: 700; }
.sl-fly-word .sl-letter.sl-word.sl-word-long { font-size: 1.15rem; }
.sl-fly-word .sl-letter.sl-word.sl-word-xlong { font-size: 1.05rem; }
@media (max-width: 900px) { .sl-fly-word .sl-letter.sl-word.sl-word-long { font-size: 1.1rem; } .sl-fly-word .sl-letter.sl-word.sl-word-xlong { font-size: .95rem; } }
