/* Home-only toy-box redesign. Removing the shelf flag restores the preceding Home. */
body:has(#home-screen.home-shelf:not([hidden])){overflow:auto;background:#f7f2e8;color:#3e5c53}
body:has(#home-screen.home-shelf:not([hidden]))>header{position:fixed;background:#f7f2e8f5;border-bottom:1px solid #e4dccb;box-shadow:none;backdrop-filter:blur(8px);padding:14px max(24px,calc((100vw - 1280px)/2));gap:16px}
body:has(#home-screen.home-shelf:not([hidden])) header .brand{color:#45665a;text-shadow:none;font-size:25px;white-space:nowrap}
body:has(#home-screen.home-shelf:not([hidden])) header .brand-icon{box-shadow:none!important;border-radius:14px!important;transform:rotate(-7deg)!important}
body:has(#home-screen.home-shelf:not([hidden])) header .dock-item{min-height:50px;border:1px solid #e4d7bf;border-radius:17px;background:#fffdf6;box-shadow:0 3px #d9ccb766;color:#566c5d;font-size:14px;padding:8px 14px}
body:has(#home-screen.home-shelf:not([hidden])) header .dock-art{width:31px;height:31px}
body:has(#home-screen.home-shelf:not([hidden])) header .icon-btn{background:#fffdf6;border:1px solid #e4d7bf;box-shadow:0 3px #d9ccb766;width:48px;height:48px;border-radius:16px}
body:has(#home-screen.home-shelf:not([hidden])) header #grownups{padding:10px 12px;min-height:48px;font-size:12px;border:1px solid #e4d7bf;background:#eee7da;box-shadow:none;border-radius:16px}
#home-screen.home-shelf{--home-preview-height:155px;position:relative;width:100%;height:auto;min-height:calc(100dvh - 60px);max-width:1280px;margin:0 auto;padding:calc(var(--floating-nav-height,80px) + 26px) 24px 20px;overflow:visible;background:none;text-align:left;isolation:isolate}
#home-screen.home-shelf[hidden]{display:none!important}
#home-screen.home-shelf>.home-sun,#home-screen.home-shelf>.home-cloud{display:none}
#home-screen.home-shelf .home-welcome{display:grid;grid-template-columns:1fr 1fr;align-items:center;min-height:245px;position:relative;margin:0 0 30px;padding:28px 42px;border-radius:34px;background:#e5ebdc;overflow:hidden;border:1px solid #d9e1cf;box-shadow:inset 0 0 0 6px #f4f5e845}
.shelf-eyebrow{display:block;font-size:10px;font-weight:900;letter-spacing:2.5px;color:#839373}
#home-screen.home-shelf .home-welcome h1{font-family:Nunito,sans-serif;font-size:clamp(40px,4.3vw,64px);font-weight:900;line-height:1.02;letter-spacing:-2px;color:#3e6657;margin:10px 0 12px;text-shadow:none}
#home-screen.home-shelf .home-welcome h1 span{color:#a87b4f}
#home-screen.home-shelf .home-welcome p{font-size:15px;font-weight:600;color:#7a8b70;line-height:1.55;margin:0;padding:0;background:none;border:0;box-shadow:none}
.shelf-welcome-art{position:absolute;right:3%;width:47%;height:calc(100% - 18px);bottom:0;pointer-events:none}
.shelf-art-arch{position:absolute;left:12%;right:15%;bottom:-13%;height:102%;border:1px solid #fff9;background:#d3dfc6;border-radius:160px 160px 0 0;box-shadow:0 0 0 8px #ffffff20}
.shelf-sun{position:absolute;right:5%;top:1%;width:85px;height:85px;transform:rotate(9deg)}
.shelf-fox,.shelf-bunny{position:absolute;bottom:8%;height:92%;width:49%;object-fit:contain;filter:drop-shadow(0 9px 4px #64826322)}
.shelf-fox{left:4%;height:78%;transform:rotate(-5deg)}.shelf-bunny{right:6%;transform:rotate(4deg)}
.shelf-art-label{position:absolute;bottom:6%;left:28%;font-size:11px;font-weight:900;color:#667b60;padding:8px 14px;background:#f8f3e6;border:2px solid #fff8;border-radius:10px;transform:rotate(-4deg);box-shadow:0 3px #b6c2a638}
.shelf-games-heading{display:flex;justify-content:space-between;align-items:center;margin:0 0 18px;gap:15px}
.shelf-games-heading h2{font-size:27px;letter-spacing:-.6px;color:#466354;margin:6px 0 0}
#shelf-game-count{font-size:12px;color:#8c9883;white-space:nowrap}
.shelf-categories{position:sticky;top:var(--floating-nav-height,80px);z-index:12;display:flex;gap:10px;overflow-x:auto;padding:8px 0 18px;margin-bottom:7px;background:#f7f2e8f5;scrollbar-width:none;touch-action:pan-x;overscroll-behavior-x:contain}
.shelf-categories::-webkit-scrollbar{display:none}
.shelf-categories button{flex:0 0 auto;display:flex;align-items:center;justify-content:center;gap:7px;min-height:55px;padding:8px 17px;border:1px solid #e2dacb;border-radius:17px;background:#fffcf6;color:#7f8976;font-size:13px;font-weight:900;box-shadow:0 3px #e5daca66;touch-action:manipulation}
.shelf-categories button img,.shelf-categories button svg{width:32px;height:32px;object-fit:contain;pointer-events:none}
.shelf-categories button[aria-pressed=true]{background:#e2ebdb;border-color:#9bb292;color:#4c735a;box-shadow:0 3px #adc39f}
.shelf-categories button:focus-visible{outline:3px solid #a17d53;outline-offset:3px}
#home-screen.home-shelf .game-tiles{position:relative;inset:auto;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:auto;gap:24px 20px;width:100%;margin:0;padding:4px 0 20px;overflow:visible;background:none;border:0;box-shadow:none;backdrop-filter:none}
#home-screen.home-shelf .game-tile{position:relative;display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;min-width:0;min-height:0;height:100%;padding:10px 10px 16px;border:1px solid #e5daca;border-radius:23px;background:#fffdf7;color:#4f665c;text-align:left;box-shadow:0 5px 0 #ded2bf80,0 8px 20px #64513906;transition:transform .16s,box-shadow .16s;cursor:pointer;touch-action:pan-y;overflow:hidden}
#home-screen.home-shelf .game-tile[hidden]{display:none!important}
#home-screen.home-shelf .game-tile:hover{transform:translateY(-4px);box-shadow:0 7px 0 #c9bba180,0 13px 24px #64513914}
#home-screen.home-shelf .game-tile:active{transform:translateY(1px);box-shadow:0 2px #ded2bf80}
#home-screen.home-shelf .game-tile:focus-visible{outline:4px solid #b4935d;outline-offset:4px}
#home-screen.home-shelf .game-tile>.tile-picture{display:block;flex:none;width:100%;height:var(--home-preview-height);min-height:var(--home-preview-height);margin:0;border-radius:15px;border:0!important;box-shadow:none!important;transform:none!important;overflow:hidden}
#home-screen.home-shelf .tile-picture.polished-preview{border:0!important;border-radius:15px!important}
#home-screen.home-shelf .game-tile>strong{font-family:Nunito,sans-serif;font-weight:900;font-size:19px;line-height:1.2;min-height:1.2em;margin:13px 30px 0 3px;letter-spacing:-.3px;display:block;color:#4c665a}
#home-screen.home-shelf .game-tile>small{display:block;font-size:11px;font-weight:600;line-height:1.4;color:#8d9785;margin:6px 28px 0 3px;min-height:2.8em}
.shelf-play{position:absolute;right:13px;bottom:16px;display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#eee9db;color:#859376;font-size:18px}
#home-screen.home-shelf .game-tile[data-shelf-category=make]{background:#fff9f1}
#home-screen.home-shelf .game-tile[data-shelf-category=explore]{background:#f4f8f2}
#home-screen.home-shelf .game-tile[data-shelf-category=learn]{background:#f8f5fc}
#home-screen.home-shelf .game-tile[data-shelf-category=care]{background:#fff9eb}
#home-screen.home-shelf .game-tile[data-shelf-category=together]{background:#edf3f8}
.shelf-parent-note{display:flex;align-items:center;justify-content:space-between;padding:24px 2px 10px;color:#929a87;font-size:12px;gap:20px}.shelf-parent-note a{color:#758873;text-underline-offset:3px}
body:has(#home-screen.home-shelf:not([hidden]))>footer{background:none;border:0;font-size:12px;color:#a2a68e;padding:16px 20px 26px}
@media(min-width:1550px){#home-screen.home-shelf{max-width:1400px;--home-preview-height:175px}}
@media(max-width:1050px){#home-screen.home-shelf{--home-preview-height:148px}.shelf-categories{gap:8px}.shelf-categories button{padding:8px 13px}#home-screen.home-shelf .game-tiles{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 17px}#home-screen.home-shelf .home-welcome{padding:26px 30px;min-height:230px}.shelf-sun{width:65px;height:65px}}
@media(max-width:760px){body:has(#home-screen.home-shelf:not([hidden]))>header{padding:10px 14px;gap:9px;flex-wrap:wrap}body:has(#home-screen.home-shelf:not([hidden])) header .brand{font-size:21px}body:has(#home-screen.home-shelf:not([hidden])) header .dock-item{font-size:12px;min-height:46px;padding:6px 9px}body:has(#home-screen.home-shelf:not([hidden])) header .game-dock{gap:8px}body:has(#home-screen.home-shelf:not([hidden])) header #grownups{font-size:11px;padding:6px 9px}#home-screen.home-shelf{padding:calc(var(--floating-nav-height,110px) + 15px) 16px 12px;--home-preview-height:145px}#home-screen.home-shelf .home-welcome{min-height:200px;padding:24px;margin-bottom:24px;border-radius:26px}#home-screen.home-shelf .home-welcome h1{font-size:43px}.shelf-eyebrow{font-size:9px;letter-spacing:1.8px}#home-screen.home-shelf .home-welcome p{font-size:12px}.shelf-welcome-art{right:0;width:48%}.shelf-art-label{left:15%;font-size:9px;padding:6px 9px}.shelf-games-heading h2{font-size:23px}#shelf-game-count{font-size:10px}.shelf-categories{gap:8px;padding-bottom:15px;margin-bottom:1px}.shelf-categories button{min-height:52px;border-radius:15px;padding:7px 12px;font-size:12px}.shelf-categories button img,.shelf-categories button svg{width:29px;height:29px}#home-screen.home-shelf .game-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 13px}#home-screen.home-shelf .game-tile{padding:8px 8px 13px;border-radius:20px}#home-screen.home-shelf .game-tile>strong{font-size:18px}.shelf-parent-note{font-size:10px;padding-top:15px}}
@media(max-width:460px){body:has(#home-screen.home-shelf:not([hidden]))>header{padding:9px 12px}body:has(#home-screen.home-shelf:not([hidden])) header .game-dock{width:auto;order:3;flex:1;justify-content:flex-start}body:has(#home-screen.home-shelf:not([hidden])) header .top-actions{margin-left:auto;gap:6px}body:has(#home-screen.home-shelf:not([hidden])) header .parent-btn span{display:none}body:has(#home-screen.home-shelf:not([hidden])) header #grownups{min-height:44px;min-width:44px;font-size:17px}body:has(#home-screen.home-shelf:not([hidden])) header .icon-btn{width:44px;height:44px}body:has(#home-screen.home-shelf:not([hidden])) header .dock-item{min-height:44px;padding:5px 10px}body:has(#home-screen.home-shelf:not([hidden])) header .dock-art{width:26px;height:26px}#home-screen.home-shelf{padding-left:13px;padding-right:13px;--home-preview-height:112px}#home-screen.home-shelf .home-welcome{min-height:174px;padding:22px 17px;margin-bottom:22px;border-radius:25px}#home-screen.home-shelf .home-welcome h1{font-size:35px;letter-spacing:-1.3px;margin:7px 0 9px}#home-screen.home-shelf .home-welcome p{font-size:10px;line-height:1.5}.shelf-welcome-art{width:47%;right:-1%;height:90%}.shelf-sun{width:48px;height:48px;top:0}.shelf-fox{left:-7%;height:73%;width:59%;bottom:12%}.shelf-bunny{right:0;width:65%;bottom:12%;height:87%}.shelf-art-label{left:10%;bottom:8%;font-size:7px;padding:4px 6px;border-radius:7px}.shelf-games-heading{gap:7px;margin-bottom:10px}.shelf-games-heading h2{font-size:21px}#shelf-game-count{font-size:9px;max-width:80px;white-space:normal;text-align:right}#home-screen.home-shelf .game-tile>strong{font-size:16px;margin:10px 18px 0 2px;line-height:1.2}#home-screen.home-shelf .game-tile>small{font-size:10px;margin:5px 15px 0 2px;min-height:2.8em}#home-screen.home-shelf .game-tile{padding:7px 7px 11px;border-radius:18px}.shelf-play{right:8px;bottom:12px;width:20px;height:20px;font-size:15px}.shelf-parent-note{align-items:flex-start;gap:10px}.shelf-parent-note>span{max-width:150px}}
@media(max-height:520px) and (min-width:600px){#home-screen.home-shelf .home-welcome{min-height:165px;padding:18px 28px}#home-screen.home-shelf .home-welcome h1{font-size:38px}.shelf-welcome-art{width:40%}#home-screen.home-shelf .game-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}.shelf-categories{position:relative;top:0}}
@media(prefers-reduced-motion:reduce){#home-screen.home-shelf .game-tile{transition:none}}
/* Keep small supporting labels readable against the warm paper. */
#home-screen.home-shelf .shelf-eyebrow{color:#657c58}
#home-screen.home-shelf .home-welcome p{color:#5c7054}
#home-screen.home-shelf .game-tile>small{color:#68765f}
.shelf-categories button{color:#63755c}
#shelf-game-count{color:#6e8063}
.shelf-parent-note,.shelf-parent-note a{color:#60775d}
