/* Toddler-app Home polish (Nov 30). Style-only layer over the shelf Home: no DOM, save or route changes. */
@font-face{font-family:Nunito;font-weight:600;font-display:swap;src:url(fonts/nunito-latin-600-normal.woff2) format('woff2')}
@font-face{font-family:Nunito;font-weight:700;font-display:swap;src:url(fonts/nunito-latin-700-normal.woff2) format('woff2')}
@font-face{font-family:Nunito;font-weight:800;font-display:swap;src:url(fonts/nunito-latin-800-normal.woff2) format('woff2')}
@font-face{font-family:Nunito;font-weight:900;font-display:swap;src:url(fonts/nunito-latin-900-normal.woff2) format('woff2')}

/* One rounded, friendly typeface everywhere. */
body,button,input,select{font-family:Nunito,'Arial Rounded MT Bold',system-ui,sans-serif}
h1,h2,h3,.brand,button strong{font-family:Nunito,'Arial Rounded MT Bold',system-ui,sans-serif;font-weight:900}

/* Header: chunky toy buttons. */
header .brand{font-size:26px;font-weight:900;color:#5a3f8a;letter-spacing:-.4px}
header .dock-item,header #sound,header .home-button{border-radius:22px!important;border:3px solid #fff!important;box-shadow:0 5px 0 #d8c9a7,0 10px 18px #6b52301f!important;font-weight:900!important;transition:transform .12s ease,box-shadow .12s ease}
header .dock-item:active,header #sound:active,header .home-button:active{transform:translateY(4px);box-shadow:0 1px 0 #d8c9a7!important}
header .dock-book{background:linear-gradient(#fff6d6,#ffe6a3)!important}
header .dock-playground{background:linear-gradient(#f1e8ff,#dccbff)!important}
header #sound{background:linear-gradient(#ffffff,#eef3ff)!important}
header .parent-btn{opacity:.75;font-size:12px!important}

/* Home opens straight onto the games: the website-style hero and heading bar go away. */
#home-screen.home-shelf .home-welcome,
#home-screen.home-shelf .shelf-games-heading,
#home-screen.home-shelf .shelf-parent-note{display:none!important}
#home-screen.home-shelf{padding-top:calc(var(--floating-nav-height,82px) + 6px)!important}

/* Category chips: big bubbly toggles. */
#home-screen.home-shelf .shelf-categories{background:#ffffffb8!important;border:3px solid #fff!important;border-radius:30px!important;box-shadow:0 8px 24px #5e7a4a22!important;padding:8px!important;gap:8px!important;margin-bottom:18px!important;backdrop-filter:blur(8px)}
#home-screen.home-shelf .shelf-categories button{border-radius:22px!important;font-weight:900!important;font-size:17px!important;border:0!important;background:#fffdf6!important;box-shadow:0 4px 0 #e5dcc6!important;transition:transform .12s ease}
#home-screen.home-shelf .shelf-categories button[aria-pressed=true],
#home-screen.home-shelf .shelf-categories button.is-active,
#home-screen.home-shelf .shelf-categories button[aria-selected=true]{background:linear-gradient(#ffe27a,#ffc94a)!important;box-shadow:0 4px 0 #d99a1f!important;color:#5b3b00!important}
#home-screen.home-shelf .shelf-categories button:active{transform:translateY(3px)}

/* Game tiles: chunky toy buttons with a colour each, big picture, just the name. */
#home-screen.home-shelf .game-tiles{gap:22px 18px!important}
#home-screen.home-shelf .game-tile{--tile:#ffb84d;--tile-dark:#e08a12;background:#fff!important;border:4px solid #fff!important;border-radius:30px!important;padding:10px 10px 14px!important;box-shadow:0 8px 0 var(--tile-dark),0 14px 26px #3d2f1a26!important;transition:transform .14s cubic-bezier(.3,1.6,.5,1),box-shadow .14s ease!important}
#home-screen.home-shelf .game-tile:nth-child(6n+1){--tile:#ffb84d;--tile-dark:#e9961f}
#home-screen.home-shelf .game-tile:nth-child(6n+2){--tile:#6fd0f7;--tile-dark:#2f9fd0}
#home-screen.home-shelf .game-tile:nth-child(6n+3){--tile:#ff8fb3;--tile-dark:#e35d8b}
#home-screen.home-shelf .game-tile:nth-child(6n+4){--tile:#8be07a;--tile-dark:#4fb33c}
#home-screen.home-shelf .game-tile:nth-child(6n+5){--tile:#b99cff;--tile-dark:#8462e0}
#home-screen.home-shelf .game-tile:nth-child(6n){--tile:#ffd84d;--tile-dark:#e0ad12}
#home-screen.home-shelf .game-tile:hover{transform:translateY(-5px) rotate(-.6deg)!important}
#home-screen.home-shelf .game-tile:active{transform:translateY(6px) scale(.98)!important;box-shadow:0 2px 0 var(--tile-dark),0 4px 10px #3d2f1a20!important}
#home-screen.home-shelf .game-tile>.tile-picture{border-radius:22px!important;position:relative;background:var(--tile)}
#home-screen.home-shelf .game-tile>strong{font-size:20px!important;font-weight:900!important;color:#3b3360!important;text-align:center;margin:12px 6px 0!important;letter-spacing:-.2px}
#home-screen.home-shelf .game-tile>small,
#home-screen.home-shelf .game-tile .tile-arrow,
#home-screen.home-shelf .game-tile>:is(svg,i):last-child{display:none!important}
#home-screen.home-shelf .game-tile::after,#home-screen.home-shelf .game-tile .shelf-play{display:none!important}
/* Coloured strip under the name ties each tile to its colour. */
#home-screen.home-shelf .game-tile>strong::after{content:'';display:block;width:42px;height:6px;margin:8px auto 0;border-radius:6px;background:var(--tile)}

/* Real in-game covers sit on top of any older layered preview art. */
#home-screen .game-tile .tile-picture>img.real-cover{visibility:visible!important;opacity:1!important;display:block!important;transform:none!important;position:absolute!important;inset:0!important;z-index:50!important;width:100%;height:100%;object-fit:cover;border-radius:inherit;pointer-events:none}

@media (max-width:900px) and (orientation:portrait){#home-screen.home-shelf .game-tiles{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media (max-width:600px){
 #home-screen.home-shelf .game-tiles{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px 12px!important}
 #home-screen.home-shelf .game-tile>strong{font-size:16px!important}
 #home-screen.home-shelf .shelf-categories button{font-size:14px!important}
}
@media (prefers-reduced-motion:reduce){#home-screen.home-shelf .game-tile{transition:none!important}}
