#story-room{width:min(1180px,calc(100% - 24px));max-height:95dvh;padding:0;border:3px solid #fff;border-radius:28px;background:#fffaf3;color:#42314f;overflow:auto}#story-room::backdrop{background:#25163899;backdrop-filter:blur(7px)}#story-room button{font-family:inherit;color:inherit;min-height:46px;border-radius:14px;background:#fff;border:1px solid #ded0e8;padding:10px 15px;font-weight:800}#story-room button:focus-visible,#story-room summary:focus-visible{outline:4px solid #7b3b92;outline-offset:3px}#story-room button:disabled{opacity:.4;cursor:default}#story-room .story-toolbar{display:flex;align-items:center;gap:15px;position:sticky;top:0;z-index:5;max-width:none;width:100%;padding:14px 22px;background:#fffaf3f5;backdrop-filter:blur(12px);border-bottom:1px solid #e9ddec}#story-title{font-size:21px;margin:0;flex:1;outline:none}.story-toolbar-right{display:flex;gap:8px;align-items:center}#story-room .story-library{max-width:none;padding:30px}.story-library-intro{text-align:center;margin:0 0 30px}.story-library-intro>span{font-size:10px;font-weight:900;letter-spacing:2px;color:#83608c}.story-library-intro h3{font-size:36px;line-height:1.2;margin:12px 0 0;letter-spacing:-1px}.story-shelf{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:23px}#story-room .story-cover{padding:0;overflow:hidden;border:3px solid white;text-align:left;border-radius:24px;background:var(--book-color);box-shadow:0 5px 0 #e2d6e8;transition:transform .15s}.story-cover:hover{transform:translateY(-3px)}.story-scene{aspect-ratio:1;background-size:300% 200%;background-repeat:no-repeat;background-color:#eee3f5}.story-cover-copy{padding:17px 20px 19px}.story-cover-copy small{font-size:12px;font-weight:800;color:#695474}.story-cover-copy h4{font-size:23px;line-height:1.18;margin:6px 0 8px;letter-spacing:-.4px}.story-cover-copy p{font-size:13px;line-height:1.5;margin:0 0 16px;font-weight:400}.story-cover-copy>span{display:flex;justify-content:space-between;font-size:12px;align-items:center}.story-cover-copy b{font-size:23px}.story-chapters{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;padding:16px 22px;border-bottom:1px solid #e9ddec}#story-room .story-chapters button{display:flex;gap:8px;align-items:center;padding:7px;text-align:left;border:2px solid transparent;background:#f0e8f5}.story-tab-art{width:46px;flex-shrink:0;border-radius:9px}.story-chapters small{display:block;font-size:8px;letter-spacing:.7px;line-height:1.5}.story-chapters strong{display:block;font-size:11px;line-height:1.25}.story-chapters [aria-current=step]{border-color:#775095!important;background:#fff!important}.story-reader{display:grid;grid-template-columns:1fr 1fr;gap:28px;padding:24px!important;max-width:none!important;margin:0!important;align-items:start}.story-main-scene{border-radius:22px;position:sticky;top:96px;width:100%;box-shadow:0 8px 25px #44305b12}.story-page{padding:5px 5px 0}.story-chapter-count{font-size:10px;letter-spacing:1.5px;font-weight:900;color:#876493;margin:0 0 8px}.story-page h3{font-size:30px;line-height:1.15;letter-spacing:-.5px;margin:0 0 15px}.story-narration-controls{display:flex;gap:10px}.story-prose{font-size:20px;line-height:1.75;margin:20px 0 18px}.story-sentence{border-radius:4px}.story-sentence.current{background:#f7e2a5;box-shadow:0 0 0 3px #f7e2a5}#story-room .story-primary{background:#73518f;color:#fff;border-color:#73518f}.story-wonder{border-top:1px dashed #d2c1de;padding-top:15px;font-size:16px;line-height:1.6}.story-wonder summary{cursor:pointer;font-weight:800;min-height:44px}.story-wonder p{margin:5px 0 13px}#story-room .story-reader-footer{padding:0 24px 24px;font-size:14px;color:#685375}#story-status{min-height:1.5em;margin:4px 0 12px;text-align:center}.story-reader-footer>div{display:flex;align-items:center;justify-content:space-between;gap:10px}.story-large .story-prose{font-size:26px;line-height:1.8}.story-large .story-wonder{font-size:21px}body.reduced .story-cover{transition:none}body.su-contrast #story-room,body.su-contrast #story-room .story-toolbar{background:#fff!important;color:#141414!important}body.su-contrast .story-sentence.current{outline:2px solid #141414;background:#fff}body.su-contrast #story-room .story-primary{background:#fff!important;color:#141414!important}body.su-large .story-prose{font-size:25px}
@media(max-width:1000px){.story-chapters{display:flex;overflow-x:auto}.story-chapters button{flex:0 0 155px}.story-reader{gap:20px}.story-prose{font-size:18px}.story-page h3{font-size:26px}}
@media(max-width:700px){#story-room{width:calc(100% - 12px);max-height:97dvh;border-radius:22px}#story-room .story-toolbar{padding:10px;gap:8px;flex-wrap:wrap}#story-title{font-size:18px}.story-toolbar-right{gap:5px}#story-room .story-toolbar button{padding:8px 10px;font-size:13px}.story-library-intro h3{font-size:28px}#story-room .story-library{padding:22px 14px}.story-shelf{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.story-cover-copy{padding:13px 12px}.story-cover-copy h4{font-size:18px}.story-cover-copy p{display:none}.story-cover-copy>span{font-size:10px}.story-cover-copy small{font-size:11px}.story-reader{grid-template-columns:1fr;padding:14px!important;gap:22px}.story-main-scene{position:static}.story-chapters{padding:12px 14px}.story-page{padding:0 5px}.story-prose{font-size:20px}.story-page h3{font-size:28px}#story-room .story-reader-footer{padding:0 14px 20px}.story-reader-footer button{font-size:13px;padding:10px!important}.story-reader-footer>div>span{font-size:12px}.story-toolbar-right{margin-left:auto}.story-large .story-prose{font-size:25px}}
@media(prefers-reduced-motion:reduce){.story-cover{transition:none!important}}

/* Keep every playroom category the same size across all rows. */
body[data-room="home"] #cards{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:1fr}
body[data-room="home"] #cards>.activity{min-width:0;height:100%}
body[data-room="home"] #cards .art:has(.story-category-art){padding-right:0;letter-spacing:0}
.story-category-art{display:block;flex-shrink:0;width:105px;height:105px;border-radius:18px;background:url("story-scenes/little-surprise.webp") 0 0/300% 200% no-repeat}
@media(max-width:650px){body[data-room="home"] #cards{grid-template-columns:repeat(2,minmax(0,1fr))}.story-category-art{width:85px;height:85px;border-radius:15px}}
