/* Compact opening, with the exact lettering supplied for the heading. */
@font-face{font-family:AkCategoryRounded;src:url('category-rounded-bold.ttf') format('truetype');font-weight:700;font-style:normal;font-display:swap}
.ak-home .ak-sky{padding-top:6px;padding-bottom:1cm}
.ak-home .ak-arched-intro{width:min(620px,82vw);max-width:none;margin:0 auto 32px}
.ak-home .ak-arched-intro h1{margin:0;line-height:0}
.ak-home-title-image{display:block;width:100%;height:auto;overflow:visible;filter:drop-shadow(0 6px 3px #46216e66);transform:translate(var(--title-x,0px),var(--title-y,0px)) rotate(var(--title-turn,0deg)) scale(var(--title-scale,1));transform-origin:center;transition:transform 1.2s cubic-bezier(.22,.61,.36,1)}
.ak-home .ak-portals{max-width:900px;gap:30px;padding-top:15px;margin-bottom:0}
.ak-home-topics{background:#fff8e9;padding:36px 28px 22px;position:relative}
.ak-home-topic-grid{max-width:1500px;margin:auto;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:20px;direction:rtl;overflow-x:auto;padding:6px 4px 12px;scrollbar-color:#9d23ce #f4e6fb}
.ak-home-topic{min-width:0}
.ak-home-topic-square{aspect-ratio:1;display:flex;flex-direction:column;justify-content:center;align-items:center;border:3px solid #54237c;border-radius:22px;background:var(--topic-color);box-shadow:0 5px 0 #54237c;overflow:hidden;padding:8px;transition:transform .5s ease,box-shadow .5s ease}
.ak-home-topic-square:hover{transform:translateY(-4px);box-shadow:0 9px 0 #54237c}
.ak-home-topic-square{padding:0;position:relative}
.ak-home-topic-picture{display:block;width:100%;height:100%;flex:none}
.ak-home-topic-art{display:block;width:100%;height:76%;flex:1;min-height:0}
.ak-home-topic-square h2{font-size:clamp(18px,1.8vw,25px);color:#54237c;line-height:1.15;text-align:center;margin:0 0 6px;white-space:nowrap}
.ak-home-topic-illustrated h2{position:absolute;inset:auto 0 0;margin:0;padding:18px 3px 10px;color:#fff;font-family:AkCategoryRounded,AkBirzia,Arial,sans-serif;font-weight:700;font-size:clamp(18px,1.9vw,28px);text-shadow:0 3px 3px #21172e,1px 0 2px #21172e,-1px 0 2px #21172e;background:linear-gradient(transparent,rgba(30,13,49,.5));pointer-events:none}
.ak-home-topic-stories{display:grid;grid-template-columns:minmax(0,1fr);width:calc(100% - 2cm);gap:12px;margin:18px auto 0}
.ak-home-story{aspect-ratio:1;min-width:0;padding:9px 5px!important;border:2px solid #54237c;border-radius:13px;background:white;color:#54237c;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:7px;box-shadow:0 3px 0 #54237c;font-size:clamp(12px,1.1vw,16px);line-height:1.15;transition:background .3s,transform .3s;overflow:hidden}
.ak-home-story>span:last-child{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.ak-home-story:not(:disabled):hover{background:#fff09a;transform:translateY(-2px)}
.ak-home-story[aria-pressed=true]{background:#ffda54}
.ak-home-story-icon{display:block;flex:none;width:22px;height:24px;background:#9d23ce;clip-path:polygon(10% 0,100% 50%,10% 100%);border-radius:4px}
.ak-home-story[aria-pressed=true] .ak-home-story-icon{clip-path:none;width:19px;height:19px;border-radius:3px;background:#d43c63}
.ak-home-story:disabled{opacity:.62;cursor:default;background:#fffdfa}
.ak-home-story:disabled .ak-home-story-icon{background:#bbaec5}
.ak-home-audio-status{max-width:1320px;margin:14px auto 0;text-align:center;font-size:16px;color:#54237c;min-height:1.3em}
@media(max-width:1100px){.ak-home-topic-grid{grid-template-columns:repeat(6,minmax(160px,1fr));gap:18px}.ak-home-story{font-size:14px}}
@media(max-width:600px){.ak-home .ak-sky{padding-top:8px;padding-bottom:1cm}.ak-home .ak-arched-intro{width:92%;margin:0 auto 26px}.ak-home .ak-portals{gap:8px;max-width:350px;padding-top:0}.ak-home .ak-portals .ak-new{width:54%;margin:12px 20% 14px}.ak-home .ak-portals .ak-young,.ak-home .ak-portals .ak-school{width:42%}.ak-home-topics{padding:26px 16px 18px}.ak-home-topic-grid{gap:16px}.ak-home-topic-square{border-radius:18px}.ak-home-topic-stories{gap:7px;margin-top:14px}.ak-home-story{border-radius:10px;font-size:12px;gap:5px}.ak-home-story-icon{width:17px;height:19px}}
.ak-home-shows{padding:40px 28px 55px;background-color:#380610;background-image:radial-gradient(ellipse at 50% 0%,#bc304127 0%,#13000888 100%),repeating-linear-gradient(90deg,#24040c 0px,#5c1020 22px,#7c172a 38px,#4a0b18 58px,#26040d 80px,#400813 99px,#6f1325 122px,#390710 144px,#24040c 160px);text-align:center}
.ak-shows-title{width:min(740px,100%);margin:0 auto 30px!important;font-family:AkBirzia,Arial,sans-serif;font-size:clamp(30px,4vw,58px)!important;font-weight:900;line-height:1.2;color:#ffd800!important;-webkit-text-stroke:2px #921bc5;paint-order:stroke fill}
.ak-shows-title svg{display:block;width:min(590px,100%);height:auto;margin:0 auto}
.ak-shows-title .ak-home-title-image{filter:drop-shadow(0 6px 3px #6c2b91bb)}
.ak-show-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;max-width:1320px;margin:auto}
.ak-show-video{aspect-ratio:16/9;border:4px solid #73259c;border-radius:22px;overflow:hidden;background:#29133e;box-shadow:0 6px 0 #73259c}
.ak-show-video iframe{display:block;width:100%;height:100%;border:0}
.ak-home-shows .ak-more-shows{display:inline-block;margin-top:36px;padding:12px 28px;border:3px solid #a526df;border-radius:30px;background:#ffdc32;color:#54237c;font-size:24px;font-weight:900;box-shadow:0 4px 0 #73259c;transition:transform .3s,background .3s}
.ak-home-shows .ak-more-shows:hover{background:#fff09a;transform:translateY(-2px)}
@media(max-width:650px){.ak-home-shows{padding:30px 16px 40px}.ak-show-grid{grid-template-columns:1fr;gap:22px}}
@media(prefers-reduced-motion:reduce){.ak-home-title-image,.ak-home-topic-square,.ak-home-story{transition:none}.ak-home .ak-portals .ak-portal{animation:none}}
/* Keep all six categories visible; story squares follow their column width. */
.ak-home-topics{padding-inline:clamp(6px,2vw,28px)}
.ak-home-topic-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:clamp(4px,1.4vw,20px);overflow:visible;padding-inline:0}
.ak-home-topic-square{container-type:inline-size;border-width:clamp(1px,.2vw,3px);border-radius:clamp(6px,1.5vw,22px)}
.ak-home-topic-illustrated h2{font-size:clamp(6px,12cqw,28px);padding:9cqw 1cqw 5cqw}
.ak-home-topic-stories{width:90%;gap:clamp(6px,1vw,12px)}
.ak-home-story{width:100%;font-size:clamp(7px,1.1vw,16px)}
@media(max-width:650px){
 .ak-home-topic-stories{margin-top:12px}
 .ak-home-story{padding:3px 1px!important;gap:2px;border-width:1px;border-radius:5px}
 .ak-home-story-icon{width:clamp(8px,2.4vw,16px);height:clamp(9px,2.7vw,18px)}
 .ak-home-story[aria-pressed=true] .ak-home-story-icon{width:clamp(8px,2.4vw,16px);height:clamp(8px,2.4vw,16px)}
 .ak-home-story>span:last-child{-webkit-line-clamp:2}
}
@media(prefers-reduced-motion:reduce){.ak-home-title-image{transform:none;transition:none}}
.ak-home-story{--story-border:2px;position:relative;border-width:var(--story-border);transition:background .3s,transform .3s,border-color .3s}
.ak-home-story:before{content:'';position:absolute;inset:0;border:0 solid currentColor;border-radius:10px;pointer-events:none;transition:border-width .25s}
.ak-home-story:hover:before,.ak-home-story:focus-visible:before{border-width:calc(var(--story-border)*2)}
.ak-home-story[aria-pressed=true],.ak-home-story:active{border-color:#1769e0;color:#1769e0;box-shadow:0 3px 0 #1769e0}
@media(max-width:650px){.ak-home-story{--story-border:1px}.ak-home-story:before{border-radius:4px}}
/* Restore the centered category carousel and reveal one story row on selection. */
.ak-topic-carousel{position:relative;max-width:1170px;margin:auto;padding-inline:40px;direction:rtl}
.ak-home-topic-grid{position:relative;display:block;max-width:none;height:clamp(205px,24vw,270px);margin:0;overflow:hidden;padding:12px 0 18px;perspective:1200px;touch-action:pan-y}
.ak-topic-carousel .ak-home-topic-square{position:absolute;inset:12px auto auto 50%;display:block;width:clamp(220px,25vw,320px);height:auto;aspect-ratio:4/3;padding:0;border:3px solid #54237c;border-radius:22px;background:var(--topic-color);box-shadow:0 5px 0 #54237c;transform:translateX(calc(-50% + var(--card-offset,0)*clamp(85px,12vw,160px))) scale(var(--card-scale,1));opacity:var(--card-opacity,1);z-index:var(--card-layer,1);transition:transform .5s cubic-bezier(.22,.61,.36,1),opacity .35s,box-shadow .2s;container-type:inline-size}
.ak-topic-carousel .ak-home-topic-square:hover,.ak-topic-carousel .ak-home-topic-square:focus-visible{border-color:#fff!important;box-shadow:none!important}
.ak-topic-carousel .ak-home-topic-square[aria-expanded=true]{border-color:#1769e0;box-shadow:0 5px 0 #1769e0}
.ak-topic-carousel .ak-home-topic-square[aria-hidden=true]{pointer-events:none;visibility:hidden}
.ak-topic-carousel .ak-home-topic-picture{width:100%;height:100%;object-fit:cover;display:block;pointer-events:none}
.ak-home-topic-label{position:absolute;inset:auto 0 0;margin:0;padding:18px 5px 10px;color:white;font-family:AkCategoryRounded,AkBirzia,Arial,sans-serif;font-weight:700;font-size:clamp(18px,10cqw,30px);line-height:1.15;text-align:center;white-space:nowrap;text-shadow:0 3px 3px #21172e,1px 0 2px #21172e,-1px 0 2px #21172e;background:linear-gradient(transparent,rgba(30,13,49,.5));pointer-events:none}
.ak-topic-arrow{position:absolute;top:calc(50% - 24px);width:42px;height:52px;display:grid;place-items:center;padding:0;border:0;border-radius:15px;background:#a51ddd;color:#ffec35;font-size:27px;line-height:1;box-shadow:0 4px 0 #652c88;z-index:12;transition:scale .2s}
.ak-topic-arrow:hover{background:#8520b4;scale:1.07}.ak-topic-prev{right:0}.ak-topic-next{left:0}
.ak-topic-position{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.ak-topic-panel[hidden]{display:none!important}.ak-topic-panels{max-width:1040px;margin:auto}
.ak-topic-panel{animation:ak-story-row-open .3s ease-out both}
.ak-home-topic-stories{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;gap:clamp(8px,2vw,24px);margin:20px auto 0;direction:rtl}
.ak-home-story{aspect-ratio:4/3;width:100%;font-size:clamp(12px,1.5vw,21px);border-radius:15px;padding:12px 8px!important;gap:9px}
.ak-home-story-icon{width:26px;height:28px}.ak-home-story:before{border-radius:12px}
.ak-home-audio-status:empty{display:none}
@keyframes ak-story-row-open{from{opacity:0;transform:translateY(-7px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:600px){.ak-topic-carousel{padding-inline:30px}.ak-home-topic-grid{height:clamp(175px,54vw,240px)}.ak-topic-carousel .ak-home-topic-square{width:64vw;max-width:280px;transform:translateX(calc(-50% + var(--card-offset,0)*16vw)) scale(var(--card-scale,1));border-width:2px;border-radius:17px}.ak-topic-arrow{width:28px;height:44px;font-size:21px;border-radius:10px}.ak-home-topic-stories{gap:7px;margin-top:16px}.ak-home-story{font-size:clamp(10px,3vw,16px);padding:5px 3px!important;gap:5px;border-radius:9px}.ak-home-story-icon{width:16px;height:18px}.ak-home-story:before{border-radius:7px}}
@media(prefers-reduced-motion:reduce){.ak-topic-carousel .ak-home-topic-square,.ak-topic-arrow{transition:none}.ak-topic-panel{animation:none}}
.ak-topic-arrow{direction:ltr}
/* Larger cards retain their 4:3 shape and fit the available screen width. */
.ak-topic-carousel{max-width:1755px}
.ak-home-topic-grid{height:clamp(308px,36vw,405px)}
.ak-topic-carousel .ak-home-topic-square{width:clamp(330px,37.5vw,480px);transform:translateX(calc(-50% + var(--card-offset,0)*clamp(127.5px,18vw,240px))) scale(var(--card-scale,1))}
.ak-home-topic-label{font-size:clamp(27px,10cqw,45px);padding:27px 8px 15px}
.ak-topic-panels{max-width:1560px}
.ak-home-topic-stories{gap:clamp(12px,3vw,36px);margin-top:30px}
.ak-home-story{font-size:clamp(18px,2.25vw,31.5px);border-radius:22px;padding:18px 12px!important;gap:13px}
.ak-home-story-icon{width:39px;height:42px}.ak-home-story:before{border-radius:19px}
@media(max-width:600px){.ak-topic-carousel{padding-inline:22px}.ak-topic-carousel .ak-home-topic-square{width:min(96vw,420px,calc(100% - 8px));max-width:none;transform:translateX(calc(-50% + var(--card-offset,0)*24vw)) scale(var(--card-scale,1))}.ak-home-topic-grid{height:calc(min(96vw,420px,100vw - 64px)*.75 + 30px)}.ak-home-topic-label{font-size:clamp(22px,10cqw,36px);padding:20px 5px 12px}.ak-home-topic-stories{gap:7px;margin-top:24px}.ak-home-story{font-size:clamp(11px,3.4vw,18px);padding:7px 3px!important;gap:5px;border-radius:10px}.ak-home-story-icon{width:22px;height:24px}.ak-home-story:before{border-radius:8px}}
/* Use the supplied curtain photograph, displaying just the cloth inside the white page. */
.ak-home-shows{position:relative;isolation:isolate;background:#210108;background-image:none;overflow:hidden}
.ak-home-shows>.ak-shows-curtain{position:absolute;inset:0;width:100%;height:100%;z-index:-1;pointer-events:none}
.ak-shows-title .ak-home-title-image{transform:none!important;transition:none}
.ak-shows-glint{opacity:0;filter:drop-shadow(0 0 7px #fff)}
.ak-shows-title:hover .ak-shows-glint{animation:ak-shows-shine 1.35s ease-in-out both}
@keyframes ak-shows-shine{0%{opacity:0;transform:translateX(0)}12%{opacity:1}85%{opacity:1}100%{opacity:0;transform:translateX(1750px)}}
@media(prefers-reduced-motion:reduce){.ak-shows-title:hover .ak-shows-glint{animation:none}.ak-shows-title:hover .ak-home-title-image{filter:drop-shadow(0 0 5px #ffffffb3)}}

/* Illustrated story playback cards with titles over the bottom edge. */
.ak-home-story.ak-home-story-illustrated{position:relative;overflow:hidden;padding:0!important;display:block;container-type:inline-size;background:#512378;color:white}
.ak-home-story-art{display:block;width:100%;height:100%;object-fit:cover}
.ak-home-story-illustrated .ak-home-story-title{position:absolute;inset:auto 0 0;display:block!important;padding:30px 7px 10px;background:linear-gradient(transparent,rgba(24,10,40,.9));color:white;font-family:AkCategoryRounded,AkBirzia,Arial,sans-serif;font-size:clamp(12px,8cqw,31px);line-height:1.15;text-shadow:0 2px 3px #160926;white-space:normal;-webkit-line-clamp:unset!important}
.ak-home-story-illustrated .ak-home-story-icon{position:absolute;top:10px;right:10px;width:28px;height:30px;background:white;filter:drop-shadow(0 2px 3px #23152b)}
.ak-home-story-illustrated[aria-pressed=true] .ak-home-story-icon{width:28px;height:28px;background:#1769e0;filter:drop-shadow(0 0 3px white)}
.ak-home-story-illustrated:before{z-index:3;border-color:#54237c}
.ak-home-story-illustrated[aria-pressed=true]:before{border-color:#1769e0;border-width:4px}
@media(max-width:600px){.ak-home-story-illustrated .ak-home-story-icon{width:14px;height:16px;top:5px;right:5px}.ak-home-story-illustrated[aria-pressed=true] .ak-home-story-icon{width:14px;height:14px}.ak-home-story-illustrated .ak-home-story-title{font-size:clamp(10px,11cqw,18px);padding:18px 3px 5px}}
.ak-home .ak-home-topics{background:#ffe259 url('home-carousel-yellow.jpg') center top/100% auto repeat-y}
.ak-topic-carousel .ak-home-topic-square[aria-expanded=true]{border:10px solid #fff!important;box-shadow:0 5px 0 #ffffffaa}
.ak-home-soap-bubble{position:fixed;z-index:99990;width:var(--size);height:var(--size);border-radius:50%;pointer-events:none;border:2px solid rgba(var(--bubble-rgb),.85);background:radial-gradient(circle at 28% 25%,#fffd 0 5%,transparent 18%),radial-gradient(circle at 65% 75%,rgba(var(--bubble-rgb),.45),transparent 65%);box-shadow:inset 3px 2px 7px rgba(var(--bubble-rgb),.7),inset -3px -3px 6px #ffffffbb;opacity:0;animation:ak-home-bubble-rise 2s ease-out forwards}
@keyframes ak-home-bubble-rise{0%{opacity:0;transform:translate(-50%,0) scale(.5)}15%{opacity:1}85%{opacity:.85}100%{opacity:0;transform:translate(calc(-50% + var(--drift)),-240px) scale(1.2)}}
@media(max-width:767px){
.ak-home .ak-home-topic-stories{grid-template-columns:1fr;width:88%;max-width:390px;margin:24px auto 0;gap:22px}
.ak-home .ak-home-story{width:100%;aspect-ratio:4/3}
.ak-home .ak-home-story-illustrated .ak-home-story-title{font-size:clamp(22px,8cqw,32px)}
.ak-home .ak-topic-panels{width:100%}
}
.ak-home .ak-home-story-illustrated .ak-home-story-title{font-size:clamp(24px,16cqw,62px);line-height:1.1;padding-top:45px}
@media(max-width:767px){.ak-home .ak-home-story-illustrated .ak-home-story-title{font-size:clamp(44px,16cqw,64px)}}
.ak-home .ak-arched-intro .ak-home-title-image{transform:none!important;transition:none}
.ak-home-title-glint{opacity:0;filter:drop-shadow(0 0 7px white)}
.ak-arched-intro.ak-shining .ak-home-title-glint{animation:ak-home-letter-shine 1.4s ease-in-out both}
@keyframes ak-home-letter-shine{0%{opacity:0;transform:translateX(0)}12%,85%{opacity:1}100%{opacity:0;transform:translateX(2100px)}}
.ak-home .ak-home-topic-stories .ak-home-story{width:90%;justify-self:center;align-self:start}
.ak-home .ak-home-sample-caption{font-family:AkBirzia,Arial,sans-serif;font-weight:300;font-size:clamp(24px,2.8vw,34px);line-height:1.25;color:#3f254d;text-align:center;margin:18px 12px 0}
.ak-home .ak-home-sample-caption p{font:inherit;margin:0 0 6px}
.ak-home .ak-home-sample-caption+.ak-home-topic-stories{margin-top:18px}
.ak-home .ak-home-story-illustrated .ak-home-story-icon{width:clamp(34px,4vw,44px);height:clamp(34px,4vw,44px);clip-path:none;border-radius:4px;background:#ed263c;filter:none;box-shadow:0 3px 8px #0009;display:grid;place-items:center;z-index:2;top:10px;right:10px}
.ak-home .ak-home-story-illustrated .ak-home-story-icon::before{content:'';display:block;width:55%;height:60%;background:#fff;clip-path:polygon(10% 0,100% 50%,10% 100%)}
.ak-home .ak-home-story-illustrated[aria-pressed=true] .ak-home-story-icon{background:#fff;filter:none;box-shadow:0 3px 8px #0009}
.ak-home .ak-home-story-illustrated[aria-pressed=true] .ak-home-story-icon::before{display:none}
@media(max-width:767px){.ak-home .ak-home-story-illustrated .ak-home-story-title{font-size:clamp(24px,9cqw,32px);line-height:1.2;padding-top:34px}}
.ak-home .ak-portals .ak-portal.ak-touch-preview{scale:.94}
.ak-home .ak-portals .ak-touch-preview .ak-young-puppets,.ak-home .ak-portals .ak-touch-preview .ak-new-character,.ak-home .ak-portals .ak-touch-preview .ak-school-pencils{transform:scale(1.18)}
