/* ACAP Kidcore v3.3: compact, accessible phone navigation. Desktop untouched. */
#acap-mobile-shell[hidden],#acap-mh-backdrop[hidden]{display:none!important}
#acap-mobile-shell{display:none}
@media(max-width:767px){
  html.acap-mh-active #acap-mobile-shell{
    display:block!important;position:relative;z-index:99980;width:100%;font-family:var(--acap-mh-site-font,"Poppins","Nunito",Arial,sans-serif);
    box-sizing:border-box;color:#34345e;background:#fff;
  }
  #acap-mobile-shell,#acap-mobile-shell *{box-sizing:border-box}
  #acap-mobile-shell .acap-mh-topline{height:30px;display:flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;
    color:#fff;font-size:11px;font-weight:650;letter-spacing:.025em;line-height:1;
    background:linear-gradient(95deg,#f26ab9 0%,#9c67ef 55%,#4e91f1 100%)}
  #acap-mobile-shell .acap-mh-topline strong{font-weight:900}
  #acap-mobile-shell .acap-mh-bar{min-height:70px;padding:9px max(15px,env(safe-area-inset-right)) 9px max(15px,env(safe-area-inset-left));
    display:flex;gap:14px;align-items:center;justify-content:space-between;border-bottom:4px solid;
    border-image:linear-gradient(90deg,#ee6bb9,#b986ff,#6c9bff) 1;background:#fff}
  #acap-mobile-shell .acap-mh-brand{min-width:0;display:flex;align-items:center;gap:10px;text-decoration:none!important;color:#353c67!important}
  #acap-mobile-shell .acap-mh-logo-wrap{width:49px;height:49px;flex:0 0 49px;display:grid;place-items:center;border-radius:14px;
    background:#f7eaff;overflow:hidden}
  #acap-mobile-shell .acap-mh-logo{width:100%;height:100%;object-fit:contain;display:block}
  #acap-mobile-shell .acap-mh-logo-fallback{font-size:29px;line-height:1}
  #acap-mobile-shell .acap-mh-logo:has(+ .acap-mh-logo-fallback) + .acap-mh-logo-fallback{display:none}
  #acap-mobile-shell .acap-mh-brand-copy{display:flex;flex-direction:column;min-width:0;line-height:1.1}
  #acap-mobile-shell .acap-mh-brand-copy strong{font-size:21px;font-weight:800;letter-spacing:-.035em;color:#34345e}
  #acap-mobile-shell .acap-mh-brand-copy small{font-size:12px;color:#72599f;font-weight:650;margin-top:3px;white-space:nowrap}
  #acap-mobile-shell .acap-mh-open{flex:0 0 59px;min-width:59px;min-height:50px;padding:6px 6px 4px;border:1.5px solid #ead5fa;
    background:#f6efff;color:#553e91;border-radius:15px;display:flex;flex-direction:column;align-items:center;justify-content:center;
    box-shadow:none;cursor:pointer}
  #acap-mobile-shell .acap-mh-menu-lines{display:flex;flex-direction:column;gap:4px}
  #acap-mobile-shell .acap-mh-menu-lines i{display:block;width:22px;height:2px;border-radius:10px;background:currentColor}
  #acap-mobile-shell .acap-mh-menu-label{font-size:10px;line-height:1.1;font-weight:800;margin-top:5px}
  #acap-mobile-shell .acap-mh-backdrop{position:fixed;inset:0;z-index:99988;background:#1e2145a6;backdrop-filter:blur(3px)}
  #acap-mobile-shell .acap-mh-drawer{position:fixed;z-index:99989;inset:0 0 0 auto;width:min(90vw,390px);max-width:100%;height:100vh;height:100dvh;
    display:flex;flex-direction:column;overflow:hidden;background:#fff;border-radius:22px 0 0 22px;
    box-shadow:-15px 0 40px #16113238;visibility:hidden;pointer-events:none;transform:translateX(103%);
    transition:transform .22s ease,visibility .22s ease}
  #acap-mobile-shell.acap-mh-is-open .acap-mh-drawer{visibility:visible;pointer-events:auto;transform:translateX(0)}
  #acap-mobile-shell .acap-mh-drawer-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:calc(16px + env(safe-area-inset-top)) 18px 17px;
    background:linear-gradient(120deg,#ffe2f2,#ecddff 53%,#d8f1ff);border-bottom:2px solid #e5cef5}
  #acap-mobile-shell .acap-mh-drawer-head>div{display:grid;grid-template-columns:32px 1fr;column-gap:8px;align-items:center;min-width:0}
  #acap-mobile-shell .acap-mh-drawer-emoji{font-size:25px;grid-row:1/3}
  #acap-mobile-shell .acap-mh-drawer-head strong{font-size:19px;font-weight:800;line-height:1.1;color:#34345e}
  #acap-mobile-shell .acap-mh-drawer-head small{font-size:10px;color:#6b6287;margin-top:4px}
  #acap-mobile-shell .acap-mh-close{width:44px;height:44px;flex:0 0 44px;border-radius:14px;border:1px solid #e7c8f3;background:#fff;
    font:normal 31px/1 system-ui,sans-serif;color:#513e77;display:grid;place-items:center;cursor:pointer;padding:0}
  #acap-mobile-shell .acap-mh-drawer-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:15px 18px calc(20px + env(safe-area-inset-bottom))}
  #acap-mobile-shell .acap-mh-home-link,#acap-mobile-shell .acap-mh-group>summary{display:flex;align-items:center;justify-content:space-between;
    min-height:51px;padding:12px 15px;font-size:16px;font-family:var(--acap-mh-site-font,"Poppins","Nunito",Arial,sans-serif)!important;
    line-height:1.35;font-weight:700;color:#363c65!important;background:#fff;letter-spacing:0;text-decoration:none!important;cursor:pointer}
  #acap-mobile-shell .acap-mh-home-link{background:#f5f0ff;border-radius:14px;margin-bottom:7px}
  #acap-mobile-shell .acap-mh-home-link span{font-size:23px;color:#8d58c0}
  #acap-mobile-shell .acap-mh-group{border-bottom:1px solid #eee5f7;margin:0}
  #acap-mobile-shell .acap-mh-group>summary{list-style:none}
  #acap-mobile-shell .acap-mh-group>summary::-webkit-details-marker{display:none}
  #acap-mobile-shell .acap-mh-chevron{font-size:23px;font-weight:400;line-height:1;transition:transform .18s}
  #acap-mobile-shell .acap-mh-group[open] .acap-mh-chevron{transform:rotate(180deg)}
  #acap-mobile-shell .acap-mh-group ul{display:block!important;padding:3px 8px 10px 18px!important;margin:0!important;list-style:none!important;background:#faf7ff;border-radius:14px}
  #acap-mobile-shell .acap-mh-group li{display:block!important;padding:0!important;margin:0!important;list-style:none!important}
  #acap-mobile-shell .acap-mh-group li a{display:block;padding:11px 12px;color:#514777!important;font-size:14px;
    font-weight:550;font-family:var(--acap-mh-site-font,"Poppins","Nunito",Arial,sans-serif)!important;line-height:1.4;text-decoration:none!important;border-radius:10px}
  #acap-mobile-shell a[aria-current="page"]{color:#9c277f!important;background:#fce6f6!important}
  #acap-mobile-shell .acap-mh-join{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:52px;border-radius:18px;
    background:linear-gradient(110deg,#ed4caa,#8667ec,#408dfa);color:#fff!important;font-weight:750;
    margin:20px 0 9px;padding:12px;font-size:16px;text-decoration:none!important;box-shadow:0 7px 18px #874cbd35}
  #acap-mobile-shell .acap-mh-bottom{color:#786588;text-align:center;font-size:11px;line-height:1.5;margin:12px 0 0}
  body.acap-mh-body-locked{overflow:hidden!important}
  #acap-mobile-shell button:focus-visible,#acap-mobile-shell a:focus-visible,#acap-mobile-shell summary:focus-visible{outline:3px solid #6e7bf4!important;outline-offset:2px}
  /* Slim the first impression on small phones, without affecting inner-page content. */
  .acap-kidcore .acap-new-hero{padding-top:46px!important;padding-bottom:62px!important}
  .acap-kidcore .acap-confetti{font-size:18px;letter-spacing:6px;top:11px}
  .acap-kidcore .acap-sticker{font-size:.76rem;margin-bottom:18px;padding:8px 13px}
  .acap-kidcore .acap-hero-layout{gap:32px}
  .acap-kidcore h1{font-size:clamp(2.35rem,10vw,3.5rem)}
  .acap-kidcore .acap-hero-text p{font-size:1.05rem;line-height:1.55}
  .acap-kidcore .acap-actions{gap:12px;margin:24px 0}
  .acap-kidcore .acap-hero-pictures{min-height:245px}
}
@media(max-width:380px){#acap-mobile-shell .acap-mh-brand-copy small{font-size:10px}
  #acap-mobile-shell .acap-mh-bar{gap:6px}
  #acap-mobile-shell .acap-mh-topline{font-size:10px;gap:5px}}
@media(prefers-reduced-motion:reduce){#acap-mobile-shell .acap-mh-drawer,#acap-mobile-shell .acap-mh-chevron{transition:none!important}}

/* v1.1: take primary menu typeface from the site's own navigation, not a forced device UI font.
   Wordmark accent optionally samples the existing desktop site-title typeface. */
@media(max-width:767px){
  html.acap-mh-active #acap-mobile-shell,
  html.acap-mh-active #acap-mobile-shell .acap-mh-topline,
  html.acap-mh-active #acap-mobile-shell .acap-mh-bar,
  html.acap-mh-active #acap-mobile-shell .acap-mh-drawer,
  html.acap-mh-active #acap-mobile-shell .acap-mh-drawer-head,
  html.acap-mh-active #acap-mobile-shell .acap-mh-drawer-body,
  html.acap-mh-active #acap-mobile-shell .acap-mh-open,
  html.acap-mh-active #acap-mobile-shell .acap-mh-menu-label,
  html.acap-mh-active #acap-mobile-shell .acap-mh-home-link,
  html.acap-mh-active #acap-mobile-shell .acap-mh-group>summary,
  html.acap-mh-active #acap-mobile-shell .acap-mh-group li a,
  html.acap-mh-active #acap-mobile-shell .acap-mh-join,
  html.acap-mh-active #acap-mobile-shell .acap-mh-bottom,
  html.acap-mh-active #acap-mobile-shell .acap-mh-brand-copy strong,
  html.acap-mh-active #acap-mobile-shell .acap-mh-drawer-head strong,
  html.acap-mh-active #acap-mobile-shell .acap-mh-drawer-head small{
    font-family:var(--acap-mh-site-font,"Poppins","Nunito",Arial,sans-serif)!important;
    font-style:normal!important;
    text-transform:none!important;
  }
  /* Keep the main navigation like the desktop: clean, medium-weight and never script. */
  html.acap-mh-active #acap-mobile-shell .acap-mh-group>summary{font-size:16px!important;font-weight:650!important;letter-spacing:-.012em!important;}
  html.acap-mh-active #acap-mobile-shell .acap-mh-home-link{font-size:16px!important;font-weight:700!important;letter-spacing:-.012em!important;}
  html.acap-mh-active #acap-mobile-shell .acap-mh-group li a{font-size:14px!important;font-weight:550!important;letter-spacing:0!important;}
  html.acap-mh-active #acap-mobile-shell .acap-mh-join{font-size:15px!important;font-weight:750!important;}
  /* The small byline can reuse Miniworld's cursive site-title if present. */
  html.acap-mh-active #acap-mobile-shell .acap-mh-brand-copy small{
    font-family:var(--acap-mh-brand-font,var(--acap-mh-site-font,"Poppins",Arial,sans-serif))!important;
    font-size:clamp(11px,3.15vw,13px)!important;
    font-style:normal!important;letter-spacing:0!important;line-height:1.12!important;
  }
}
