/* Mi Terapia Virtual v34 — Pasatiempos (pasa.html) encima de objetivo/cognitivas/fina/laberintos */
body.pa-body { background: #FBF6EE; }
.pa-mini-svg, .lab-prev-svg { width: 100%; height: 100%; display: block; }
.pa-stage { position: relative; flex: 1 1 auto; min-height: 0; display: flex; gap: 12px; padding: 8px 10px; overflow: hidden; touch-action: none; -webkit-user-select: none; user-select: none;
  background: radial-gradient(circle at 30% 20%, #FFFFFF, #FBF4EA 70%); border-radius: 22px; }
.pa-board { position: relative; flex: 1 1 auto; min-width: 0; min-height: 0; }
.pa-board > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.pa-side { flex: 0 0 auto; width: 300px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; touch-action: pan-y; }
.pa-side:empty { display: none; }
@media (orientation: portrait) {
  .pa-stage { flex-direction: column; }
  .pa-side { width: auto; max-height: 40%; }
}
.pa-pad { display: grid; gap: 8px; }
.pa-key { font: inherit; font-size: 1.9rem; font-weight: 900; min-height: 64px; border-radius: 16px; border: 3px solid #D9CCE6; background: #fff; color: #3d3360; cursor: pointer;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; padding: 0; line-height: 1; }
.pa-key.small { font-size: 1.05rem; font-weight: 800; }
.pa-key.on, .pa-key.sel { border-color: #3d3360; background: #F1EAFE; box-shadow: 0 3px 8px rgba(61,51,96,.2); }
.pa-key.press { transform: scale(0.95); background: #EFE6FB; }
.pa-key:disabled { opacity: .35; }
.pa-sbtn { font: inherit; font-size: 1.15rem; font-weight: 900; min-height: 58px; border-radius: 16px; border: 3px solid #3d3360; background: #fff; color: #3d3360; cursor: pointer; touch-action: manipulation; padding: 0.3rem 0.8rem; }
.pa-sbtn.on { background: #3d3360; color: #fff; }
.pa-sbtn:active { transform: scale(0.97); }
.pa-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pa-row > * { flex: 1 1 0; }
.pa-note { font-size: 1rem; line-height: 1.3; color: #5b4b63; background: #fff; border-radius: 14px; padding: 0.5rem 0.7rem; }
.pa-words { display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; }
.pa-word { font-weight: 900; font-size: 1.15rem; letter-spacing: .04em; padding: 0.3rem 0.65rem; border-radius: 12px; background: #fff; color: #3d3360; border: 2px solid #E3D8EF; }
.pa-word.got { text-decoration: line-through; opacity: .55; background: #EAF6DF; border-color: #BFE3A8; }
.pa-msg { font-weight: 900; font-size: 1.3rem; color: #8a3d63; background: #FFF1C9; border-radius: 14px; padding: .5rem .7rem; text-align: center; }
.pa-won .pa-board svg { animation: paWon .9s ease 1; }
@keyframes paWon { 50% { transform: scale(1.02); } }
#v-play .pa-actions button[hidden] { display: none; }
.pa-cell-sel { fill: #FFE08A; }
.pa-bad { animation: paBad .5s ease 2; }
@keyframes paBad { 50% { opacity: .3; } }
.pa-cardsoon { opacity: .9; }
.pa-body .lab-prompt { display: block !important; text-align: center; }
#v-play .pa-key svg, .pa-key svg { position: static !important; display: inline-block; width: 46px !important; height: 46px !important; inset: auto !important; vertical-align: middle; }
.pa-key { font-size: 2.1rem; }
.pa-clue { font-size: 1.15rem; min-height: 4.2rem; background: #FFF6D9; border: 2px solid #F3D98A; }
.pa-clue small { color: #8a7a9a; font-size: .85rem; }
.pa-letters .pa-key { min-height: 52px; font-size: 1.5rem; }
@media (orientation: portrait) { .pa-letters { grid-template-columns: repeat(9, minmax(0, 1fr)) !important; } .pa-letters .pa-key { min-height: 54px; } }
.pa-clues { margin: 0; padding: 0.4rem 0.6rem 0.4rem 2rem; background: #fff; border-radius: 14px; font-size: 1.05rem; line-height: 1.35; color: #2d2640; }
.pa-clues li { padding: 0.35rem 0; border-bottom: 1px dashed #E3D8EF; cursor: pointer; }
.pa-clues li.done { text-decoration: line-through; opacity: .45; }
body.pa-cluedo .pa-side { width: 360px; }
@media (orientation: portrait) { body.pa-cluedo .pa-side { width: auto; max-height: 48%; } }
.pa-sbtn.big { min-height: 74px; font-size: 1.3rem; }
#v-play .pa-side svg, .pa-side svg { position: static !important; inset: auto !important; display: inline-block; }
.pa-side .pa-qprev { width: 150px !important; height: 150px !important; border-radius: 10px; }
/* v35 · lupa y notas automáticas */
.pa-zoom { position: absolute; inset: 0; transform-origin: 0 0; will-change: transform; }
.pa-zoom > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.pa-board.pa-zoomable { overflow: hidden; touch-action: none; border-radius: 14px; }
.pa-board.zoomed { box-shadow: inset 0 0 0 3px #C3B1E1; background: #FBF8FF; }
.pa-zbar { position: absolute; right: 6px; top: 6px; display: flex; flex-direction: column; gap: 8px; z-index: 5; align-items: center; }
.pa-zb { font: inherit; width: 60px; height: 60px; border-radius: 16px; border: 3px solid #D9CCE6; background: rgba(255,255,255,.94); font-size: 1.35rem; line-height: 1; color: #3d3360; box-shadow: 0 2px 8px rgba(61,51,96,.18); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 1px; touch-action: manipulation; }
.pa-zb b { font-size: 1.5rem; font-weight: 900; }
.pa-zb.on { background: #FFE9A8; border-color: #3d3360; }
.pa-zb:disabled { opacity: .35; }
.pa-zlv { font-weight: 900; color: #5E4E92; background: rgba(255,255,255,.9); border-radius: 10px; padding: 0 6px; font-size: 1rem; min-height: 1.2em; }
.pa-sbtn.pa-notes.on { background: #FFE9A8; border-color: #3d3360; }
.pa-pad16 .pa-key { min-height: 50px; font-size: 1.5rem; border-radius: 12px; }
@media (orientation: portrait) { .pa-pad16 { grid-template-columns: repeat(8, minmax(0, 1fr)) !important; } .pa-zb { width: 54px; height: 54px; } }
.pa-group { grid-column: 1 / -1; margin: 18px 4px 2px; font-size: 1.45rem; color: #5E4E92; border-bottom: 3px solid #EFE6FB; padding-bottom: 4px; }
.pa-group:first-child { margin-top: 4px; }
.pa-sbtn.pa-notes.on, .pa-sbtn.pa-notes.on b { color: #3d3360 !important; }
.pa-board.pa-zoomable > .pa-zoom { right: 70px; }
.pa-board.pa-zoomable > .pa-zbar { right: 4px; }
@media (orientation: portrait) { .pa-board.pa-zoomable > .pa-zoom { right: 64px; } }
