.tabs button{display:flex;align-items:center;justify-content:center;gap:12px;min-height:73px;border:3px solid #6bb9a6;background:#b3e2d4;border-radius:22px;box-shadow:0 5px 0 #6bb9a6;font-weight:900;font-size:18px}.tabs button:nth-child(2){border-color:#debd50;background:#ffe393;box-shadow:0 5px 0 #debd50}.tabs button:nth-child(3){border-color:#b09bd0;background:#e1d3f1;box-shadow:0 5px 0 #b09bd0}.tabs button:nth-child(4){border-color:#d99389;background:#f8c1b5;box-shadow:0 5px 0 #d99389}.tabs button[aria-pressed=true]{outline:3px solid #314b59;outline-offset:4px}.tabs button b{display:grid;place-items:center;width:43px;height:43px;font-size:23px;border-radius:14px;background:#fff9eab8}.tabs button:focus-visible{outline-color:#6844a0}.garden-status{position:relative;z-index:1;text-align:center;min-height:24px;font-size:14px;color:#435a3b;padding:0 20px;margin:0 0 14px}.actions{flex-wrap:wrap;justify-content:center;gap:12px}.actions button{min-height:50px}.pocket{position:relative;padding:0}.pocket.counted{border:3px solid #477b59;background:#e2efd7}.count-tag{position:absolute;bottom:1px;right:2px;font-size:12px;font-weight:bold;background:#fff9d5;color:#345443;border-radius:50%;width:20px;height:20px;display:grid;place-items:center;border:1px solid #79996b}.pocket:disabled{opacity:1}.choices .hint{outline:4px solid #477b59;outline-offset:5px}.choice.word-choice{width:auto;min-width:130px;min-height:75px;height:auto;font-size:26px;padding:15px}.choices.word-options{flex-wrap:wrap}.result-note{font-size:21px;font-weight:900;color:#396d46;margin:16px 0 0}.number-total{font-size:47px;font-weight:900;color:#4d7357;margin:10px 0}.number-model{display:flex;align-items:center;justify-content:center;gap:17px;margin:13px 0}.number-model strong{font-size:46px}.number-model span{font-size:29px;font-weight:900;background:#e7d9ef;border:2px solid #b8a1ca;padding:10px 16px;border-radius:17px}.word-tabs button{min-height:48px}.word-tabs button[aria-pressed=true]{background:#e0d4f0;border-color:#b09acb;color:#594777}.word-picture{min-height:90px;display:flex;align-items:center;justify-content:center;font-size:72px;margin:9px 0}.word-picture .apple{width:65px;height:65px}.word-picture .apple:before{left:29px}.word-picture .apple:after{left:31px;width:22px}.word-model{font-size:29px;letter-spacing:3px;font-weight:900;margin:12px 0;color:#67518b;overflow-wrap:anywhere}.word-model.hidden-model{letter-spacing:7px;color:#7a8268}.word-board{width:100%;resize:vertical;font:900 26px/1.4 "Trebuchet MS",Arial,sans-serif;color:#293d60;min-height:84px;max-height:220px}.word-label{display:block;text-align:left;font-size:12px;font-weight:bold;color:#506342;margin:12px 0 7px}.key{min-height:48px;user-select:none;-webkit-user-select:none}.keyboard-toggle,.word-tools button{font-size:12px;font-weight:bold;min-height:48px;padding:8px 12px;border:2px solid #b4c49e;border-radius:13px;background:#fbffe8}.word-tools{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin:12px 0}.saved-list{display:flex;flex-direction:column;gap:10px;margin:20px 0}.saved-entry{display:flex;gap:8px}.saved-entry .saved-text{flex:1;text-align:left;overflow-wrap:anywhere}.saved-entry button{min-width:48px}.typing-actions{display:flex;justify-content:space-between;align-items:center;margin-top:12px;gap:8px}.counter-explain{font-size:12px;color:#526143;margin:10px 0}.pattern-strip .emphasis{outline:4px solid #609475;outline-offset:2px}.bead-slot .shape.triangle,.choice .shape.triangle{width:0;height:0;background:transparent;border-left:20px solid transparent;border-right:20px solid transparent;border-top:0;border-bottom:36px solid #c28a45;box-shadow:none;border-radius:0}.softer .tabs button{filter:saturate(.65)}.footer .home-link{font-size:12px}.lp-dialog .picture-note{font-size:13px}.top-actions .quiet,.player-strip .quiet{min-height:48px}.brand.home-link{min-height:48px}.garden .scene.word-scene .companion{align-self:start;margin-top:24px}@media(max-width:780px){.five-frame{grid-template-columns:repeat(5,48px)}.pocket{height:48px}.tabs button{flex-direction:column;gap:3px;min-height:73px;font-size:12px;border-radius:16px;border-width:2px}.tabs button b{width:31px;height:31px;border-radius:10px;font-size:19px}.tabs button[aria-pressed=true]{outline-width:2px;outline-offset:3px}.pocket{min-height:48px}.key{min-height:48px}.choice.word-choice{font-size:21px;min-width:110px}.word-picture{font-size:57px;min-height:73px}.word-board{font-size:22px}.number-model span{font-size:24px}.number-model strong{font-size:39px}.word-model{font-size:25px}.garden-status{font-size:13px}.bead-slot .shape.triangle{border-left-width:15px;border-right-width:15px;border-bottom-width:27px}}@media(max-width:550px){.five-frame{grid-template-columns:repeat(5,48px);gap:6px}.pocket{height:48px}.keyboard{grid-template-columns:repeat(6,1fr)}.key{min-height:48px}.key.function{grid-column:span 2}.key.space{grid-column:span 2}.scene{padding-bottom:10px}.garden .scene.word-scene .companion{align-self:auto;margin-top:0}.word-picture{min-height:63px;font-size:53px;margin:4px 0}.word-model{margin:9px 0}.word-board{font-size:23px;min-height:83px}.garden-status{font-size:13px;margin-bottom:12px}.choice.word-choice{font-size:21px}.count-tag{font-size:10px;width:18px;height:18px}.typing-actions{flex-wrap:wrap;justify-content:center}.actions{gap:8px}.actions .help,.actions .next,.actions .again{font-size:12px;padding:10px}.number-model{margin:8px 0}.word-picture .apple{width:48px;height:48px}.word-ideas{display:none}.keyboard{scroll-margin-bottom:15px}}@media(max-width:380px){.keyboard{grid-template-columns:repeat(5,1fr)}}@media(max-width:355px){.five-frame{grid-template-columns:repeat(5,42px);gap:5px}.pocket{height:46px}}@media(max-width:360px){.topbar{gap:6px}.top-actions{gap:4px}.brand.home-link{font-size:12px}.brand-mark{margin-right:3px}.top-actions .quiet{padding:7px;font-size:9px}.number-model span{font-size:21px}.choice.word-choice{min-width:103px;font-size:20px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

.keyboard.keypad{grid-template-columns:repeat(5,1fr);max-width:360px;margin:12px auto 0}.keyboard.keypad .key{min-height:56px;font-size:26px}.keyboard.keypad .key.function{grid-column:span 2;font-size:13px}.keyboard.keypad .key.go{grid-column:span 3;background:#3b8070;border-color:#2b6359;color:#fff;font-size:17px}.equation .typed{display:inline-block;min-width:1.5em;padding:0 6px;border-bottom:5px dashed #b39bc9;line-height:1.1;color:#6a558a}@media(max-width:550px){.keyboard.keypad{grid-template-columns:repeat(5,1fr)}.keyboard.keypad .key{min-height:52px;font-size:23px}.keyboard.keypad .key.function{grid-column:span 2}.keyboard.keypad .key.go{grid-column:span 3}}@media(max-width:380px){.keyboard.keypad{grid-template-columns:repeat(5,1fr)}}

.word-tabs{flex-wrap:wrap}.sentence{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;margin:14px 0}.word-tile{min-height:52px;padding:8px 14px;border:2px solid #c4bb89;background:#f4edc4;border-radius:14px;font-size:24px;font-weight:900;color:#3f4a5c;display:grid;place-items:center}.word-tile.gap{border:3px dashed #839979;background:#fffdf0;color:#667d57;min-width:84px;outline:3px solid #b2c393;outline-offset:3px}.word-tile.filled{background:#e1d3f1;border-color:#b09bd0;color:#594777}.word-tile.stop{border:0;background:transparent;padding:0;min-width:0;min-height:0;font-size:30px}.letter-tiles{display:flex;flex-wrap:wrap;justify-content:center;gap:7px;margin:14px 0}.letter-tile{width:52px;height:60px;display:grid;place-items:center;border:2px solid #c4bb89;background:#f4edc4;border-radius:14px;font-size:30px;font-weight:900;color:#3f4a5c}.letter-tile.gap{border:3px dashed #839979;background:#fffdf0;color:#667d57;outline:3px solid #b2c393;outline-offset:3px}.letter-tile.filled{background:#e1d3f1;border-color:#b09bd0;color:#594777}.letter-tile.space{width:18px;border:0;background:transparent}.word-tools .choice.hint{outline:4px solid #477b59}@media(max-width:550px){.word-tile{font-size:19px;padding:6px 10px;min-height:48px}.word-tile.gap{min-width:62px}.letter-tile{width:44px;height:52px;font-size:24px}.sentence,.letter-tiles{gap:6px}}

.word-bank{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:6px 0 4px}.word-tile.bank{background:#fff4c9;border-color:#d4bd71;color:#594777;font-size:21px;min-height:48px}.word-tile.hint{outline:4px solid #477b59;outline-offset:4px}.word-tile.gap:not(:empty){letter-spacing:1px}.sentence .word-tile.gap{color:#594777}

.shape.diamond{width:28px;height:28px;border-radius:5px;background:#e58a8a;border-color:#b85c5c;transform:rotate(45deg);box-shadow:none}.pattern-choices .shape.diamond{width:34px;height:34px}.pattern-strip{flex-wrap:wrap}.puzzle-picker.levels{flex-direction:column;align-items:stretch}.puzzle-picker.levels button{text-align:left}@media(max-width:780px){.shape.diamond{width:20px;height:20px}.pattern-choices .shape.diamond{width:26px;height:26px}}

/* one colour for every answer */.choice:nth-child(2),.pattern-choices .choice:nth-child(2){background:#ccead9;border-color:#75ad91}

button.support{cursor:pointer;min-height:48px;padding:0 14px;font:inherit;font-size:11px;font-weight:bold;box-shadow:0 3px 0 #e5d085;user-select:none;-webkit-user-select:none}button.support:active{transform:translateY(2px);box-shadow:0 1px 0 #e5d085}@media(max-width:780px){button.support{font-size:9px;padding:0 10px}}

/* Keep large sums and long writing inside the activity on small screens. */
.word-submit{display:block;width:100%;min-height:56px;margin:12px 0 16px;padding:12px 20px;border:2px solid #285347;border-radius:16px;background:#376e5a;color:#fff;font:900 22px/1.3 "Trebuchet MS",Arial,sans-serif;box-shadow:0 4px 0 #285347}
.word-submit:active{transform:translateY(2px);box-shadow:0 2px 0 #285347}
.answer-feedback{min-height:1.5em;margin:8px 0;color:#66502d;font-size:17px;font-weight:900;line-height:1.5}
.word-board[aria-invalid=true],.word-line[aria-invalid=true]{border-color:#b28e51;background:#fff6e8}
.word-bank{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
button.word-tile.bank{position:relative;width:100%;min-width:0;min-height:76px;padding:10px 6px;gap:6px;font-size:clamp(15px,3.5vw,23px);line-height:1.2}
.word-emoji{font-size:34px;line-height:1.3}
.word-listen{font-size:15px;color:#594777}
.sentence-tools button{font-size:15px;min-height:50px;color:#293d60}
.sentence-tools #hear-model{background:#d7eee2;border-color:#75ad91}
.sentence-tools #word-hint[aria-expanded=true]{background:#e1d3f1;border-color:#b09bd0}
.sum-build .number-group{flex:1;min-width:0;max-width:230px}
.apples,.new-fruit{flex-wrap:wrap}
.new-fruit{max-width:100%;gap:9px}
.sum-result{flex-wrap:wrap}
.group-label{overflow-wrap:break-word}
.word-tile{min-width:0;max-width:100%;overflow-wrap:anywhere}
.choices{flex-wrap:wrap}
.choices [data-tile]:disabled{opacity:.55;box-shadow:none}
@media(max-width:550px){
  .choices{gap:12px}
  .choices:not(.word-options) .choice{width:calc((100% - 24px)/3);max-width:95px;min-width:48px;height:80px}
  .five-frame{width:100%;max-width:310px;grid-template-columns:repeat(5,minmax(0,1fr));padding:10px;gap:5px}
  .pocket{min-width:0}
  .sum-build .number-group{padding:10px 6px}
  .sum-result{padding:12px}
}

/* Mulberry picture symbols */.word-picture img.symbol{width:96px;height:96px;object-fit:contain}.word-emoji img.symbol{width:44px;height:44px;display:block;margin:0 auto}@media(max-width:550px){.word-picture img.symbol{width:72px;height:72px}.word-emoji img.symbol{width:36px;height:36px}}

/* Activity-local level control inside the puzzle picker, and the explicit Next level action. */
.level-picker{display:flex;flex-direction:column;gap:8px;margin:16px 0 4px}.level-picker button{min-height:48px;text-align:left;font-size:15px;padding:10px 14px}.level-picker button[aria-pressed=true]{background:#e1d3f1;border-color:#b09bd0;color:#594777;outline:3px solid #594777;outline-offset:2px}.puzzle-picker:empty{display:none}.next-level{min-height:51px;padding:11px 21px;border:2px solid #b09bd0;border-bottom-width:5px;border-radius:17px;background:#f0e7fa;color:#594777;font-size:15px;font-weight:900}@media(max-width:780px){.next-level{font-size:12px;min-height:48px;padding:10px 13px}}@media(max-width:550px){.actions .next-level{font-size:12px;padding:10px}}

/* Nook's bubble carries success: a still tint change for that round, no motion. */
.speech.success{background:#dff3e4;border-color:#77ad91;color:#2f5a44}.speech.success:after{background:#dff3e4;border-color:#77ad91}

/* The status line is the live region and the instruction carrier; feedback lives in Nook's bubble. */
.garden-status{font-size:13px;font-weight:normal;color:#5b6a52}

/* Clue scaffold: numbered apples inside the joined group. */
.apples .tagged{position:relative;display:inline-flex;flex-shrink:0}.apples .tagged .count-tag{bottom:-6px;right:-8px}

/* Compact Words input: one row, stable width, Enter and the keyboard toggle beside it. */
.typing-row{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;margin:0 0 4px}
.word-line{width:13ch;max-width:100%;min-height:56px;padding:8px 14px;border:3px solid #b29acb;border-bottom-width:5px;border-radius:16px;background:#fffef7;color:#293d60;font:900 26px/1.2 "Trebuchet MS",Arial,sans-serif;text-align:left;letter-spacing:1px}
.word-line{caret-color:#6a558a}
.typing-row .word-submit{display:inline-flex;align-items:center;justify-content:center;width:auto;min-width:120px;margin:0;font-size:20px}
.typing-row .keyboard-toggle{margin:0}
.word-label{margin-top:10px}
.answer-feedback{margin:6px 0}
@media(max-width:550px){.word-line{font-size:22px;min-height:52px;width:12ch}.typing-row .word-submit{min-width:100px;font-size:18px;min-height:52px}}

/* Wide layouts (iPad landscape): Nook stays in the left column, but the bubble sits below Nook, level with the answer row, so feedback is where the eye already is. */
@media(min-width:551px){
  .garden .scene .companion{align-self:end;margin-bottom:22px}
  .garden .scene .companion img{order:1;margin-top:0}
  .garden .scene .companion .name-tag{order:2}
  .garden .scene .companion .speech{order:3;margin:10px 0 0}
  .garden .scene .companion .speech:after{bottom:auto;top:-10px;border-bottom:0;border-right:0;border-top:2px solid #c0b1d7;border-left:2px solid #c0b1d7}
  .garden .scene .companion .speech.success:after{border-color:#77ad91}
  .garden .scene.word-scene .companion{align-self:start;margin-top:12px}
}

/* Take away: what is left stays a countable group; what went sits in a clearly separate basket area. */
.operation-tabs{margin:0 0 10px}.operation-tabs button[aria-pressed=true]{background:#e0d4f0;border-color:#b09acb;color:#594777}
.take-result{display:flex;justify-content:center;align-items:stretch;gap:16px;flex-wrap:wrap;margin:8px 0}
.take-result .number-group.left{background:#fff0b3;border-color:#d5bd69;min-width:150px}
.take-result .number-group.taken{background:#f7e9dc;border:2px dashed #c99b6f;color:#6d5232;min-width:120px;opacity:.92}
.take-result .number-group.taken .group-label{color:#7a5a3a}
.take-result .number-group.taken img.symbol{display:block;width:40px;height:40px;margin:0 auto 2px}
.apples .none{font-size:14px;font-weight:900;color:#7b8a6a;letter-spacing:1px}
.operation-picker{display:flex;gap:8px;margin:12px 0 4px}.operation-picker button{flex:1;min-height:48px}.operation-picker button[aria-pressed=true]{background:#e1d3f1;border-color:#b09bd0;color:#594777;outline:3px solid #594777;outline-offset:2px}
@media(max-width:550px){.take-result{gap:10px}.take-result .number-group.left{min-width:120px}}

/* Tens-and-ones tray. A complete ten is a full ten-frame until the level has established it; then a stick of ten with ten visible dots. */
.tray{display:flex;flex-wrap:wrap;justify-content:center;align-items:flex-end;gap:10px;margin:8px auto}
.tray .five-frame{margin:0;padding:8px;gap:5px;grid-template-columns:repeat(5,44px);border-radius:16px;border-bottom-width:5px}
.tray .pocket{height:48px;min-height:48px;border-radius:10px}
.tray .apple{width:28px;height:28px;margin-top:6px}.tray .apple:before{left:12px;top:-9px;height:8px}.tray .apple:after{left:15px;top:-8px;width:12px;height:6px}
.fruit{position:relative;display:inline-flex}
.fruit.new .apple{outline:3px solid #b39bc9;outline-offset:2px;border-radius:45%}
.fruit .count-tag{bottom:-8px;right:-10px}
.stick{position:relative;display:grid;grid-template-rows:repeat(10,1fr);align-content:stretch;width:36px;height:168px;padding:5px 0;background:#e67b69;border:2px solid #b65b50;border-radius:12px;box-shadow:inset 4px 0 0 #ffffff24}
.stick i{display:block;width:10px;height:10px;margin:auto;border-radius:50%;background:#fff9e9}
.stick b{position:absolute;left:50%;bottom:-24px;transform:translateX(-50%);font-size:12px;color:#5b4a2a;background:#fff7ce;border:1px solid #dcd091;border-radius:10px;padding:1px 7px}
.stick.new{outline:3px solid #b39bc9;outline-offset:3px}
.tray .stick{margin-bottom:26px}
.sum-build.trays{flex-wrap:wrap;align-items:flex-start}.sum-build.trays .number-group{max-width:none;flex:0 1 auto}
.sum-result.trays{flex-direction:column;width:auto;max-width:100%}.sum-result.trays strong{border-left:0;padding:0;font-size:40px}
.take-result.trays .number-group{flex:0 1 auto}
.number-group .tray{margin:0 auto 6px}
@media(max-width:780px){.tray .five-frame{grid-template-columns:repeat(5,40px);gap:4px;padding:6px}.tray .pocket{height:44px;min-height:44px}.stick{width:32px;height:150px}}
@media(max-width:550px){.tray{gap:8px}.tray .five-frame{grid-template-columns:repeat(5,minmax(0,1fr));width:100%;max-width:250px}.sum-build.trays{flex-direction:column;align-items:center}.sum-build.trays .number-group{width:100%;max-width:300px}}

/* Named practice sets in the Add picker. */
.set-picker{display:flex;flex-direction:column;gap:8px;margin:8px 0 12px}.set-picker button{min-height:48px;text-align:left;font-size:15px;padding:10px 14px}.set-picker button[aria-pressed=true]{background:#fff0ad;border-color:#d3b863;color:#66542a;outline:3px solid #66542a;outline-offset:2px}

/* Counting tray: tens and ones are 48 px tap targets; a counted ten or apple shows its running total. */
.tray.counting{align-items:flex-end}
.tray button.five-frame{position:relative;cursor:pointer;font:inherit;color:inherit}
.tray button.five-frame.counted{border-color:#477b59;background:#e2efd7}
.tray button.five-frame>.count-tag{position:absolute;top:-10px;right:-10px;width:auto;min-width:26px;height:26px;padding:0 6px;font-size:13px;border-radius:13px;background:#fff9d5;border:2px solid #477b59}
button.stick{min-width:48px;width:48px;cursor:pointer;padding:5px 0}
button.stick.counted{background:#8fb28a;border-color:#477b59}
button.stick>.count-tag{position:absolute;top:-12px;left:50%;transform:translateX(-50%);width:auto;min-width:26px;height:24px;padding:0 6px;font-size:12px;border-radius:12px;background:#fff9d5;border:2px solid #477b59}
.tray.counting button.pocket{cursor:pointer;font:inherit;color:inherit;min-height:48px;height:48px}
.tray.counting button.pocket.counted{border:3px solid #477b59;background:#e2efd7}
.tray.counting button.pocket .count-tag{font-size:11px;width:22px;height:22px;bottom:0;right:0}
.equation.count-answer{margin:6px 0 2px}
@media(max-width:780px){.tray button.stick{width:48px}.tray button.five-frame{grid-template-columns:repeat(5,40px)}}
@media(max-width:550px){.tray button.five-frame{grid-template-columns:repeat(5,minmax(0,1fr));width:100%;max-width:250px}}

/* Pattern depth: tappable gaps, an active gap, filled beads, a fifth shape, grouped and mirrored strings, ten-bead rows in reading order, and number beads. */
.shape.oval{width:44px;height:26px;border-radius:50%;background:#e0b04f;border-color:#a88028;box-shadow:inset 3px 0 0 #ffffff30}
.pattern-choices .shape.oval{width:54px;height:32px}
button.bead-slot{cursor:pointer;font:inherit;min-width:48px;min-height:48px;padding:0;color:#667d57;font-weight:900}
.bead-slot.active{outline:4px solid #594777;outline-offset:4px;border-color:#594777;background:#f0e7fa}
.bead-slot.filled{background:#e1d3f1;border-color:#b09bd0}
.bead-slot.number{font-size:26px;font-weight:900;color:#3f4a5c}.bead-slot.number b{font-size:26px}
.pattern-choices .choice.number{font-size:44px}
.bead-index{position:absolute;bottom:-20px;left:50%;transform:translateX(-50%);font-size:11px;color:#7b8a6a;font-weight:bold}
.pattern-strip.long{display:grid;grid-template-columns:repeat(5,65px);gap:22px 10px;justify-content:center;margin-bottom:34px}
.pattern-strip.long .bead-slot:nth-child(5n):after{display:none}
.pattern-strip.grouped{gap:14px;align-items:flex-end}
.bead-group{display:flex;gap:6px;padding:6px;border:2px dashed #b2c393;border-radius:16px;background:#fbfbe9}
.bead-group .bead-slot:last-child:after{display:none}
.bead-group.emphasis{outline:4px solid #609475;outline-offset:2px}
.mirror-line{width:5px;height:74px;border-radius:3px;background:#b09bd0;margin:0 4px;align-self:center}
.level-picker .level-beads{display:inline-flex;align-items:center;gap:4px;vertical-align:middle;margin:0 6px}
.level-picker .level-beads .shape{width:18px;height:18px;border-width:1px}
.level-picker .level-beads .shape.oval{width:24px;height:14px}
.level-picker .level-beads .shape.triangle{border-left-width:9px;border-right-width:9px;border-bottom-width:16px}
.level-picker .level-beads .mini-group{display:inline-flex;gap:2px;padding:2px 3px;border:1px dashed #b2c393;border-radius:6px;margin-right:3px}
.level-picker .level-beads b{font-size:15px}
@media(max-width:780px){.shape.oval{width:30px;height:18px}.pattern-choices .shape.oval{width:40px;height:24px}.pattern-strip.long{grid-template-columns:repeat(5,48px);gap:22px 7px}.bead-slot.number,.bead-slot.number b{font-size:20px}.mirror-line{height:60px}.bead-group{gap:4px;padding:4px}}
@media(max-width:550px){.pattern-strip.long{grid-template-columns:repeat(5,48px)}.bead-index{font-size:10px}}

/* Missing part: the second group is unknown; the joined group shows it outlined. */
.number-group.missing-part{border-style:dashed}.number-group.missing-part .apples .none{font-size:34px;color:#6a558a}
.equation .unknown{color:#805da7}

/* A familiar word without a Mulberry symbol keeps the bank tile's shape without a picture. */
.word-emoji .no-picture{display:block;width:44px;height:44px;margin:0 auto;border:2px dashed #d4bd71;border-radius:10px}

/* Make your own bead string. */
.pattern-tabs{margin:0 0 10px}.pattern-tabs button[aria-pressed=true]{background:#e0d4f0;border-color:#b09acb;color:#594777}
.pattern-strip.making .bead-slot.empty{border-style:dashed;background:#fffdf0;opacity:.7}
.pattern-strip.making button.bead-slot{cursor:pointer}
.make-tools button{min-height:48px}

/* iPad Safari: stop text autosizing from inflating multi-digit answers, lay the numeral out with flex (grid inside a button is unreliable in WebKit), and size by digit count so 18 and 100 fit the same button as 3. */
.choice{display:inline-flex;align-items:center;justify-content:center;padding:0;line-height:1;white-space:nowrap;-webkit-text-size-adjust:100%;text-size-adjust:100%}
.choice.digits-2{font-size:52px}.choice.digits-3{font-size:40px;letter-spacing:-1px}
.equation span,.equation .typed,.equation .unknown{letter-spacing:0}
.equation{-webkit-text-size-adjust:100%;text-size-adjust:100%}
@media(max-width:780px){.choice.digits-2{font-size:42px}.choice.digits-3{font-size:32px}}
@media(max-width:550px){.choice.digits-2{font-size:40px}.choice.digits-3{font-size:30px}}

/* Same WebKit rule for the bead gaps and the bead shape pills: flex, not grid, inside a button. */
button.bead-slot{display:inline-flex;align-items:center;justify-content:center}
.pattern-choices .choice{display:inline-flex;align-items:center;justify-content:center;padding:0}

/* iPad landscape (about 1024 x 700 inside Safari): one header row, hero hidden, and the garden as a grid with Nook, the status and the actions in the left column so the activity gets the full height. Tap targets stay at 48 px. */
@media (min-width:820px) and (max-height:840px) and (orientation:landscape){
  .shell{padding:8px 16px;position:relative}
  .topbar{min-height:48px}
  .player-strip{position:absolute;top:8px;left:210px;right:270px;margin:0;justify-content:flex-start;gap:8px}
  .hero{display:none}
  .tabs{gap:8px;margin:6px 0 8px}.tabs button{min-height:48px;font-size:14px;border-radius:14px;box-shadow:0 3px 0 #6bb9a6;gap:8px}.tabs button:nth-child(2){box-shadow:0 3px 0 #debd50}.tabs button:nth-child(3){box-shadow:0 3px 0 #b09bd0}.tabs button:nth-child(4){box-shadow:0 3px 0 #d99389}.tabs button b{width:30px;height:30px;font-size:16px;border-radius:9px}.tabs button[aria-pressed=true]{outline-width:2px;outline-offset:2px}
  main.garden{display:grid;grid-template-columns:160px minmax(0,1fr);grid-template-areas:"top top" "nook task" "status task" "actions task";align-items:start;border-radius:22px}
  .garden-top{grid-area:top;padding:10px 18px 0}
  .scene{display:contents}
  .garden .scene .companion,.garden .scene.word-scene .companion{grid-area:nook;align-self:start;margin:6px 0 0 12px;width:140px}
  .garden .scene .companion img{width:88px;height:106px;margin:0}
  .garden .scene .companion .speech{font-size:13px;padding:8px 9px;max-width:140px;margin:8px 0 0;border-radius:14px}
  .name-tag{font-size:9px;padding:3px 9px}
  .activity{grid-area:task;padding:0 18px 8px 6px;min-height:0}
  .garden-status{grid-area:status;text-align:left;font-size:11px;padding:0 12px;margin:6px 0 0;min-height:0}
  .actions{grid-area:actions;flex-direction:column;align-items:stretch;padding:0 12px 12px;gap:6px}
  .actions button{min-height:48px;font-size:12px;padding:8px 10px;border-bottom-width:4px}
  .footer{display:none}
  h2{font-size:22px;margin:0 0 2px}.instruction{font-size:12px;margin:0 0 6px}
  .operation-tabs,.pattern-tabs,.word-tabs{margin:0 0 6px;gap:5px}.word-tabs button{min-height:48px;padding:6px 10px}
  .sum-build{margin:4px 0;gap:10px}.number-group{padding:8px 10px}.number-group strong{font-size:22px;margin-top:2px}.group-label{font-size:10px;margin-bottom:4px}.apples{min-height:36px;gap:8px}
  .join-arrow{font-size:16px;line-height:1}.sum-result{padding:6px 12px;margin:4px auto}.sum-result strong{font-size:30px}.sum-result.trays strong{font-size:26px}
  .take-result{gap:10px;margin:4px 0}.take-result .number-group.taken img.symbol{width:28px;height:28px}
  .equation{font-size:24px;margin:6px 0 0}.equation.count-answer{margin:2px 0}.choice-label{margin:4px 0;font-size:12px}
  .choices{margin:6px 0 0;gap:14px}.choice{width:84px;height:72px;font-size:44px;border-bottom-width:5px}.choice.digits-2{font-size:38px}.choice.digits-3{font-size:30px}
  .keyboard.keypad{margin-top:6px;gap:4px}.keyboard.keypad .key{min-height:48px;font-size:22px}
  .five-frame{grid-template-columns:repeat(5,52px);padding:8px;gap:5px;margin:6px auto}.pocket{height:52px}
  .tray{gap:8px;margin:4px auto}.tray .five-frame{grid-template-columns:repeat(5,32px);gap:3px;padding:5px;border-bottom-width:4px}.tray .pocket{height:36px;min-height:36px;border-radius:8px}
  .tray .apple{width:22px;height:22px;margin-top:5px}.tray .apple:before{left:9px;top:-8px;height:7px;width:3px}.tray .apple:after{left:11px;top:-7px;width:10px;height:5px}
  .stick{width:30px;height:116px;padding:4px 0}.stick i{width:7px;height:7px}.stick b{bottom:-20px;font-size:10px}.tray .stick{margin-bottom:22px}
  .fruit .count-tag{width:18px;height:18px;font-size:10px;bottom:-6px;right:-8px}
  .tray.counting .pocket,.tray.counting button.pocket{height:48px;min-height:48px}.tray button.five-frame{grid-template-columns:repeat(5,44px);gap:4px}.tray.counting .five-frame.ones{grid-template-columns:repeat(5,44px)}.tray.counting .apple{width:26px;height:26px}
  button.stick{width:48px;height:140px}.tray button.stick{margin-bottom:24px}
  .pattern-strip{margin:10px 0;gap:8px}.bead-slot{width:50px;height:56px;border-radius:14px}.bead-slot .shape{width:26px;height:26px}.bead-slot .shape.triangle{border-left-width:14px;border-right-width:14px;border-bottom-width:25px}.bead-slot .shape.oval{width:32px;height:18px}.bead-slot.missing{font-size:28px}
  .pattern-strip.long{grid-template-columns:repeat(5,50px);gap:20px 8px;margin-bottom:26px}.mirror-line{height:56px}
  .pattern-choices .choice{width:84px;height:72px}.pattern-choices .shape{width:34px;height:34px}.repeat-label{margin:8px 0 0;font-size:13px}
  .number-model{margin:6px 0}.number-model strong{font-size:34px}.number-model span{font-size:22px;padding:6px 12px}.number-total{font-size:34px;margin:4px 0}
  .make-tools button{min-height:48px;font-size:12px}
}

@media (min-width:820px) and (max-height:840px) and (orientation:landscape){
  /* Keep the activity, Nook and the buttons above the decorative grass now that the scene is display:contents. */
  .activity,.garden .scene .companion,.garden-status,.actions{position:relative;z-index:1}
  /* Add and Take away: parts, arrow and result on one row when they fit, wrapping otherwise. */
  #task[data-view="add"]{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:6px 12px}
  #task[data-view="add"]>.operation-tabs,#task[data-view="add"]>.equation,#task[data-view="add"]>.choice-label,#task[data-view="add"]>.choices,#task[data-view="add"]>.keypad{flex-basis:100%;margin-top:0;margin-bottom:0}
  #task[data-view="add"]>.sum-build,#task[data-view="add"]>.sum-result,#task[data-view="add"]>.take-result{margin:0;flex:0 1 auto;max-width:100%}
  #task[data-view="add"]>.join-arrow{transform:rotate(-90deg);margin:0;width:20px}
  .sum-build.trays .number-group,.take-result.trays .number-group{padding:6px 8px}
  .tray .five-frame{grid-template-columns:repeat(5,26px);gap:3px;padding:4px;border-width:2px;border-bottom-width:4px;border-radius:12px}.tray .pocket{height:30px;min-height:30px;border-radius:7px}
  .tray .apple{width:18px;height:18px;margin-top:4px;border-width:1px}.tray .apple:before{left:7px;top:-7px;height:6px;width:3px}.tray .apple:after{left:9px;top:-6px;width:8px;height:4px}
  .fruit.new .apple{outline-width:2px;outline-offset:1px}
}
.word-tabs button{min-width:48px}
@media (min-width:820px) and (max-height:840px) and (orientation:landscape){
  #task[data-view="add"] .sum-build,#task[data-view="add"] .take-result{width:auto;flex:0 1 auto}
  #task[data-view="add"] .number-group{flex:0 1 auto;width:auto;min-width:0;max-width:none}
  #task[data-view="add"] .tray{width:max-content;max-width:100%}
}

/* Words simplification (16 September): one prompt in Nook's bubble, a small activity heading, the gap is the input, plain sentence words, three quiet cards, keys ending in Delete / Clear / Enter. Buttons lay out with flex, never grid, and opt out of Safari text autosizing. */
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.word-scene .activity h2{font-size:17px;letter-spacing:0;margin:0 0 6px;color:#536647}
.instruction:empty{display:none}
.word-scene .companion img{width:120px;height:148px}
.sentence-row{margin:8px 0 4px}
.sentence{gap:6px 10px;margin:8px 0}
.sentence-words{display:inline-flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:0 .3em;min-height:48px;padding:4px 6px;border:0;background:transparent;font:900 26px/1.2 "Trebuchet MS",Arial,sans-serif;color:#3f4a5c;-webkit-text-size-adjust:100%;text-size-adjust:100%}
button.sentence-words{cursor:pointer;border-radius:12px}
button.sentence-words:active{background:#f4edc4}
.sentence .stop{font-size:30px;font-weight:900;color:#3f4a5c;line-height:1}
.sentence input.gap-input{box-sizing:border-box;width:calc(var(--gap-ch,6)*1ch + 34px);max-width:100%;min-width:130px;min-height:60px;margin:0;padding:6px 14px;border:3px dashed #839979;border-radius:14px;background:#fffdf0;color:#594777;font:900 26px/1.2 "Trebuchet MS",Arial,sans-serif;letter-spacing:1px;text-align:center;caret-color:#6a558a;outline:3px solid #b2c393;outline-offset:3px;-webkit-text-size-adjust:100%;text-size-adjust:100%}
.sentence input.gap-input:focus,.sentence input.gap-input:focus-visible{outline:4px solid #594777;outline-offset:3px;border-color:#594777}
.sentence input.gap-input[aria-invalid=true]{border-color:#b28e51;background:#fff6e8}
.hear-tiles{display:block;width:100%;margin:0;padding:0;border:0;background:transparent;font:inherit;color:inherit;cursor:pointer;border-radius:16px}
.hear-tiles .letter-tiles,.hear-tiles .sentence{margin:12px 0}
/* Cards, keys and the action row share one gap so their column edges line up. */
.word-bank.word-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:8px 0}
button.word-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:100%;min-width:0;min-height:76px;margin:0;padding:8px 6px;border:2px solid #d4bd71;border-radius:16px;background:#fff4c9;color:#594777;font:900 clamp(15px,3.5vw,23px)/1.2 "Trebuchet MS",Arial,sans-serif;box-shadow:none;overflow-wrap:anywhere;text-align:center;-webkit-text-size-adjust:100%;text-size-adjust:100%}
button.word-card.hint{outline:4px solid #477b59;outline-offset:4px}
.card-picture{display:block;width:44px;height:44px;flex:0 0 auto;visibility:hidden}
.card-picture.revealed{visibility:visible}
.card-picture img.symbol{width:44px;height:44px;display:block;margin:0}
.card-word{display:block;min-width:0}
.keyboard{gap:6px;margin-top:10px}
.key{border-bottom-width:3px;padding:2px;-webkit-text-size-adjust:100%;text-size-adjust:100%}
.key-actions{grid-column:1/-1;display:flex;gap:6px;margin-top:0}
.key-actions .key{flex:1 1 0;min-width:48px;min-height:48px;display:inline-flex;align-items:center;justify-content:center;gap:4px;padding:6px;font-size:15px;line-height:1.2}
.key-actions .key.function{background:#f3c9b9;border-color:#cc9c8c}
.key-actions .key.clear{background:#fbe7d0;border-color:#d1ab84;color:#5f4a2e}
.key-actions .key.space{background:#d4e9ef;border-color:#9cbdc6}
.key-actions .key.go{background:#376e5a;border-color:#285347;color:#fff;font-size:17px}
.keyboard.actions-only{grid-template-columns:1fr;max-width:420px;margin:10px auto 0}
.typing-row{margin:10px 0 0}
.picker-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 4px}.picker-tabs button{flex:1 1 auto;min-height:48px;font-size:14px}
@media(min-width:551px){button.word-card{flex-direction:row;gap:10px;min-height:60px;padding:6px 10px}}
@media(max-width:780px){.sentence-words{font-size:22px}.sentence input.gap-input{font-size:22px}.key-actions .key{font-size:13px}.key-actions .key.go{font-size:15px}}
@media(max-width:550px){.word-scene .companion img{width:68px;height:84px}.sentence-words{font-size:20px;min-height:44px}.sentence input.gap-input{font-size:20px;min-height:52px;min-width:104px;padding:4px 10px}.sentence .stop{font-size:24px}button.word-card{min-height:72px;padding:6px 4px}.card-picture,.card-picture img.symbol{width:36px;height:36px}.key-actions .key{font-size:12px;padding:4px}.key-actions .key.go{font-size:14px}}
/* iPad landscape: the picture sits beside the sentence and the card pictures beside their words, so the sentence, cards and keys all fit the task column without scrolling. */
@media (min-width:820px) and (max-height:840px) and (orientation:landscape){
  .word-scene .activity h2{font-size:15px;margin:0 0 2px}
  #task[data-view="sentence"] .sentence-row{display:flex;align-items:center;justify-content:center;gap:16px;margin:0}
  #task[data-view="sentence"] .word-picture{min-height:0;margin:0}
  #task[data-view="sentence"] .word-picture img.symbol{width:64px;height:64px}
  #task[data-view="sentence"] .sentence{margin:0}
  .sentence-words{font-size:24px}.sentence input.gap-input{font-size:24px;min-height:54px}
  .word-bank.word-cards{margin:6px 0;gap:5px}
  button.word-card{flex-direction:row;gap:10px;min-height:56px;padding:4px 8px;font-size:20px}
  .card-picture,.card-picture img.symbol{width:40px;height:40px}
  .keyboard{margin-top:6px;gap:5px}
  .key{min-height:48px;font-size:19px}
  .key-actions{gap:5px}
  .word-picture{min-height:0;margin:4px 0}.word-picture img.symbol{width:72px;height:72px}
  .hear-tiles .letter-tiles,.hear-tiles .sentence{margin:8px 0}
  .letter-tile{width:46px;height:54px;font-size:26px}
  .word-tile{min-height:48px;font-size:20px;padding:6px 10px}
  .choice.word-choice{min-height:52px;font-size:22px;padding:8px 12px}
  .typing-row{margin:6px 0 0}.word-line{min-height:48px;font-size:22px}
}

/* Moving on (16 September, Jof's iPad note): after a correct answer the Next button leaves the side column and sits full width under the result. Again and Next level stay in the column. */
.go-row{display:flex;justify-content:center;margin:14px 0 4px}
.go-row .next{width:100%;max-width:560px;min-height:76px;padding:14px 24px;border-radius:22px;border-bottom-width:7px;font-size:26px;line-height:1.2;-webkit-text-size-adjust:100%;text-size-adjust:100%}
@media(max-width:780px){.go-row .next{min-height:68px;font-size:23px}}
@media(max-width:550px){.go-row{margin:10px 0 2px}.go-row .next{min-height:64px;font-size:21px;padding:10px 16px}}
@media (min-width:820px) and (max-height:840px) and (orientation:landscape){.go-row{margin:8px 0 0}#task[data-view="add"]>.go-row{flex-basis:100%}.go-row .next{min-height:60px;font-size:22px;padding:8px 20px;border-bottom-width:5px}}

/* Feelings and Paint live on their own pages. Preserve existing four activity sizes: the two links share the row under them. */
.tabs .feelings-link{grid-column:span 2;min-height:48px;font-size:16px;background:#eee3f2;border:2px solid #846a93;border-radius:15px;box-shadow:none;color:#293e60;padding:10px;text-decoration:none}
.tabs .paint-link{background:#fdebd2;border-color:#b0793a}
@media(min-width:700px){.tabs{grid-template-columns:repeat(6,minmax(0,1fr))}.tabs .feelings-link{grid-column:auto;min-height:48px}}

/* Round 3: the level strip. Every level (and, in Words, every activity) is a tile in view all the time, so nobody has to find a chooser to change how hard it is. */
.garden-top{flex-wrap:nowrap;align-items:stretch;gap:10px}
.garden-top #scene-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.level-strip{flex:1 1 auto;min-width:0;display:flex;gap:7px;overflow-x:auto;overflow-y:hidden;padding:3px 3px 7px;scrollbar-width:none;-webkit-overflow-scrolling:touch;scroll-behavior:smooth}
.level-strip::-webkit-scrollbar{display:none}
.level-strip .tile{flex:1 0 auto;min-width:74px;min-height:54px;padding:4px 10px;border:2px solid #e3cf8d;border-bottom-width:4px;border-radius:15px;background:#fff8d9;color:#2c4258;font:inherit;font-weight:900;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;user-select:none;-webkit-user-select:none;touch-action:manipulation}
.level-strip .tile b{font-size:17px;white-space:nowrap;letter-spacing:.2px}
.level-strip .tile small{font-size:10px;font-weight:bold;color:#5a6b58;white-space:nowrap}
.level-strip .tile[aria-pressed="true"]{background:#fffef8;border-color:#2f5d50;box-shadow:0 0 0 3px #2f5d5033;transform:translateY(-1px)}
.level-strip .tile:active{transform:translateY(2px);border-bottom-width:2px}
.level-strip .tile:focus-visible{outline:4px solid #a36526;outline-offset:1px}
.level-strip .strip-gap{flex:0 0 2px;align-self:stretch;margin:6px 3px;background:#e3cf8d;border-radius:2px}
.level-strip .bead-tile{flex:0 0 auto;min-width:64px;font-size:10px;flex-direction:row;flex-wrap:wrap;gap:3px}
.level-strip .bead-tile .level-beads{display:inline-flex;gap:2px;align-items:center}
.level-strip .bead-tile .shape{width:14px;height:14px;flex:0 0 14px}
.level-strip .bead-tile .level-beads b{font-size:13px;margin:0 2px}
.level-strip .bead-tile .mini-group{display:inline-flex;gap:1px;margin-right:4px}
.level-strip .mini{display:flex;align-items:center;gap:3px;font-size:13px;line-height:1}
.level-strip .mini i{font-style:normal}
.level-strip .mini .gap{width:24px;height:16px;border:2px dashed #7e9a78;border-radius:5px;background:#fff}
.level-strip .mini .gap.small{width:13px}
.level-strip .mini .chip{padding:2px 4px;border:1.5px solid #d8c17a;border-radius:5px;background:#fff1c4;font-size:10px}
.level-strip .mini .chip:nth-child(2){transform:translateY(-3px) rotate(-5deg)}
.level-strip .mini .chip:nth-child(3){transform:translateY(2px) rotate(4deg)}
button.support{flex:0 0 auto;align-self:center;font-size:0!important;padding:0 12px;min-width:48px}
button.support::before{content:"⋯";font-size:24px;line-height:1}
.actions .help{display:inline-flex;align-items:center;justify-content:center;gap:8px}
.help .help-sign{flex:0 0 auto;width:34px;height:34px}
@media(max-width:550px){.level-strip .tile{min-width:62px;min-height:50px;padding:3px 7px}.level-strip .tile b{font-size:14px}.help .help-sign{width:28px;height:28px}}
.level-strip .bead-tile .shape.square{border-radius:3px}
.level-strip .bead-tile .shape.diamond{width:11px;height:11px;flex-basis:11px;margin:0 2px;border-radius:2px}
.level-strip .bead-tile .shape.oval{width:18px;height:11px;flex-basis:18px}
.level-strip .bead-tile .shape.triangle{width:0;height:0;flex-basis:auto;background:transparent;border-left:7px solid transparent;border-right:7px solid transparent;border-top:0;border-bottom:13px solid #c28a45;border-radius:0;box-shadow:none}
.level-strip .bead-tile .hole{width:14px;height:14px;flex:0 0 14px;border:2px dashed #5b4a7d;border-radius:4px;background:#efe6fb}

/* Round 3b. A ten is a row of ten small apples (five, a space, five) in a pale tray with its 10; left-over ones are loose apples. */
.tray{align-items:center;max-width:580px}
.stick,button.stick{position:relative;display:grid;grid-template-columns:repeat(10,auto);grid-template-rows:auto;align-items:end;justify-content:center;gap:3px;width:auto;min-width:0;height:auto;min-height:48px;padding:12px 10px 6px 34px;margin:0 0 4px;background:#fff4cf;border:2px solid #e0c983;border-bottom-width:4px;border-radius:14px;box-shadow:none}
.tray .stick,.tray button.stick{margin-bottom:4px;width:auto}
.stick i.apple,.tray .stick i.apple{display:block;width:17px;height:17px;margin:0;border-width:1.5px;border-radius:42% 44% 48% 48%;background:#e67b69;box-shadow:inset 2px 0 0 #ffffff24}
.stick i.apple:nth-of-type(6){margin-left:9px}
.stick i.apple:before,.tray .stick i.apple:before{left:7px;top:-6px;width:2px;height:5px}
.stick i.apple:after,.tray .stick i.apple:after{left:8px;top:-6px;width:7px;height:4px}
.stick b,.tray .stick b{position:absolute;left:6px;top:50%;bottom:auto;transform:translateY(-50%);font-size:12px;padding:1px 5px}
button.stick.counted{background:#e2efd7;border-color:#477b59}
button.stick>.count-tag{top:-11px;left:auto;right:-6px;transform:none}
.tray .five-frame.ones.loose{display:flex;flex-wrap:wrap;gap:4px;max-width:170px;padding:0;background:none;border:0;box-shadow:none}
.tray .five-frame.ones.loose .pocket{width:48px;height:48px;min-height:48px;border:0;background:none}
.tray .five-frame.ones.loose span.pocket{width:24px;height:30px;min-height:0}
.tray .five-frame.ones.loose span.pocket .apple{width:17px;height:17px;margin:0;border-width:1.5px}
.tray .five-frame.ones.loose span.pocket .apple:before{left:7px;top:-6px;width:2px;height:5px}
.tray .five-frame.ones.loose span.pocket .apple:after{left:8px;top:-6px;width:7px;height:4px}
.tray .five-frame.ones.loose button.pocket .apple{width:24px;height:24px;margin:0}
.tray .five-frame.ones.loose button.pocket.counted{background:#e2efd7;border:2px solid #477b59;border-radius:12px}
@media(max-width:780px){.stick,button.stick,.tray button.stick{width:auto;height:auto;padding:11px 8px 5px 30px;gap:2px}.stick i.apple,.tray .stick i.apple{width:14px;height:14px}.stick i.apple:nth-of-type(6){margin-left:6px}.stick i.apple:before,.tray .stick i.apple:before{left:5px}.stick i.apple:after,.tray .stick i.apple:after{left:6px;width:6px}}
/* Only Nook congratulates. The status line keeps its place and still speaks to a screen reader. */
.garden-status.unseen{color:transparent;user-select:none;-webkit-user-select:none}
/* Pattern families and two-line level tiles. */
.level-strip .family-tile{flex:0 1 190px;min-height:60px;gap:4px}
.level-strip .family-tile .level-beads{display:inline-flex;gap:5px;align-items:center}
.level-strip .family-tile .shape{width:22px;height:22px;flex:0 0 22px}
.level-strip .family-tile .shape.square{border-radius:5px}
.level-strip .family-tile .shape.diamond{width:17px;height:17px;flex-basis:17px;margin:0 3px;border-radius:3px}
.level-strip .family-tile .shape.triangle{width:0;height:0;flex-basis:auto;background:transparent;border-left:11px solid transparent;border-right:11px solid transparent;border-top:0;border-bottom:20px solid #c28a45;border-radius:0;box-shadow:none}
.level-strip .family-tile small{font-size:12px}
.level-strip .level-tile b+small{font-size:10px;font-weight:bold;color:#6a7763}
/* A family's bead string wraps in whole units (rows of six, or four for a four-bead unit), so each row starts the pattern again and the repeat lines up in columns. */
.pattern-strip.long.per-6{grid-template-columns:repeat(6,65px)}
.pattern-strip.long.per-4{grid-template-columns:repeat(4,65px)}
.pattern-strip.long.per-6 .bead-slot:nth-child(5n):after,.pattern-strip.long.per-4 .bead-slot:nth-child(5n):after{display:block}
.pattern-strip.long.per-6 .bead-slot:nth-child(6n):after,.pattern-strip.long.per-4 .bead-slot:nth-child(4n):after,.pattern-strip.long .bead-slot:last-child:after{display:none}
@media(max-width:780px){.pattern-strip.long.per-6{grid-template-columns:repeat(6,48px)}.pattern-strip.long.per-4{grid-template-columns:repeat(4,48px)}}
@media(max-width:550px){.pattern-strip.long.per-6{grid-template-columns:repeat(6,42px);gap:20px 5px}.pattern-strip.long.per-6 .bead-slot{width:42px}}
/* Word order: tiles are dragged onto the sentence. */
.word-options .word-choice{touch-action:none;cursor:grab}
.word-options .word-choice.dragging{opacity:.25}
.drag-ghost{position:fixed;left:0;top:0;z-index:30;margin:0;pointer-events:none;box-shadow:0 10px 22px #2c425833;cursor:grabbing;will-change:transform}
.drag-ghost.reject{animation:tile-reject .36s ease-in-out;border-color:#c9837a!important;background:#fbe3dd!important}
.word-choice.reject{animation:tile-reject .36s ease-in-out}
.sentence.drop-ready .word-tile.gap:not([aria-hidden]){background:#e9f5dd;outline-color:#477b59;transform:scale(1.06)}
@keyframes tile-reject{0%,100%{margin-left:0}20%{margin-left:-9px}40%{margin-left:9px}60%{margin-left:-6px}80%{margin-left:5px}}
.level-strip .family-tile{flex:1 0 auto;min-width:98px;max-width:200px;padding:4px 12px}
@media(max-width:550px){.level-strip .family-tile{min-width:68px;padding:4px 3px}.level-strip .family-tile .level-beads{gap:3px}.level-strip .family-tile .shape{width:15px;height:15px;flex-basis:15px}.level-strip .family-tile .shape.diamond{width:12px;height:12px;flex-basis:12px}.level-strip .family-tile .shape.triangle{border-left-width:8px;border-right-width:8px;border-bottom-width:14px}.level-strip .family-tile small{font-size:10px}}
/* Round 3c: the two groups EQUAL the joined group, so the sign between them is =, upright in every layout. */
.join-arrow.equals{font-size:34px;font-weight:900;color:#2c4258;line-height:1}
#task[data-view="add"]>.join-arrow.equals{transform:none;width:auto;margin:0 4px;font-size:28px}
/* Round 3c: a family's bead string is always ONE row of at most eight beads, which share the width of the task. */
.pattern-strip.one-row{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,72px);justify-content:center;gap:10px;flex-wrap:nowrap;margin:26px 0}
.pattern-strip.one-row .bead-slot{width:100%;min-width:0}
.pattern-strip.one-row .bead-slot:after{width:10px;right:-12px}
@media(max-width:780px){.pattern-strip.one-row{gap:7px}.pattern-strip.one-row .bead-slot:after{width:7px;right:-9px}}
@media(max-width:550px){.pattern-strip.one-row{gap:4px}.pattern-strip.one-row .bead-slot{height:50px;border-radius:9px}.pattern-strip.one-row .bead-slot:after{display:none}.pattern-strip.one-row .shape{transform:scale(.62)}.pattern-strip.one-row .shape.diamond{transform:rotate(45deg) scale(.62)}.pattern-strip.one-row button.bead-slot{font-size:15px}}
/* The first whole unit is the model: a shared pale band sits under those beads so "this bit repeats" can be seen. */
.pattern-strip.one-row .bead-slot.model{background:#e6f1d6;border-color:#9fbd86;box-shadow:0 7px 0 -3px #9fbd86}
/* Round 3c: take away is one group. Eaten apples are pale with one clear stroke; once answered they vanish and the rest keep their places. */
.take-one{display:flex;justify-content:center;margin:18px auto 6px}
.take-one .apples{display:flex;flex-wrap:wrap;justify-content:center;gap:14px;max-width:520px;padding:16px 22px;background:#fff1cb;border:2px solid #e0c983;border-bottom-width:5px;border-radius:22px;min-height:84px;min-width:120px}
.take-one .fruit{position:relative;display:inline-grid;place-items:center}
.take-one .fruit.gone .apple,.tray i.apple.gone,.tray .fruit.gone .apple{opacity:.38}
.take-one .fruit.gone:after,.tray .fruit.gone:after{content:"";position:absolute;left:-4px;right:-4px;top:54%;height:5px;border-radius:3px;background:#7a4a3f;transform:rotate(-38deg)}
.tray .stick i.apple.gone{position:relative;overflow:visible}
.tray .stick i.apple.gone:after,.tray .stick i.apple.gone:before{all:unset}
.tray .stick i.apple.gone{background-image:linear-gradient(128deg,transparent 42%,#5e362d 42%,#5e362d 58%,transparent 58%);opacity:.5}
.take-one .fruit.away,.tray i.apple.away,.tray .fruit.away{visibility:hidden}
.take-one .tray .fruit{position:relative}
.take-one .count-tag{position:absolute;right:-8px;bottom:-8px}
.take-one .tray{flex-direction:column;align-items:flex-start;gap:6px;margin:0;padding:14px 18px;background:#fff1cb;border:2px solid #e0c983;border-bottom-width:5px;border-radius:22px}
.take-one .tray .stick{padding:9px 4px 3px;margin:0;background:none;border:0;gap:5px;min-height:0}
.take-one .tray .stick i.apple{width:25px;height:25px;border-width:2px}
.take-one .tray .stick i.apple:nth-of-type(6){margin-left:14px}
.take-one .tray .stick i.apple:before{left:10px;top:-8px;width:3px;height:7px}
.take-one .tray .stick i.apple:after{left:12px;top:-8px;width:10px;height:5px}
.take-one .tray .stick i.apple.gone{opacity:.55;background-color:#f3c9bf;background-image:linear-gradient(128deg,transparent 43%,#5e362d 43%,#5e362d 57%,transparent 57%)}
.take-one .tray .five-frame.ones.loose{max-width:none;gap:5px;padding:9px 4px 3px;flex-wrap:nowrap}
.take-one .tray .five-frame.ones.loose span.pocket{width:25px;height:25px}
.take-one .tray .five-frame.ones.loose span.pocket:nth-child(6){margin-left:14px}
.take-one .tray .five-frame.ones.loose span.pocket .apple{width:25px;height:25px;border-width:2px}
.take-one .tray .five-frame.ones.loose span.pocket .apple:before{left:10px;top:-8px;width:3px;height:7px}
.take-one .tray .five-frame.ones.loose span.pocket .apple:after{left:12px;top:-8px;width:10px;height:5px}
.take-one .tray .fruit.gone .apple{opacity:.55}
.take-one .tray .fruit.gone:after{left:-2px;right:-2px;top:50%;height:4px}
@media(max-width:550px){.take-one .tray{padding:10px 8px}.take-one .tray .stick,.take-one .tray .five-frame.ones.loose{gap:3px}.take-one .tray .stick i.apple,.take-one .tray .five-frame.ones.loose span.pocket,.take-one .tray .five-frame.ones.loose span.pocket .apple{width:19px;height:19px}.take-one .tray .stick i.apple:nth-of-type(6),.take-one .tray .five-frame.ones.loose span.pocket:nth-child(6){margin-left:8px}.take-one .tray .stick i.apple:before,.take-one .tray .five-frame.ones.loose span.pocket .apple:before{left:7px}.take-one .tray .stick i.apple:after,.take-one .tray .five-frame.ones.loose span.pocket .apple:after{left:8px;width:8px}.take-one .apples{gap:8px;padding:12px}}
