html[data-child=true] #worksheets,html[data-child=true] #review-tests{display:none!important}
.child-menu{position:relative;z-index:100;margin-left:auto;font:600 16px CatRound,Fredoka,'Trebuchet MS',sans-serif;color:#684c3f}.child-menu summary{cursor:pointer;list-style:none;padding:10px 14px;border-radius:18px;background:#ecdef5}.child-menu nav{position:absolute;right:0;top:100%;display:grid;gap:7px;padding:12px;width:260px;max-width:90vw;background:#fffaf4;border:2px solid #decce8;border-radius:18px;box-shadow:0 8px 25px #684c3f22}.child-menu nav a,.child-menu nav button{font:inherit;text-align:left;text-decoration:none;padding:10px;border-radius:12px;background:#f5edf8;color:#684c3f;border:0}.child-welcome-row{display:flex;justify-content:space-between;align-items:center;gap:12px}.child-welcome-row h2{margin:0}.child-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:22px}.child-actions a{display:flex;align-items:center;justify-content:center;min-height:80px;text-align:center;font:600 19px Fredoka,sans-serif;text-decoration:none;background:#eee2f6;border:2px solid #e3d2eb;border-radius:22px;color:#514854;padding:14px}.child-actions a:first-child{background:#e4eedb}.child-actions a:last-child{grid-column:1/-1}.child-account-title{font-size:clamp(28px,7vw,44px)}@media(max-width:600px){.child-menu{font-size:13px}.child-menu summary{padding:8px 10px}.child-actions{gap:9px}.child-actions a{font-size:17px;min-height:76px}.child-welcome-row button{font-size:13px;padding:9px}.child-account-title{margin-bottom:12px}}

.mini-cat-portrait{display:inline-block;width:34px;height:34px;background:url('/my-cat-sprites-v2.webp') no-repeat 0 0;background-size:300% 200%;flex-shrink:0}header:has(#my-cat-game-link){display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:10px!important}header:has(#my-cat-game-link)>a:first-child,header:has(#my-cat-game-link)>.tag{grid-column:1/-1}#my-cat-game-link{grid-column:1;grid-row:auto;justify-self:start;display:inline-flex!important;gap:8px;align-items:center}header:has(#my-cat-game-link)>.child-menu{grid-column:2;justify-self:end;margin:0!important;align-self:center}.child-menu nav{width:min(300px,calc(100vw - 28px));max-width:calc(100vw - 28px);right:0;box-sizing:border-box;max-height:72dvh;overflow-y:auto}.child-actions a:last-child{grid-column:auto}.child-menu nav a,.child-menu nav button{overflow-wrap:anywhere}@media(max-width:600px){header:has(#my-cat-game-link){padding:10px 14px!important}#my-cat-game-link{margin:0!important;padding:8px 12px!important;font-size:15px!important}.child-menu summary{font-size:15px}.mini-cat-portrait{width:30px;height:30px}}

.game-child-actions{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%}.game-child-actions #my-cat-game-link{margin:0!important}.game-child-actions .child-menu{margin-left:auto!important;flex-shrink:0}.game-child-actions .child-menu nav{right:0;left:auto}

#my-cat-game-link{font-family:Fredoka,'Trebuchet MS',sans-serif!important}

/* Child activities remain reachable while the page or article scrolls. */
html[data-child=true] #child-menu{position:fixed!important;top:max(10px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right));margin:0!important;z-index:10000;font-family:Fredoka,'Trebuchet MS',sans-serif}html[data-child=true] header{padding-top:62px!important}dialog:has(#child-menu){padding-top:64px}#child-menu summary{font-size:14px;padding:8px 10px}#child-menu nav{top:calc(100% + 5px);max-height:calc(100dvh - 80px)}

.gift-mail-link{display:flex!important;align-items:center;justify-content:space-between;gap:8px}.has-unread-mail>summary::after{content:'●';color:#bc517a;margin-left:7px;animation:mail-glow 1.5s ease-in-out infinite}.gift-mail-link.unread img{animation:mail-glow 1.5s ease-in-out infinite}@keyframes mail-glow{50%{filter:drop-shadow(0 0 5px #c77eb1);transform:rotate(-5deg)}}@media(prefers-reduced-motion:reduce){.has-unread-mail>summary::after,.gift-mail-link.unread img{animation:none}}

@media(max-width:760px){body[data-game-mobile] #child-menu,body[data-game-mobile] .child-menu{position:relative!important;inset:auto!important;z-index:50;margin:0!important}.game-child-actions{position:static!important;display:flex!important;flex-wrap:wrap;gap:10px;justify-content:space-between}.game-child-actions .child-menu{margin-left:auto!important}}

@media(max-width:760px){html[data-child=true] body[data-game-mobile] header{padding-top:10px!important}}
