body.nieves-playful{--navy:#082e49;--blue:#126b91;--aqua:#6dd2dc;--cream:#fff4d8;--ink:#243d4b;--gold:#f8c85b;background:radial-gradient(ellipse at 15% 15%,#a0eafa22,transparent 45%),radial-gradient(ellipse at 85% 70%,#fff4d833,transparent 40%),linear-gradient(#073653 0%,#087c9b 55%,#8bd5c6 100%);background-attachment:fixed;color:var(--cream);min-height:100vh}.nieves-playful #main{position:relative;z-index:2;max-width:1250px;padding:1.3rem 1.3rem 8rem}.nieves-playful #global{background:#082e49d9;border-bottom:1px solid #ffffff44;backdrop-filter:blur(15px)}.nieves-playful .bar button{color:var(--cream);background:#ffffff15;border-color:#ffffff66}.nieves-playful .bar .stop{background:#9d292f;color:#fff}.nieves-playful .bar .calm{background:#d3f1ec;color:#123d49}.pf-header{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.7rem 1rem;border:1px solid #ffffff66;border-radius:22px;background:#082e4988;backdrop-filter:blur(12px)}.pf-brand{display:flex;align-items:center;gap:1rem}.pf-mark{display:grid;place-items:center;background:#ffffffed;border-radius:16px;padding:.4rem;width:110px;min-height:64px}.pf-mark img{width:100%;height:auto}.pf-brand strong{display:block;font-size:1.6rem;line-height:1.2}.pf-brand small{display:block;color:var(--cream)}.pf-header .actions{margin:0}.pf-glass{background:#ffffff18!important;color:var(--cream)!important;border-color:#ffffff88!important;backdrop-filter:blur(10px)}.pf-welcome{max-width:820px;margin:2rem auto;text-align:center;padding:1.4rem;background:#082e4970;border-radius:24px}.pf-welcome p{margin:.4rem auto;color:var(--cream)}.pf-welcome h1{font-size:clamp(2.3rem,5vw,4rem);line-height:1.12;color:#fff;margin:.6rem 0}.pf-welcome .eyebrow{color:var(--cream)}.portal-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.3rem;margin:2rem 0}.portal{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;min-height:205px;padding:1.3rem .8rem;background:#fff;color:var(--ink);border:3px solid #ffffff;border-radius:27px;text-decoration:none;text-align:center;box-shadow:0 10px 0 #07365366,0 14px 26px #062f4933;transition:transform .2s,box-shadow .2s}.portal svg{width:82px;height:82px;padding:13px;color:var(--blue);background:#d8f4f5;border-radius:24px}.portal:nth-child(3n+2) svg{background:#fff0c9;color:#77551b}.portal:nth-child(3n) svg{background:#e9e0f4;color:#695581}.portal strong{font-size:1.2rem}.portal small{font-weight:400;color:#455e69}.shell-motion .portal:hover{transform:translateY(-7px);box-shadow:0 16px 0 #07365355,0 20px 32px #062f4933}.quiet .portal:hover,.stopped .portal:hover{transform:none}.pf-tagline{text-align:center;margin:2rem auto;font-size:1.1rem;color:var(--cream);background:#082e4977;padding:.8rem;border-radius:16px}.book-panel{position:relative;background:#fff3d9;color:#614529;border:8px solid #e3c58a;border-radius:28px;padding:1.6rem;margin:1.6rem 0;box-shadow:0 14px 0 #07365344,0 20px 50px #062f4933;background-image:linear-gradient(90deg,transparent 49.7%,#a37b4220 50%,transparent 50.3%)}.book-panel h1,.book-panel h2{color:#70492c}.book-panel h1{font-size:clamp(2rem,4vw,3rem)}.book-panel>h1{margin-top:.7rem}.book-top{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap}.book-top a{background:#176d72;color:#fff;border-color:#176d72}.book-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.2rem;margin:1.5rem 0}.book-card{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;text-decoration:none;color:#60452e;background:#fff8e9;border:2px solid #e4cfaa;border-radius:20px;box-shadow:0 7px 0 #d5b477;min-height:175px;padding:1rem;gap:.5rem}.book-card svg{width:65px;height:65px;color:#246d75}.book-card small{color:#655844}.pf-pager{display:flex;align-items:center;justify-content:center;gap:1rem;margin:2rem 0 0}.pf-pager button{border-radius:100%;background:#27866a;border-color:#1e6853;color:#fff;min-width:52px;min-height:52px}.nieves-playful .card{background:#fff;color:var(--ink)}.book-panel .card{background:#fff8e9;color:#60452e}.nieves-playful footer{position:relative;z-index:2;color:var(--cream);padding-bottom:8rem;border-color:#ffffff66}.nieves-playful footer a{color:var(--cream)}
#pf-scene{display:none;position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:0}.nieves-playful #pf-scene{display:block}.pf-beam{position:absolute;width:220px;height:130vh;left:30%;top:-35%;transform:rotate(24deg);background:linear-gradient(#fff8bd44,#fff8bd00);filter:blur(20px)}.pf-fish{position:absolute;width:100px;color:#f8c85b;animation:pf-swim 46s linear infinite;animation-play-state:paused}.pf-fish svg{width:100%;height:auto}.pf-fish.a{left:15%;top:28%;animation-delay:-14s}.pf-fish.b{left:75%;top:52%;width:82px;color:#eea37d;animation-duration:58s;animation-delay:-38s}.pf-fish.b svg{transform:scaleX(-1)}.pf-fish.c{left:43%;top:77%;width:70px;color:#a5e1dc;animation-duration:35s;animation-delay:-9s}.pf-bubble{position:absolute;bottom:4%;width:17px;height:17px;border:2px solid #ffffff77;border-radius:50%;animation:pf-rise 23s linear infinite;animation-play-state:paused;background:#ffffff11}.pf-bubble:nth-of-type(3n){width:10px;height:10px}.pf-sub{position:fixed;left:76vw;top:18vh;width:115px;color:#f8c85b;transition:transform .2s ease-out;pointer-events:none}.pf-sub svg{width:100%;height:auto}.shell-motion .pf-fish,.shell-motion .pf-bubble{animation-play-state:running}.pf-calm .pf-fish,.pf-calm .pf-bubble,.pf-calm .pf-beam,.pf-calm .pf-sub{display:none}.quiet .pf-fish,.quiet .pf-bubble{animation:none!important}.stopped .pf-fish,.stopped .pf-bubble{animation-play-state:paused!important}.stopped .pf-sub{transition:none!important}@keyframes pf-swim{from{transform:translateX(-55vw)}to{transform:translateX(110vw)}}@keyframes pf-rise{from{transform:translateY(0);opacity:.35}to{transform:translateY(-105vh);opacity:0}}.pf-dock{display:none}.nieves-playful .pf-dock{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:15;align-items:stretch;justify-content:center;gap:.35rem;padding:.5rem .6rem calc(.5rem + env(safe-area-inset-bottom));background:#082e49d9;border-top:1px solid #ffffff77;backdrop-filter:blur(16px);overflow-x:auto}.pf-dock a{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:65px;padding:.4rem .6rem;border:2px solid transparent;border-radius:15px;text-decoration:none;font-size:.74rem;font-weight:700;color:var(--cream)}.pf-dock svg{width:28px;height:28px}.pf-dock a[aria-current=page]{background:var(--gold);color:#183f50;border-color:#fff4d8}.pf-settings{background:#fff3d9;color:#60452e;border:6px solid #e3c58a;max-height:85vh;overflow-y:auto}.pf-settings h2{color:#70492c}.pf-keys{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:.4rem;margin:1rem 0}.pf-keys button{flex-direction:column;gap:.2rem;min-width:0;min-height:160px;background:#fffaf0;color:#243d4b;border:2px solid #c6b485;border-bottom-width:10px;border-radius:0 0 16px 16px}.pf-drums{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.pf-drums button{border-radius:50%;aspect-ratio:1;background:#f8c85b;color:#243d4b;border:6px solid #dfb965;box-shadow:0 6px 0 #b18c50}.pf-feed{position:relative;min-height:200px;overflow:hidden;background:#cceef1;border-radius:22px;text-align:center;padding:2rem}.pf-feed svg{width:110px;height:100px;color:#1b6d80}.pf-feed-bubbles{display:flex;justify-content:center;gap:12px;min-height:50px}.pf-feed-bubbles span{display:block;border:3px solid #287d91;border-radius:50%;width:22px;height:22px}.pf-feed-bubbles span{animation:pf-feed-rise 5s linear infinite;animation-play-state:paused}.shell-motion .pf-feed-bubbles span{animation-play-state:running}.quiet .pf-feed-bubbles span{animation:none!important}@keyframes pf-feed-rise{to{transform:translateY(-80px);opacity:0}}.pf-practice-options{display:flex;flex-wrap:wrap;gap:.8rem}.pf-practice-options button{min-width:100px;min-height:70px;font-size:1.3rem}.nieves-playful.high-contrast{background:#000}.high-contrast #pf-scene{display:none}.high-contrast .portal,.high-contrast .book-panel,.high-contrast .book-card,.high-contrast .pf-settings{background:#000;color:#fff;border-color:#ffeb70;box-shadow:none}.high-contrast .portal svg,.high-contrast .book-card svg{background:#000;color:#ffeb70}.high-contrast .book-panel h1,.high-contrast .book-panel h2,.high-contrast .pf-settings h2,.high-contrast .portal small,.high-contrast .book-card small{color:#fff}@media(max-width:650px){.pf-header{padding:.7rem;align-items:flex-start;flex-wrap:wrap}.pf-mark{width:82px;min-height:52px}.pf-brand{gap:.7rem}.pf-brand strong{font-size:1.25rem}.pf-brand small{font-size:.75rem}.pf-welcome{margin:1.2rem 0;padding:1rem}.portal-grid,.book-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.portal{min-height:175px;padding:1rem .5rem}.portal svg{width:68px;height:68px}.portal strong{font-size:1.1rem}.portal small{font-size:.78rem}.book-panel{padding:1rem .7rem;border-width:6px;border-radius:22px}.book-card{padding:.8rem .45rem;min-height:155px}.pf-dock{justify-content:flex-start}.pf-keys button{min-height:125px;padding:.5rem .1rem}.pf-sub{width:80px}.pf-drums{gap:.5rem}.pf-drums button{padding:.6rem;font-size:.85rem}}@media(prefers-reduced-motion:reduce){#pf-scene *,.pf-feed-bubbles span{animation:none!important;transition:none!important}.pf-sub{transform:none!important}}
.pf-drums button{min-width:0;flex-direction:column}.pf-drums svg{width:60px;height:60px;max-width:100%}.pf-keys small{display:block}.book-panel #start-timer{scroll-margin-top:100px}
@media(max-width:650px){.nieves-playful .book-panel .game-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.nieves-playful footer,.pf-tagline{background:#082e49d9;border-radius:18px;padding-left:1.2rem;padding-right:1.2rem}.nieves-playful.high-contrast{--ink:#fff;--cream:#fff;--navy:#000;--blue:#ffeb70;--aqua:#fff;--gold:#ffeb70}.nieves-playful.high-contrast .card{background:#000;color:#fff;border-color:#ffeb70}

.pf-dialog-controls{position:sticky;top:0;z-index:3;background:inherit;padding:.5rem 0;border-bottom:1px solid #b99b65}.pf-dialog-controls p{flex-basis:100%;font-size:.9rem;margin:.2rem 0}
