/* A atividade ocupa a tela; os controles do adulto ficam na gaveta. */
body[data-active-module="dragPlay"] .trainer .stage-strip,
body[data-active-module="dragPlay"] .trainer .prompt-zone,
body[data-active-module="dragPlay"] .trainer .feedback {display:none!important}
body[data-active-module="dragPlay"] .trainer {grid-template-rows:minmax(0,1fr)!important}
body[data-active-module="dragPlay"] .choices.drag-play-workspace {display:block;width:100%;max-width:none;height:100%;min-height:0;padding:0;margin:0}
.dp-hub {display:grid;gap:22px;height:100%;padding:20px;box-sizing:border-box}
.dp-hub-card {background:var(--dp-bg);border:0;border-radius:30px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:0;color:#344b59;cursor:pointer;padding:18px;transition:transform .2s}
.dp-hub-card svg {height:65%;width:75%;max-height:210px}
.dp-hub-card strong {font-size:clamp(18px,2vw,27px)}
@media (hover: hover) and (pointer: fine) {
.dp-hub-card:hover {transform:translateY(-3px)}
}
body.training-fullscreen[data-app-view="treino"][data-active-module="dragPlay"][data-drag-play-view="game"] .topbar,
body.training-fullscreen[data-app-view="treino"][data-active-module="dragPlay"][data-drag-play-view="game"] .training-back-button {display:none!important}
body.training-fullscreen[data-app-view="treino"][data-active-module="dragPlay"][data-drag-play-view="game"] .app-shell,
body.training-fullscreen[data-app-view="treino"][data-active-module="dragPlay"][data-drag-play-view="game"] main,
body.training-fullscreen[data-app-view="treino"][data-active-module="dragPlay"][data-drag-play-view="game"] #view-treino.is-active {width:100%;max-width:none;height:100dvh;min-height:0;margin:0;padding:0;overflow:hidden;box-sizing:border-box}
body.training-fullscreen[data-app-view="treino"][data-active-module="dragPlay"][data-drag-play-view="game"] #view-treino.is-active {display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);gap:0}
body.training-fullscreen[data-app-view="treino"][data-active-module="dragPlay"][data-drag-play-view="game"] #view-treino > .trainer {width:100%;height:100%;min-height:0;padding:0;margin:0;border:0;border-radius:0;box-shadow:none;overflow:hidden;grid-template-rows:minmax(0,1fr)}
body.training-fullscreen[data-app-view="treino"][data-active-module="dragPlay"][data-drag-play-view="game"] #view-treino > .session-panel {display:none!important}
.dp-playfield {position:relative;display:grid;grid-template-columns:minmax(0,68fr) minmax(0,32fr);align-items:center;width:100%;height:100%;overflow:hidden;background:radial-gradient(circle at 36% 40%,#ffffffb8,transparent 55%),var(--dp-bg);isolation:isolate;animation:dp-enter .3s ease-out}
.dp-scene {position:relative;justify-self:center;width:min(100%,calc(92dvh * 7 / 6));aspect-ratio:7/6;min-width:0}
body:not(.training-fullscreen)[data-active-module="dragPlay"] .dp-scene {width:min(100%,calc(74dvh * 7 / 6))}
.dp-scene > svg {display:block;width:100%;height:100%}
.dp-target {position:absolute;display:flex;align-items:center;justify-content:center;padding:0;margin:0;border:0;border-radius:25%;background:transparent;box-shadow:none;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.dp-target span {display:flex;width:100%;height:100%;align-items:center;justify-content:center;pointer-events:none}
.dp-target svg {width:100%;height:100%;pointer-events:none}
.dp-silhouette {opacity:.23;filter:grayscale(1)}
.dp-target.is-filled .dp-silhouette {display:none}
.dp-placed {animation:dp-snap .32s ease-out}
.dp-playfield[data-game="wardrobe"] .dp-placed {width:50%;max-width:50%}
.dp-target.dp-hint {outline:3px dashed #74bda5;outline-offset:7px;animation:dp-glow 2s ease-in-out infinite}
.dp-objects {display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(3,minmax(0,1fr));align-items:center;justify-items:center;height:86%;width:100%;max-height:780px;padding:30px 22px 20px 0;box-sizing:border-box;gap:16px}
.dp-objects[data-count="4"] {grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:12px;padding-right:20px}
.dp-piece {display:flex;align-items:center;justify-content:center;width:min(100%,230px);height:100%;max-height:210px;min-height:55px;padding:12px;margin:0;border:2px solid #ffffff;border-radius:30px;background:#ffffffc9;box-shadow:0 8px 18px #526b6815,0 2px 0 #ffffff;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent;box-sizing:border-box}
.dp-piece svg {width:100%;height:100%;pointer-events:none;overflow:visible}
.dp-piece.is-selected {background:#ffffff;box-shadow:0 0 0 4px #91beb3,0 8px 18px #526b6815}
.dp-piece.dp-cue {animation:dp-cue 2.5s ease-in-out infinite}
.dp-piece.is-placed {visibility:hidden}
.dp-piece.is-dragging {opacity:0;animation:none}
.dp-ghost {position:fixed;z-index:10000;pointer-events:none;max-height:none;max-width:none;min-height:0;animation:none;transition:none;will-change:transform;cursor:grabbing;filter:drop-shadow(0 9px 8px #344b591f)}
.dp-piece:focus-visible,.dp-target:focus-visible,.dp-hub-card:focus-visible {outline:3px solid #528f9d;outline-offset:5px}
.dp-status {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.dp-bounce {animation:dp-happy .45s ease-out}
@keyframes dp-enter {from{opacity:0}to{opacity:1}}
@keyframes dp-snap {0%{scale:.9}65%{scale:1.06}100%{scale:1}}
@keyframes dp-happy {50%{transform:translateY(-5px)}100%{transform:translateY(0)}}
@keyframes dp-cue {50%{transform:translateY(-5px)}}
@keyframes dp-glow {50%{outline-color:#b5dacf}}
@media (orientation:portrait) {
 .dp-playfield {grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,70fr) minmax(0,30fr)}
 .dp-scene {width:min(96vw,calc(67dvh * 7 / 6))}
 .dp-objects,.dp-objects[data-count="4"] {grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:minmax(0,1fr);height:100%;padding:12px 18px 28px;gap:12px}
 .dp-objects[data-count="4"] {grid-template-columns:repeat(4,minmax(0,1fr))}
 .dp-piece {max-height:170px;padding:5px}
 .dp-hub {gap:12px;padding:10px}
}
@media (prefers-reduced-motion:reduce) {.dp-playfield,.dp-placed,.dp-bounce,.dp-piece.dp-cue,.dp-target.dp-hint{animation:none}}
/* Os mesmos controles de tela cheia e trava usados pelos demais módulos. */
body.training-fullscreen[data-app-view="treino"][data-active-module="dragPlay"][data-drag-play-view="game"] .topbar {display:block!important;position:fixed;inset:0 0 auto auto;width:0;height:0;min-height:0;padding:0;border:0;background:transparent;box-shadow:none;overflow:visible;pointer-events:none;z-index:110}
body.training-fullscreen[data-app-view="treino"][data-active-module="dragPlay"][data-drag-play-view="game"] .topbar .app-home-button,
body.training-fullscreen[data-app-view="treino"][data-active-module="dragPlay"][data-drag-play-view="game"] .topbar .navigation-menu-button,
body.training-fullscreen[data-app-view="treino"][data-active-module="dragPlay"][data-drag-play-view="game"] .topbar .tabs,
body.training-fullscreen[data-app-view="treino"][data-active-module="dragPlay"][data-drag-play-view="game"] .topbar .voice-settings {display:none!important}
body.training-fullscreen[data-app-view="treino"][data-active-module="dragPlay"][data-drag-play-view="game"] .top-controls {position:fixed;inset:calc(env(safe-area-inset-top,0px) + 8px) calc(env(safe-area-inset-right,0px) + 8px) auto auto;width:auto;max-width:none;display:flex!important;opacity:1;visibility:visible;transform:none;padding:0;border:0;background:transparent;box-shadow:none;overflow:visible;pointer-events:auto}
body.training-fullscreen[data-app-view="treino"][data-active-module="dragPlay"][data-drag-play-view="game"] .top-controls .utility-actions {display:flex!important;gap:8px;padding:0;border:0}
body.training-fullscreen[data-app-view="treino"][data-active-module="dragPlay"][data-drag-play-view="game"] .top-controls .screen-control-button {display:flex!important;width:54px;height:54px;min-height:54px}
.dp-playfield[data-game="dress"] .dp-target.dp-hint {outline:none;box-shadow:0 0 24px #80bd9770;background:#9cd4b220}
.dp-playfield[data-game="wardrobe"] .dp-target[data-target="hanger"] {align-items:flex-start}
.dp-bin-lid {transform-box:view-box;transform-origin:225px 242px;transition:transform .25s cubic-bezier(.2,.7,.3,1)}
.dp-bin-open .dp-bin-lid {transform:rotate(-36deg)}
.dp-next {position:absolute;right:8%;bottom:12%;display:flex;align-items:center;gap:16px;border:0;border-radius:26px;padding:20px 30px;background:#71ad88;color:white;font-family:inherit;font-weight:800;font-size:clamp(22px,3vw,32px);line-height:1.2;box-shadow:0 7px 0 #518569;cursor:pointer;animation:dp-next-in .5s .5s both;min-height:76px}
.dp-next span:first-child {display:grid;place-items:center;background:#fff3;border-radius:50%;width:42px;height:42px}
.dp-next:active {transform:translateY(4px);box-shadow:0 3px 0 #518569}
.dp-playfield[data-game="dress"].is-complete .dp-scene {animation:dp-celebrate .7s ease-in-out 2}
.dp-objects[data-count="1"] {grid-template-rows:1fr}
.dp-objects[data-count="1"] .dp-piece {width:min(100%,280px);max-height:280px}
.dp-objects[data-count="2"] {grid-template-rows:repeat(2,minmax(0,1fr))}
@keyframes dp-celebrate {25%{transform:translateY(-10px) rotate(-1deg)}75%{transform:translateY(-6px) rotate(1deg)}}
@keyframes dp-next-in {from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@media (orientation:portrait) {.dp-objects[data-count="1"],.dp-objects[data-count="2"] {grid-template-rows:1fr;grid-template-columns:repeat(2,minmax(0,1fr))}.dp-objects[data-count="1"]{grid-template-columns:1fr}.dp-next{bottom:8%;right:50%;translate:50% 0}}
@media (prefers-reduced-motion:reduce) {.dp-bin-lid{transition:none}.dp-next,.dp-playfield[data-game="dress"].is-complete .dp-scene{animation:none}}

.dp-target.dp-ready {outline:5px solid #69b795;outline-offset:7px;background:#addec949;box-shadow:0 0 0 14px #addec923;transition:outline-color .12s,background .12s}
.dp-playfield[data-game="dress"] .dp-target.dp-ready {outline:none;background:#abdec942;box-shadow:0 0 0 14px #abdec933}

/* Peças livres sem cartão; roupas vestidas pertencem ao SVG do personagem. */
.dp-piece.dp-clothing-piece,.dp-piece.dp-clothing-piece.is-selected {background:transparent;border-color:transparent;box-shadow:none;border-radius:0}
.dp-clothing-piece.is-selected svg {filter:drop-shadow(0 0 6px #83baa5)}
.dp-equipped-layer {pointer-events:none}
.dp-equipped-snap {transform-box:fill-box;transform-origin:center;animation:dp-dress-snap .22s ease-out}
@keyframes dp-dress-snap {0%{scale:.95}65%{scale:1.025}100%{scale:1}}
@media(prefers-reduced-motion:reduce){.dp-equipped-snap{animation:none}}

/* Ordem gradual: 5 brincadeiras em 3 colunas (2 em pé). */
.dp-hub {grid-template-columns:repeat(3,minmax(0,1fr))}
@media (orientation:portrait) {.dp-hub {grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Nível fácil: peça única bem grande e lugar de encaixe bem visível. */
.dp-playfield[data-game="simple"] .dp-objects[data-count="1"] .dp-piece {width:min(100%,360px);max-height:360px}
.dp-playfield[data-game="simple"] .dp-silhouette {opacity:.34}
.dp-playfield[data-game="simple"] .dp-target {border-radius:36px}
@media (orientation:landscape) {
  .dp-playfield[data-side="left"] {grid-template-columns:minmax(0,32fr) minmax(0,68fr)}
  .dp-playfield[data-side="left"] .dp-objects {order:-1;padding:30px 0 20px 22px}
  .dp-playfield[data-side="left"] .dp-next {right:auto;left:8%}
}
/* Seta discreta para a próxima brincadeira (igual à do Clicar na Tela). */
.dp-next-game {position:absolute;right:clamp(14px,2.4vw,32px);bottom:clamp(14px,3vh,32px);z-index:6;display:grid;place-items:center;width:clamp(56px,8vmin,84px);aspect-ratio:1;padding:0;border:0;border-radius:50%;background:#ffffff59;color:#34495e;opacity:.55;box-shadow:0 4px 14px #0000001a;backdrop-filter:blur(3px);cursor:pointer;transition:opacity .2s ease,transform .15s ease}
.dp-next-game svg {width:56%;height:56%}
@media (hover: hover) and (pointer: fine) {
.dp-next-game:is(:hover,:focus-visible) {opacity:.9}
}
.dp-next-game:active {transform:scale(.92)}
