/* Final layout layer: keep the application at the device width. */
html{width:100%;min-height:100%;overflow-x:clip;touch-action:pan-x pan-y;-webkit-text-size-adjust:100%;text-size-adjust:100%}body{width:100%;min-width:0;overflow-x:clip;touch-action:pan-x pan-y}*,*:before,*:after{box-sizing:border-box}button,a,input,select,textarea{touch-action:manipulation}input,select,textarea{font-size:16px!important}.shell,main,#view,.parent-app,.parent-content,.player-world,.challenge-demo{min-width:0}.parent-mode .shell{display:block;width:100%;min-height:100svh;min-height:100dvh}.parent-mode main{width:100%;max-width:100%;padding:0;margin:0}.parent-mode .parent-app{width:100%;max-width:none;min-height:calc(100dvh - 48px);border:0;border-radius:0;box-shadow:none}.parent-mode header{height:auto;min-height:48px;padding:6px max(12px,env(safe-area-inset-right)) 6px max(12px,env(safe-area-inset-left));margin:0}.parent-mode .parent-bottom{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;max-width:none;gap:0;border-radius:18px 18px 0 0}.parent-bottom button{min-width:0;width:100%;padding:7px 2px;text-align:center;white-space:normal}.parent-bottom small{font-size:11px}.parent-bottom span{display:block}.parent-content{width:100%}.parent-content section{min-width:0}.player-world .player-logo{mix-blend-mode:normal;mask-image:none}.player-logo .player-art{clip-path:polygon(8% 61%,25% 28%,32% 34%,50% 3%,68% 34%,75% 28%,93% 62%,98% 76%,84% 83%,84% 98%,16% 98%,16% 83%,2% 76%);mask-image:linear-gradient(#000 94%,transparent)}
/* Follow each illustrated icon's contour instead of showing its rectangular crop. */
.tile-art.icon-calendar,.tile-art.icon-attendance{clip-path:polygon(7% 14%,25% 14%,25% 0,37% 0,37% 14%,65% 14%,65% 0,78% 0,78% 14%,93% 14%,99% 23%,99% 92%,92% 100%,7% 100%,0 92%,0 23%)}
.tile-art.icon-payments{clip-path:polygon(42% 0,86% 0,97% 9%,97% 80%,78% 91%,55% 92%,48% 100%,12% 100%,0 91%,0 42%,12% 34%,39% 34%,39% 10%)}
.tile-art.icon-progress{clip-path:polygon(5% 57%,24% 57%,24% 100%,5% 100%,5% 57%,36% 100%,36% 30%,59% 30%,59% 100%,71% 100%,71% 0,97% 0,97% 100%)}
.tile-art.icon-documents{clip-path:polygon(1% 7%,40% 7%,49% 17%,93% 17%,98% 25%,99% 89%,93% 98%,4% 98%,0 90%)}
.tile-icon{background:none;border:0;box-shadow:none}.tile-art{background:none;filter:drop-shadow(0 3px 2px #0006)}.parent-tile .tile-icon{width:60px;height:60px;display:grid;place-items:center}.player-action-icon{background:none}.player-action-icon .player-art{filter:none}.player-action-icon{filter:drop-shadow(0 3px 2px #0006)}
@media(max-width:799px){.parent-mode .parent-content,.kids-mode .parent-content{width:100%;max-width:none;margin:0;padding:0 max(12px,env(safe-area-inset-right)) 18px max(12px,env(safe-area-inset-left))}.parent-mode .parent-masthead{width:100%;max-width:none;margin:0}.parent-mode .parent-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.parent-tile{min-height:126px;padding:12px 7px;font-size:18px;border-radius:25px}.child-choice{margin-bottom:16px}.kids-link{width:100%;min-height:72px;padding:14px 15px;margin-top:16px}.kids-link strong{font-size:21px}.kids-link small{font-size:12px}.player-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.player-action{min-width:0;min-height:150px;padding:10px 6px}.player-action strong{font-size:23px;overflow-wrap:anywhere}.player-action-icon{width:86px;height:65px}.player-logo{width:48%;margin:0 auto -8px}.player-speech{font-size:clamp(15px,4.2vw,22px);padding:6px}.player-music{padding:12px;gap:8px}.player-music label{min-width:0;flex-basis:100%;margin:0}.player-music input{width:100%;min-width:0}.challenge-demo{width:100%;max-width:none}.challenge-heading h1{font-size:28px}.parent-back{margin:8px 12px!important}.parent-mode .row{flex-wrap:wrap}.parent-mode .grid{grid-template-columns:minmax(0,1fr)}.parent-mode .card{padding:18px}.parent-content p{overflow-wrap:anywhere}}
.tile-art.icon-progress{clip-path:polygon(5% 100%,5% 57%,24% 57%,24% 100%,36% 100%,36% 30%,59% 30%,59% 100%,71% 100%,71% 0,97% 0,97% 100%)}
/* Official transparent logo and one consistent icon family. */
.official-brand{position:relative;display:flex;flex-direction:column;align-items:center;gap:7px;padding:16px 12px 8px;background:none;border:0;box-shadow:none;z-index:1}.official-brand-logo{display:block;width:clamp(150px,44vw,225px);height:auto;object-fit:contain;background:none;border:0;box-shadow:none;filter:drop-shadow(0 2px 6px #0005)}.official-brand-motto{font-family:'Arial Narrow','Roboto Condensed','Liberation Sans Narrow',Arial,sans-serif;font-stretch:condensed;font-style:normal;font-weight:800;font-size:clamp(14px,3.8vw,18px);letter-spacing:.24em;color:#fff;white-space:nowrap;line-height:1.4;transform:scaleX(.86);transform-origin:center}.brand-landscape{position:relative;width:100%;aspect-ratio:740/90;overflow:hidden;mask-image:linear-gradient(transparent,#000 20%,#000 75%,transparent);margin-top:-8px}.brand-landscape img{position:absolute;max-width:none;width:127.162%;left:-13.5135%;top:-260%;height:auto}.parent-masthead.seamless{background:radial-gradient(ellipse at 50% 100%,#70400d44,transparent 60%),#0b0b0d}.peakers-icon{display:block;width:100%;height:100%;overflow:visible}.parent-tile .tile-icon{width:49px;height:49px;color:#ffd260;filter:drop-shadow(0 2px 2px #0006)}.parent-tile.gold .tile-icon,.parent-tile.green .tile-icon{color:#fff9e7}.player-action-icon{width:65px;height:65px;color:#fff5d8;filter:drop-shadow(0 3px 2px #0006)}.player-action-icon svg{display:block;width:100%;height:100%}.player-world .official-brand{padding-top:6px}.player-world.in-challenges>.official-brand{display:none}.player-world .player-hero{mask-image:linear-gradient(transparent 8%,#000 18%,#000 92%,transparent)}
.brand-landscape{aspect-ratio:740/55}.brand-landscape img{top:-472.727%}

/* Keep the full approved PIKO scene visible; no face-cutting polygon or top mask. */
.player-world .player-hero{mask-image:none;-webkit-mask-image:none;overflow:visible;margin-top:10px}
.player-hero>.player-art{mask-image:none;clip-path:none}
.player-action-icon{width:100px;height:75px;display:grid;place-items:center}
.player-action-icon .player-art{width:100%;mask-image:none}
.icon-target{clip-path:polygon(20% 11%,68% 8%,77% 0,85% 12%,97% 17%,86% 31%,83% 66%,62% 91%,31% 99%,8% 78%,0 49%,5% 25%)}
.icon-trophy{clip-path:polygon(23% 0,75% 0,78% 9%,99% 10%,99% 37%,82% 59%,66% 66%,62% 79%,72% 87%,74% 99%,25% 99%,28% 87%,39% 78%,36% 65%,16% 58%,0 34%,0 10%,22% 10%)}
.icon-progress{clip-path:polygon(0 71%,50% 21%,62% 32%,95% 0,100% 3%,100% 47%,83% 36%,83% 100%,62% 100%,62% 65%,48% 82%,48% 100%,27% 100%,27% 85%,14% 98%)}
.icon-shop{clip-path:polygon(12% 0,87% 0,100% 49%,89% 60%,88% 100%,12% 100%,11% 60%,0 49%)}
.player-speech{left:58%;top:15%;width:39%;height:57%;font-size:clamp(12px,3.15vw,23px);line-height:1.13;padding:8px;border-radius:46%;z-index:2;overflow:visible}
.player-speech:after,.briefing-bubble:after{content:"";position:absolute;left:-12px;bottom:19%;width:23px;height:20px;background:#fff8e7;clip-path:polygon(0 100%,100% 0,100% 100%);filter:drop-shadow(-2px 2px 0 #ffc521);pointer-events:none}
.briefing-art{position:relative;display:block;width:100%;height:auto;min-height:0;padding:0;background:none;overflow:visible;mask-image:none}
.briefing-scene{position:relative;width:100%;aspect-ratio:755/448;overflow:hidden}
.briefing-scene img{position:absolute;max-width:none;width:135.62914%;height:auto;left:-17.880795%;top:-61.383929%}
.briefing-art .briefing-bubble{left:58%;right:auto;top:15%;width:39%;height:57%;padding:7px;border-radius:46%;border:3px solid #ffc521;background:#fff8e7;color:#17100d;box-shadow:0 0 18px #ffa00088;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:clamp(11px,2.85vw,22px);line-height:1.12;z-index:2}
.briefing-bubble strong{font-size:inherit}.briefing-bubble p{font-size:inherit;line-height:inherit;margin:5px 0 0}.challenge-subtitle{margin-bottom:12px}
@media(min-width:800px){.player-speech{font-size:26px}.briefing-art .briefing-bubble{font-size:24px}}
/* Remove only the old caption at the top right of the source scene, above PIKO. */
.player-hero>.player-art,.briefing-scene{clip-path:polygon(0 0,35% 0,35% 6%,100% 6%,100% 100%,0 100%)}
.player-speech:after,.briefing-bubble:after{bottom:40%}
/* REX: original illustrations and native interactive navigation. */
.rex-crop{display:block;position:relative;overflow:hidden;width:100%}.rex-crop img{position:absolute;max-width:none;height:auto;pointer-events:none}.player-bottom{position:fixed;bottom:0;left:0;right:0;z-index:30;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:7px 6px max(7px,env(safe-area-inset-bottom));background:linear-gradient(#191717,#050505);border-top:1px solid #d8a336;border-radius:22px 22px 0 0;box-shadow:0 -3px 18px #0008}.player-bottom button{position:relative;min-width:0;padding:4px 3px;border:2px solid transparent;border-radius:19px;background:transparent;color:#fff;font-weight:800;font-size:11px;display:flex;flex-direction:column;align-items:center;gap:3px}.player-bottom .nav-art{width:48px;height:auto;max-width:100%;mix-blend-mode:screen}.player-bottom button[aria-current]{border-color:#ffdf50;background:radial-gradient(ellipse at center,#d88a00aa,transparent 80%);box-shadow:0 0 13px #ffb500aa,inset 0 0 10px #ffe50066;color:#ffe377}.player-bottom button:active{transform:scale(.95);border-color:#ff7530}.kids-mode .parent-content{padding-bottom:115px!important}.player-world.in-shop>:not(.peak-shop-pane),.player-world.in-player-info>:not(.player-info-pane){display:none!important}.peak-shop-pane[hidden],.player-info-pane[hidden]{display:none!important}.shop-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.shop-heading h1{font-size:36px;font-style:italic;color:white;margin:8px 0}.shop-heading button{width:43px;height:43px;border-radius:15px;border:2px solid #ffd260;color:#ffe482;background:#14100b;font-size:36px;box-shadow:0 0 12px #ffb00055}.shop-demo-note{text-align:center;font-size:11px;color:#deca97;margin:5px}.rex-hero{position:relative;margin:5px -12px 0}.rex-balances{position:absolute;left:40%;right:2%;top:7%;display:flex;gap:5px;background:#090909;padding:3px;border-radius:25px}.rex-balances b{border:1px solid #ffd051;border-radius:25px;padding:6px 8px;background:#17120b;color:#ffeac0;font-size:clamp(11px,3.1vw,20px);white-space:nowrap;flex:1;text-align:center}.rex-dialogue{position:absolute;left:50%;top:25%;width:42%;height:36%;border-radius:46%;background:#fff6df;color:#201308;font-weight:900;font-size:clamp(10px,2.9vw,22px);line-height:1.13;display:flex;align-items:center;justify-content:center;text-align:center;padding:6px}.shop-products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.shop-product{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;border:2px solid #ffd15a;border-radius:23px;padding:10px 6px;background:radial-gradient(ellipse at center,#49301466,#0c0b0b 80%);box-shadow:inset 0 1px 6px #ffe08a66,0 0 10px #ffb00033;color:#fff}.shop-product .product-art{width:100%;max-width:115px;height:auto;mix-blend-mode:screen}.shop-product strong{font-size:17px;line-height:1.1}.shop-price{background:linear-gradient(#ffe582,#ffbf00);color:#1a1000;border-radius:20px;padding:7px 10px;font-size:15px;font-weight:900;box-shadow:0 0 8px #ffbb0044}.shop-product small{font-size:10px;color:#f2d995}.shop-product.legend{grid-column:1/-1;display:grid;grid-template-columns:90px 1fr;gap:7px}.shop-product.legend .product-art{grid-row:1/4;height:auto}.shop-feedback{min-height:48px;color:#e7cf8d;font-size:12px;text-align:center;padding:14px 5px}.player-info-pane{padding:20px 0;min-height:50vh}.player-info-pane h1{color:#ffdb73}.player-bottom button:focus-visible,.shop-product:focus-visible{outline:3px solid #fff;outline-offset:2px}.shop-product .product-art,.player-bottom .nav-art{mask-image:linear-gradient(to right,transparent,#000 8%,#000 92%,transparent);-webkit-mask-image:linear-gradient(to right,transparent,#000 8%,#000 92%,transparent)}.rex-hero>.rex-crop{clip-path:polygon(0 7%,25% 7%,25% 0,29% 0,34% 7%,100% 7%,100% 100%,0 100%)}

/* Player home: one navigation, full-width canvas, restrained living illustration. */
.official-brand-logo{width:clamp(108px,30vw,155px)}
.official-brand{padding-top:8px;gap:3px}.official-brand-motto{font-size:13px}
.player-home-prompt{text-align:center;padding:22px 12px;background:radial-gradient(ellipse,#6b420f44,transparent 72%)}
.player-home-prompt strong{display:block;color:#ffe17b;font-size:26px}.player-home-prompt p{font-size:17px;margin:8px 0;color:white}.player-home-prompt>span{font-size:13px;color:#e2c68c}
.player-world:not(.in-challenges):not(.in-shop):not(.in-player-info) .player-hero{animation:piko-welcome 5s ease-in-out infinite;transform-origin:center bottom}
@keyframes piko-welcome{0%,100%{transform:translateY(0);filter:drop-shadow(0 0 3px #f6b42c22)}50%{transform:translateY(-4px);filter:drop-shadow(0 0 10px #f6b42c55)}}
.player-bottom .nav-art{width:60px}.player-bottom button{font-size:12px;min-height:79px;padding:4px 2px}.player-bottom{padding-inline:max(5px,env(safe-area-inset-left));gap:2px}
.kids-mode .parent-content{padding-bottom:calc(120px + env(safe-area-inset-bottom))!important}
@media(max-width:799px){.parent-mode .shell,.parent-mode main,.parent-app,.player-world{width:100%;max-width:100%;margin-inline:0}.parent-mode footer{display:none}.player-world .player-mode-label{font-size:10px}.parent-back{font-size:14px;min-height:42px}.player-music{margin-top:8px}.parent-mode .parent-app{min-height:calc(100dvh - 48px)}}
@media(prefers-reduced-motion:reduce){.player-world .player-hero{animation:none!important}}
