/* Corpo e rosto no mesmo desenho. A bandeja rola e mantém o encaixe à vista. */
.games-shell{max-width:940px;margin:0 auto}.game-choice{display:flex;align-items:center;gap:26px;width:100%;min-height:260px;padding:22px;background:white;border:2px solid var(--line);border-bottom-width:5px;border-radius:24px;text-align:left}.game-choice-art{display:block;flex:0 0 145px;height:240px;overflow:hidden}.game-choice-art svg{display:block;width:100%;height:100%}.game-choice-copy{display:flex;flex-direction:column;gap:12px;max-width:420px}.game-choice-copy strong{font-size:30px;line-height:1.15}.game-choice-copy>span{color:var(--muted);font-size:17px}.game-choice-copy .game-choice-link{font-size:17px;color:var(--primary);font-weight:750}.game-next{font-size:15px;color:var(--muted);margin:18px 0}.game-care{padding:15px 18px;border-radius:15px;background:#eaf1fb;font-size:14px;line-height:1.6;color:var(--muted)}
.game-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.game-toolbar h2{font-size:25px;white-space:nowrap}.game-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:8px 14px;border:1px solid #89a2c3;border-radius:12px;background:white;font-size:14px;font-weight:700;line-height:1.25}.game-gender{display:flex;gap:6px;justify-content:center;width:230px;margin:0 auto 10px;padding:4px;border-radius:14px;background:#eaf1fb}.game-gender button{flex:1;min-height:40px;background:transparent;border-radius:10px;font-size:15px;font-weight:700}.game-gender button.active{background:var(--primary);color:white}
.game-workspace{display:grid;grid-template-columns:minmax(0,1fr) 254px;align-items:stretch;gap:20px;--game-height:530px}.game-stage{position:relative;height:var(--game-height);display:flex;align-items:center;justify-content:center;background:linear-gradient(#fffdf7,#f6f8fc);border:2px solid #eaf1fb;border-radius:27px;padding:16px;overflow:visible;min-width:0}.game-body{position:relative;max-width:100%;margin:auto}.game-art,.game-targets{position:absolute;top:0;right:0;bottom:0;left:0}.game-art{pointer-events:none}.game-art svg{display:block;width:100%;height:100%;overflow:visible}.game-target{position:absolute;left:var(--target-x);top:var(--target-y);width:var(--target-w);height:var(--target-h);transform:translate(-50%,-50%);border-radius:45%;background:transparent;border:2px solid transparent;padding:0;touch-action:manipulation;pointer-events:none;opacity:1!important;transition:background-color .15s,border-color .15s;min-width:0;min-height:0}.game-target.is-available,.game-target.is-placed{pointer-events:auto}.body-game.has-selection .game-target.is-placed{pointer-events:none}.game-target.is-selected{z-index:3;background:#eaf1fb33;border:2px dashed #536579;box-shadow:0 0 0 4px #eaf1fb99}.game-target.is-selected::after{content:"";position:absolute;left:50%;top:50%;width:max(100%,36px);height:max(100%,36px);transform:translate(-50%,-50%);border-radius:45%;border:2px solid transparent;pointer-events:none;transition:width .15s,height .15s}.game-target.is-near::after{width:max(100%,72px);height:max(100%,72px);border:3px solid #89a2c3;background:#eaf1fb66;box-shadow:0 0 0 5px #f6f8fcaa}.game-target.is-hovered::after{border-color:#3566a8;background:#c9d8ed88}.game-target:focus-visible{outline:4px solid #266ac9;outline-offset:3px;z-index:5}.game-target.is-placed:active{background:#eaf1fb33}
.game-parts-wrap{min-width:0;display:flex;flex-direction:column;height:var(--game-height)}.game-parts-title{font-size:14px;font-weight:700;color:var(--muted);margin:0 0 8px;text-align:center}.game-parts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:2px 5px 6px 2px;scrollbar-width:thin;scrollbar-color:#89a2c3 #eaf1fb;-webkit-overflow-scrolling:touch}.game-piece{position:relative;min-width:0;min-height:100px;padding:7px 5px 6px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:2px solid var(--line);border-bottom-width:4px;background:white;border-radius:17px;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.game-piece-art{display:flex;align-items:center;justify-content:center;pointer-events:none;width:100%;height:50px}.game-piece-art svg{display:block;width:100%;height:100%;max-width:75px;pointer-events:none}.game-piece-label{font-size:14px;font-weight:750;line-height:1.2;text-align:center;pointer-events:none;white-space:nowrap}.game-piece-side{font-size:10px;line-height:1.15;color:#536579;white-space:nowrap;pointer-events:none}.game-piece.is-selected{border-color:#3566a8;background:#eaf1fb;box-shadow:0 0 0 2px #c9d8ed}.game-piece.is-dragging{opacity:.6}.game-piece.is-complete{opacity:.55}.game-piece-check{position:absolute;right:6px;top:2px;font-weight:800;font-size:14px;color:#3566a8}.game-tray-more{flex-shrink:0;min-height:44px;margin-top:5px;padding:5px 3px;border:1px solid #c9d8ed;border-radius:11px;background:#eaf1fb;font-size:12px;font-weight:700;color:#3566a8;touch-action:manipulation}.game-tray-more[hidden]{display:none}.game-message{min-height:45px;margin:12px 4px 0;text-align:center;font-size:15px;line-height:1.5;color:var(--primary);font-weight:600}
.game-drag-ghost{position:fixed;z-index:80;pointer-events:none;transform:translate(-50%,-85%);display:flex;align-items:center;justify-content:center;flex-direction:column;width:92px;height:106px;padding:8px;border:2px solid #3566a8;border-radius:17px;background:#fffef6ed;box-shadow:0 7px 15px #24344b25}.game-drag-ghost svg{display:block;width:68px;height:66px}.game-drag-ghost span{font-size:14px;font-weight:750;color:#3566a8}
.game-focus-callout{position:absolute;left:8px;bottom:12px;width:154px;padding:7px 8px 6px;border:3px solid #89a2c3;border-radius:20px;background:#fffffff7;box-shadow:0 5px 14px #3566a822;z-index:6;pointer-events:none;opacity:0;transform:translateY(5px);transition:opacity .12s,transform .12s}.game-focus-callout.is-visible{opacity:1;transform:none}.game-focus-picture{height:105px;overflow:hidden;border-radius:12px;background:#f6f8fc}.game-focus-picture svg{width:100%;height:100%!important}.game-focus-callout>span{display:block;text-align:center;font-size:12px;font-weight:750;color:#3566a8;margin-top:3px}.game-focus-mark{fill:#c9d8ed66;stroke:#3566a8;stroke-width:4;stroke-dasharray:6 3}
.game-success{position:fixed;top:0;right:0;bottom:0;left:0;z-index:90;display:flex;align-items:center;justify-content:center;padding:25px 20px;background:#3566a870}.game-success-card{position:relative;z-index:2;width:min(100%,370px);padding:24px 23px 20px;border-radius:28px;border:3px solid #c9d8ed;background:#fffef7;box-shadow:0 15px 35px #24344b33;text-align:center}.game-success-star{display:block;font-size:48px;line-height:1.2;color:#d7ac4d}.game-success h3{font-size:29px;color:#3566a8;margin:8px 0}.game-success p{font-size:16px;color:var(--muted);margin:0 0 18px}.game-restart{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;width:100%;min-height:150px;border-radius:24px;background:#3566a8;color:white;border:2px solid #3566a8;border-bottom-width:5px;font-size:20px;font-weight:750}.game-restart-icon{font-family:Arial,sans-serif;font-size:82px;line-height:1}.game-success-back{margin-top:14px;min-height:46px;width:100%;background:transparent}.game-fireworks{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;overflow:hidden;z-index:4}.game-firework-burst{position:absolute;left:var(--burst-x);top:var(--burst-y);width:1px;height:1px}.game-firework-burst i{position:absolute;width:5px;height:13px;border-radius:6px;background:var(--spark-color);opacity:0;transform-origin:center;animation:game-soft-firework 1.8s var(--burst-delay) ease-out 1}.game-firework-burst i:nth-child(even){width:6px;height:6px}@keyframes game-soft-firework{0%{opacity:0;transform:rotate(var(--spark-angle)) translateY(0)}12%{opacity:.8}70%{opacity:.55}100%{opacity:0;transform:rotate(var(--spark-angle)) translateY(-100px)}}
@media(max-width:600px){.game-choice{gap:16px;padding:17px;min-height:230px}.game-choice-art{flex-basis:104px;height:210px}.game-choice-copy{gap:10px}.game-choice-copy strong{font-size:25px}.game-choice-copy>span{font-size:15px}.game-toolbar{gap:7px;margin-bottom:7px}.game-toolbar h2{font-size:21px}.game-button{padding:8px 10px;font-size:12px}.game-gender{width:218px;margin-bottom:8px}.game-workspace{grid-template-columns:minmax(0,1fr) 145px;gap:9px;--game-height:360px}.game-stage{padding:7px;border-radius:20px}.game-parts-title{margin-bottom:5px;font-size:12px}.game-parts{gap:6px;padding-right:3px}.game-piece{min-height:85px;padding:5px 3px;border-radius:12px;gap:3px;border-bottom-width:3px}.game-piece-art{height:45px}.game-piece-art svg{max-width:58px}.game-piece-label{font-size:12px}.game-piece-side{font-size:8px}.game-message{font-size:13px;margin-top:9px;min-height:39px}.game-target{border-radius:45%;border-width:1px}.game-focus-callout{left:4px;bottom:7px;width:130px;padding:5px}.game-focus-picture{height:90px}.game-care{padding:12px 15px}.game-tray-more{font-size:10px}.game-success-card{padding:20px}.game-success h3{font-size:27px}}
@media(max-width:360px){.game-workspace{grid-template-columns:minmax(0,1fr) 132px;gap:7px}.game-parts{gap:4px}.game-piece-label{font-size:11px}.game-piece-side{font-size:7.5px}.game-toolbar h2{font-size:20px}.game-button{padding:8px}.game-focus-callout{width:120px}}
@media(max-width:600px) and (max-height:740px) and (orientation:portrait){.game-toolbar{margin-bottom:5px}.game-toolbar h2{font-size:18px}.game-button{min-height:40px;padding:7px 8px;font-size:11px}.game-gender{width:200px;margin-bottom:5px}.game-gender button{min-height:32px;font-size:13px}.game-workspace{--game-height:300px}.game-piece{min-height:77px}.game-piece-art{height:38px}.game-message{font-size:11px;line-height:1.3;margin-top:6px;min-height:28px}.game-success-card{padding:15px}.game-restart{min-height:130px}.game-restart-icon{font-size:67px}}
@media(max-height:500px) and (orientation:landscape){.game-toolbar{margin-bottom:6px}.game-gender{margin-bottom:6px}.game-workspace{grid-template-columns:minmax(0,1fr) minmax(230px,42%);gap:12px;--game-height:240px}.game-stage{padding:7px}.game-parts{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.game-piece{min-height:73px;padding:3px;gap:2px;border-bottom-width:3px}.game-piece-art{height:36px}.game-piece-label{font-size:11px}.game-piece-side{font-size:9px}.game-message{font-size:11px;min-height:22px;line-height:1.25;margin-top:4px}.game-parts-title{font-size:12px;margin-bottom:5px}.game-focus-callout{left:5px;bottom:7px;width:125px}.game-focus-picture{height:85px}.game-success{padding:10px}.game-success-card{padding:10px 18px;max-width:350px}.game-success-star{font-size:26px}.game-success h3{font-size:24px;margin:3px 0}.game-success p{font-size:13px;margin-bottom:8px}.game-restart{min-height:100px;gap:1px;font-size:16px}.game-restart-icon{font-size:53px}.game-success-back{min-height:40px;margin-top:8px}}
@media(max-height:350px) and (orientation:landscape){.game-workspace{--game-height:200px}.game-success-star{display:none}.game-success-card{padding:8px 15px}.game-restart{min-height:90px}.game-success-back{min-height:36px;margin-top:5px}}
.high-contrast .game-choice,.high-contrast .game-stage,.high-contrast .game-piece{border-color:#89a2c3}.high-contrast .game-target.is-selected{border-color:#24344b;background:#eaf1fb44}.high-contrast .game-piece-side{color:#24344b}
@media(prefers-reduced-motion:reduce){.game-drag-ghost,.game-piece,.game-target,.game-target::after,.game-focus-callout{transition:none!important;animation:none!important}.game-fireworks{display:none}}

/* v0.6: corpo ao centro, todas as peças em duas linhas abaixo. */
.games-shell{max-width:780px}.body-game{max-width:680px;margin:auto}
.game-workspace{display:flex;flex-direction:column;align-items:center;gap:6px}
.game-stage{width:100%;max-width:430px;min-height:155px;height:350px;padding:6px;background:#fffef9;border:1px solid #eaf1fb;border-radius:23px}
.game-parts-wrap{width:100%;height:auto;display:block}
.game-parts-title{font-size:13px;margin:0 0 4px;line-height:1.3}
.game-parts{grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;overflow:visible;padding:0;max-height:none}
.game-piece{min-height:84px;padding:5px 4px 7px;gap:3px;border-radius:16px}
.game-piece-art{height:50px}.game-piece-art svg{max-width:90px}.game-piece-label{font-size:15px}
.game-piece-progress{display:flex;gap:3px;position:absolute;bottom:2px;left:50%;transform:translateX(-50%)}
.game-piece-progress i{width:4px;height:4px;border:1px solid #89a2c3;border-radius:50%}.game-piece-progress i.is-filled{background:#536579}
.game-message{min-height:23px;margin:7px 0 0;font-size:14px;line-height:1.4}
.game-drag-ghost{transform:translate(-50%,-50%);display:block;background:transparent;border:0;padding:0;box-shadow:none;filter:drop-shadow(0 2px 3px #3566a830)}
.game-drag-ghost svg{display:block;width:100%;height:100%;max-width:none}
.game-complete-label{position:absolute;left:0;right:0;bottom:3px;display:none;text-align:center;font-size:15px;font-weight:750;color:#3566a8;pointer-events:none}
.body-game.is-finished .game-complete-label{display:block}
.games-playing .header{margin-bottom:7px}.games-playing .shell{padding-top:12px;padding-bottom:calc(105px + env(safe-area-inset-bottom))}
.game-target.is-selected{background:#f8dc6722;box-shadow:none}.game-target.is-near::after{background:#fae78b55;border-color:#3566a8}
.body-game .body-empty-shape{stroke:#89a2c3;stroke-width:1.8}
.game-fireworks{z-index:6;border-radius:inherit}
@media(max-width:600px){
 .game-toolbar{margin-bottom:5px}.game-gender{margin-bottom:6px;width:215px}.game-gender button{min-height:34px}
 .game-stage{padding:4px;border-radius:19px}.game-parts{gap:5px}.game-piece{min-height:73px;padding:4px 2px 7px;gap:2px;border-radius:12px}
 .game-piece-art{height:42px}.game-piece-art svg{max-width:75px}.game-piece-label{font-size:12px}
 .game-message{font-size:12px;min-height:20px}.games-playing .brand-logo{width:140px}
}
@media(max-width:360px){.game-parts{gap:4px}.game-piece{min-height:69px}.game-piece-art{height:39px}.game-piece-label{font-size:11px}.game-parts-title{font-size:12px}}
@media(max-height:700px){
 .games-playing .header{margin-bottom:4px}.games-playing .shell{padding-top:6px}.game-toolbar{margin-bottom:4px}.game-gender{margin-bottom:4px}
 .game-piece{min-height:64px}.game-piece-art{height:35px}.game-piece-label{font-size:12px}.game-message{font-size:12px}.game-parts-title{margin-bottom:3px}
}
@media(max-height:500px) and (orientation:landscape){
 .games-playing .header{display:none}.game-toolbar{margin-bottom:2px}.game-toolbar h2{font-size:19px}
 .game-button{min-height:34px;padding:6px 10px;font-size:12px}.game-gender{margin-bottom:3px;padding:2px}.game-gender button{min-height:28px;font-size:13px}
 .game-piece{min-height:49px;padding:2px 3px 5px;border-radius:10px}.game-piece-art{height:25px}.game-piece-label{font-size:11px}.game-parts{gap:4px}
 .game-parts-title{font-size:11px;line-height:1.2}.game-workspace{gap:4px}.game-message{font-size:11px;line-height:1.2;min-height:14px;margin-top:4px}
}
@media(min-width:601px) and (max-height:700px){
 .games-playing .header{display:none}.game-toolbar .game-button{min-height:34px;padding:6px 11px}
 .game-gender{padding:3px;margin-bottom:4px}.game-gender button{min-height:28px}
 .game-piece{min-height:49px;padding:2px 4px 5px;gap:2px}.game-piece-art{height:22px}.game-piece-label{font-size:12px}
 .game-stage{padding:2px}.game-message{min-height:20px}
}
@media(max-width:600px) and (max-height:650px) and (orientation:portrait){
 .games-playing .header{display:none}.game-toolbar{margin-bottom:3px}
 .game-toolbar .game-button{min-height:34px;padding:6px 8px}
 .game-gender{padding:2px;margin-bottom:3px}.game-gender button{min-height:28px}
 .game-piece{min-height:56px;padding:3px 2px 6px;gap:2px}.game-piece-art{height:29px}
 .game-message{min-height:16px;margin-top:4px;font-size:11px}.game-stage{padding:2px}
}

/* Eleven body part types stay in two rows, including the new trunk. */
@media(max-width:380px){.body-game .game-piece-label{font-size:11px}.body-game .game-parts{gap:4px}.body-game .game-piece{padding-left:1px;padding-right:1px}}

@media(max-height:500px) and (orientation:landscape){
 .body-game .game-workspace{flex-direction:row;align-items:center;gap:12px}
 .body-game .game-stage{width:42%;flex:0 0 42%}
 .body-game .game-parts-wrap{width:auto;flex:1;min-width:0}
 .body-game .game-parts{grid-template-columns:repeat(4,minmax(0,1fr))}
}

/* v0.16.11 — Meu corpo: rounded educational toy board and recessed pieces.
   Stage geometry and hit targets stay unchanged. Motion only starts from JS
   after a correct placement, respecting the adult's effects preference. */
.body-game .game-stage{
  isolation:isolate;border:1px solid #D7E4F4;border-bottom:4px solid #C9D9ED;
  background:radial-gradient(ellipse at 50% 44%,#FFFFFF 0%,#FFFFFF 34%,#F0F5FD 100%);
  box-shadow:inset 0 2px 0 #FFF,0 5px 14px #244B8010;
}
.body-game .game-parts{
  padding:7px;border:1px solid #DCE7F5;border-radius:20px;
  background:linear-gradient(180deg,#EDF3FC,#F8FAFE);
  box-shadow:inset 0 2px 4px #355F8E0A;
}
.body-game .game-piece{
  border:1px solid #C9D9EE;border-bottom:3px solid #AFC4E1;
  background:linear-gradient(160deg,#FFFFFF 28%,#F3F7FD);
  box-shadow:inset 0 2px 0 #FFFFFF,0 2px 3px #254A7A0C;
  color:#24344B;
}
.body-game .game-piece-art{filter:drop-shadow(0 1px 1px #24344B18)}
.body-game .game-piece.is-selected{
  border:2px solid #3566A8;border-bottom:4px solid #244B80;
  background:linear-gradient(150deg,#F5F9FF,#DCEAFF);
  box-shadow:0 0 0 2px #BCD3F0,inset 0 2px 0 #FFFFFF;
}
.body-game .game-piece.is-complete{
  opacity:0.64;background:#F2F6FC;border-bottom-color:#C9D9EE;box-shadow:none;
}
.body-game .game-piece-check{
  display:grid;place-items:center;width:16px;height:16px;right:3px;top:3px;
  border-radius:50%;font-size:11px;background:#DCEAFF;color:#244B80;
}
.body-game .game-piece-progress i{border-color:#6E91BE;background:white}
.body-game .game-piece-progress i.is-filled{background:#3566A8}
.body-game .body-empty-shape{stroke:#91ACCE;stroke-width:1.8;stroke-dasharray:4 3}
.body-game .body-part.is-selected .body-empty-shape{
  fill:#DCEAFF;stroke:#3566A8;stroke-width:3.6;stroke-dasharray:none;
}
.body-game .game-target.is-selected{
  background:transparent;border-color:transparent;box-shadow:none;
}
.body-game .game-target.is-selected::after{
  border-color:transparent;border-style:dashed;background:transparent;box-shadow:none;
}
.body-game .game-target.is-near::after{
  border-color:#3566A8;border-style:solid;background:#BBD7FF33;
  box-shadow:0 0 0 4px #EDF5FFB3;
}
.body-game .game-target.is-hovered::after{
  border-color:#244B80;background:#BBD7FF55;
}
.body-game .body-part--placed .body-piece-outline{pointer-events:none}
.body-game .body-part.is-settling,.body-game .body-whole.is-settling{
  transform-box:fill-box;transform-origin:center;
  animation:body-piece-settle 320ms cubic-bezier(.2,.75,.3,1) 1 both;
}
@keyframes body-piece-settle{
  0%{transform:translateY(-5px) scale(.96)}
  65%{transform:translateY(1px) scale(1.018)}
  100%{transform:translateY(0) scale(1)}
}
.high-contrast .body-game .game-stage,.high-contrast .body-game .game-parts,
.high-contrast .body-game .game-piece{background:#FFFFFF;border-color:#7187A4}
.high-contrast .body-game .body-empty-shape{fill:#F3F7FC;stroke:#566F91}
.high-contrast .body-game .game-piece.is-selected{background:#E4EDFA;border-color:#244B80}
.high-contrast .body-game .body-part.is-selected .body-empty-shape{fill:#D5E6FC;stroke:#244B80}
.high-contrast .body-game .game-target.is-selected::after{border-color:#244B80;box-shadow:none}
@media(max-width:380px){.body-game .game-parts{padding:5px;border-radius:15px}}
@media(max-height:500px) and (orientation:landscape){.body-game .game-parts{padding:5px;border-radius:15px}}
@media(prefers-reduced-motion:reduce){
  .body-game .body-part.is-settling,.body-game .body-whole.is-settling{animation:none!important}
}

/* v0.16.12: the body atlas and hit regions are unchanged; only its toy tray gains depth. */
.body-game .game-stage{background:radial-gradient(ellipse at 50% 15%,#fff 25%,#f2f6fc 80%);border:5px solid #dac4a5;border-bottom-color:#bda07c;box-shadow:0 3px 0 #aa8c68,0 10px 16px #4a3d2e0d,inset 0 0 0 2px #fff9;border-radius:27px}
.body-game .game-piece{background:radial-gradient(ellipse at 25% 0,#fff,#f8f8f3);border-color:#d6c7b0;border-bottom-color:#bda98d;box-shadow:0 3px 5px #4a3d2e10,inset 0 1px 0 white}
.body-game .game-piece.is-selected{background:#edf4ff;border-color:#3566a8;box-shadow:0 0 0 3px #3566a820,0 4px 7px #24344b12}
.body-game .game-piece.is-complete{background:#edf4fd;border-color:#aac0dd}
@media(max-width:600px){.body-game .game-stage{border-width:4px;border-radius:22px}}
@media(max-height:500px) and (orientation:landscape){.body-game .game-stage{border-width:3px;border-radius:18px}}
.high-contrast .body-game .game-stage,.high-contrast .body-game .game-piece{border-color:#627a9d;box-shadow:none;background:white}
@media(forced-colors:active){.body-game .game-stage,.body-game .game-piece{background:Canvas;border-color:CanvasText;box-shadow:none}}
