/* The three-character sprite is painted only on a square: never stretch either axis. */
.petvisual{background-image:none!important;display:grid;place-items:center;overflow:hidden}
.petportrait{width:min(100%,var(--pet-size,210px));aspect-ratio:1 / 1;flex-shrink:0;background:url('companions.png') no-repeat;background-size:300% 100%}
.petportrait.panda{background-position:0% center}.petportrait.rabbit{background-position:50% center}.petportrait.fox{background-position:100% center}.mini{--pet-size:90px}.petcard .petvisual{height:260px;--pet-size:260px}.feature .petvisual{--pet-size:210px}
.learning-strip{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-bottom:28px}.learning-strip h2{font-size:24px}.learning-report{margin-top:24px}.table-scroll{overflow-x:auto}.table-scroll table{min-width:560px}.studio-layout{display:grid;grid-template-columns:1.1fr 1fr;gap:28px;align-items:start}.studio-layout textarea{width:100%;resize:vertical;border:1px solid #b9c8b6;border-radius:12px;padding:12px;font:inherit;color:var(--ink);min-height:130px}.studio-layout input[type=text]{width:100%}.studio-layout select{width:100%}.form-pair{margin:18px 0;gap:14px}.wordbank{display:flex;flex-wrap:wrap;gap:5px;align-items:center;margin:12px 0}.storybook-page{background:#fffef7;border:1px solid #dfdccb;border-radius:12px 26px 26px 12px;box-shadow:5px 6px 0 #e9e7da;overflow:hidden}.bookheading{font-size:22px;font-weight:700;padding:18px 24px;text-align:center;overflow-wrap:anywhere}.book-scene{position:relative;background:#e5efd9;display:flex;align-items:center;justify-content:center;min-height:260px;padding:25px}.scene-home{background:#f8e8c5}.scene-moon{background:#dee2f4}.book-scene .petvisual{width:190px;height:190px;--pet-size:190px;border-radius:22px;background-color:#fbfaf4}.scene-symbol{position:absolute;top:14px;left:18px;font-size:40px}.book-object{font-size:55px;align-self:end;margin-left:8px}.book-writing{padding:22px 26px;font-size:25px;min-height:100px;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.booknumber{text-align:center;font-size:14px;color:var(--muted);padding:10px}.book-reader{max-width:640px;margin:0 auto}.book-controls{margin-top:18px;justify-content:center}.bookshelf{margin-top:40px}.bookshelf h3{overflow-wrap:anywhere}.studio-layout .row{margin-top:12px}.learning-strip .btn{margin-top:5px}#review-entry{margin:12px 8px 12px 0}textarea:focus-visible{outline:3px solid #d49b20;outline-offset:3px}
@media(max-width:700px){.learning-strip,.studio-layout{grid-template-columns:1fr}.petcard .petvisual{height:150px;--pet-size:120px}.mini{--pet-size:65px}.form-pair{grid-template-columns:1fr}.book-scene{min-height:230px;padding:20px}.book-scene .petvisual{width:150px;height:150px;--pet-size:150px}.book-object{font-size:42px}.book-writing{font-size:22px}.bookheading{font-size:20px}.learning-strip h2{font-size:22px}}
