/* Rincón de niños – pantalla de juego (v2). Usa la paleta y las fuentes del tema. */
:root { --pg-ink: var(--wp--preset--color--ink, #1B2B3A); --pg-primary: var(--wp--preset--color--primary-dark, #167FA8); --pg-light: var(--wp--preset--color--primary-light, #E3F6FC); --pg-accent: #FFC934; --pg-spring: cubic-bezier(.34, 1.4, .5, 1); --pg-ease: cubic-bezier(.2, .8, .2, 1); }
html, body { height: 100%; }
body.pe-game-page { margin: 0; overflow: hidden; background: #fff; font-family: var(--wp--preset--font-family--body, system-ui, sans-serif); color: var(--pg-ink); -webkit-font-smoothing: antialiased; }
.pg { position: relative; height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: clip; opacity: 0; transition: opacity .3s; }
.pg.is-in { opacity: 1; }
.pg.is-out { opacity: 0; transform: scale(.98); transition: opacity .3s, transform .3s; }
.pg-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(circle at 15% 20%, rgba(255,201,52,.18), transparent 35%), radial-gradient(circle at 85% 80%, rgba(73,184,220,.2), transparent 40%), var(--pg-paper, #FFF8E6); }
.pg-sun .pg-bg { --pg-paper: #FFF8E6; } .pg-sky .pg-bg { --pg-paper: #EAF7FC; } .pg-mint .pg-bg { --pg-paper: #ECFAF4; } .pg-coral .pg-bg { --pg-paper: #FFF1EE; } .pg-lilac .pg-bg { --pg-paper: #F3F0FF; }
.pg-bg::before, .pg-bg::after { content: ""; position: absolute; width: 42vmax; height: 42vmax; border-radius: 50%; opacity: .5; filter: blur(60px); animation: pg-drift 26s ease-in-out infinite alternate; }
.pg-bg::before { background: #BFE9F7; top: -20vmax; left: -15vmax; }
.pg-bg::after { background: #FFE9A0; bottom: -22vmax; right: -14vmax; animation-delay: -13s; }

/* ---------- barra ---------- */
.pg-bar { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 10px clamp(12px, 3vw, 28px); background: rgba(255,255,255,.75); backdrop-filter: blur(10px); border-bottom: 2px solid rgba(22,127,168,.12); transform: translateY(-100%); transition: transform .6s .1s var(--pg-spring); }
.pg.is-in .pg-bar { transform: none; }
.pg-back { justify-self: start; font-weight: 800; color: var(--pg-primary); text-decoration: none; padding: 8px 12px; border-radius: 999px; transition: background .2s; }
.pg-back:hover { background: var(--pg-light); }
.pg-brand { display: flex; align-items: center; gap: 10px; }
.pg-title { margin: 0; font-family: var(--wp--preset--font-family--display, inherit); font-size: clamp(1.1rem, 2.5vw, 1.6rem); }
.pg-actions { justify-self: end; display: flex; gap: 8px; }
.pg-btn { min-height: 42px; padding: 8px 16px; border-radius: 999px; border: 2px solid var(--pg-primary); background: #fff; color: var(--pg-primary); font: inherit; font-weight: 800; cursor: pointer; transition: background .2s, color .2s, transform .3s var(--pg-spring); }
.pg-btn:hover { background: var(--pg-primary); color: #fff; }
.pg-btn:active { transform: scale(.95); }
.pg-ghost { border-color: rgba(0,0,0,.15); color: var(--pg-ink); }
.pg-ghost:hover { background: var(--pg-ink); border-color: var(--pg-ink); }
.pg-big { min-height: 60px; padding: 14px 34px; border-radius: 999px; border: 0; background: var(--pg-primary); color: #fff; font: inherit; font-family: var(--wp--preset--font-family--display, inherit); font-size: 1.3rem; font-weight: 700; cursor: pointer; box-shadow: 0 6px 0 rgba(0,0,0,.18); text-decoration: none; display: inline-flex; align-items: center; transition: transform .35s var(--pg-spring), box-shadow .2s; }
.pg-big:hover { transform: translateY(-3px); box-shadow: 0 9px 0 rgba(0,0,0,.18); }
.pg-big:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0,0,0,.18); }
.pg-big.pg-ghost { background: #fff; color: var(--pg-primary); border: 3px solid var(--pg-primary); box-shadow: none; }

/* ---------- mascota ---------- */
.pg-mascot { width: 44px; height: 44px; display: block; transform-origin: 50% 60%; }
.pg-mascot svg { width: 100%; height: 100%; display: block; overflow: visible; }
.pg-mascot .m-eyes { animation: pg-blink 5s infinite; transform-origin: 24px 23px; }
.pg-mascot.is-happy { animation: pg-happy .9s var(--pg-spring); }
.pg-mascot.is-happy .m-mouth { d: path("M18.5 28c3 5 8 5 11 0"); }
.pg-mascot.is-sad { animation: pg-wobble .6s; }
.pg-mascot.is-sad .m-mouth { d: path("M19.5 30.5c2.5-3 6.5-3 9 0"); }
.pg-mascot.is-talk { animation: pg-talk .5s ease-in-out 2; }

/* ---------- escenario y pantallas ---------- */
.pg-stage { position: relative; z-index: 1; flex: 1; min-height: 0; overflow: clip; user-select: none; -webkit-user-select: none; }
.pg-screen, .pg-intro { position: absolute; inset: 0; overflow: auto; padding: clamp(14px, 3vw, 32px); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.pg-screen { animation: none; }
.pg-enter { animation: pg-slide-in .55s var(--pg-ease) both; }
.pg-enter-back { animation: pg-slide-in-back .55s var(--pg-ease) both; }
.pg-leave { animation: pg-slide-out .45s var(--pg-ease) both; pointer-events: none; }
.pg-leave-back { animation: pg-slide-out-back .45s var(--pg-ease) both; pointer-events: none; }
.pg-intro { justify-content: center; text-align: center; }
.pg.is-playing .pg-intro { animation: pg-slide-out .45s var(--pg-ease) both; pointer-events: none; }
.pg-intro-ico { width: 120px; height: 120px; display: grid; place-items: center; border-radius: 36px; background: #fff; color: var(--pg-primary); box-shadow: 0 12px 0 rgba(22,127,168,.14); animation: pg-pop .8s .2s var(--pg-spring) both; }
.pg-intro-ico svg { width: 72px; height: 72px; }
.pg-intro-title { margin: 8px 0 0; font-family: var(--wp--preset--font-family--display, inherit); font-size: clamp(2rem, 6vw, 3.6rem); animation: pg-rise .7s .35s var(--pg-ease) both; }
.pg-intro-text { margin: 0; max-width: 520px; font-size: 1.15rem; opacity: .85; animation: pg-rise .7s .5s var(--pg-ease) both; }
.pg-play { margin-top: 10px; min-height: 76px; padding: 18px 48px; border-radius: 999px; border: 0; background: var(--pg-accent); color: var(--pg-ink); font: inherit; font-family: var(--wp--preset--font-family--display, inherit); font-size: 1.8rem; font-weight: 700; cursor: pointer; box-shadow: 0 8px 0 #B7791F; animation: pg-pop .8s .65s var(--pg-spring) both, pg-pulse 2.4s 1.6s ease-in-out infinite; transition: transform .3s var(--pg-spring); }
.pg-play:hover { transform: scale(1.06); }
.pg-play:active { transform: translateY(4px); box-shadow: 0 3px 0 #B7791F; }

.pg-h { margin: 6px 0 4px; font-family: var(--wp--preset--font-family--display, inherit); font-size: clamp(1.5rem, 4vw, 2.3rem); text-align: center; }
.pg-question { margin: 0; text-align: center; font-family: var(--wp--preset--font-family--display, inherit); font-size: clamp(1.5rem, 4.2vw, 2.6rem); line-height: 1.2; }
.pg-question strong { color: var(--pg-primary); }
.pg-question.pop { animation: pg-pop .5s var(--pg-spring); }
.pg-sub { margin: 0; font-size: 1.15rem; opacity: .8; display: inline-flex; align-items: center; gap: 6px; }
.pg-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.pg-label { font-weight: 800; opacity: .7; }
.pg-numico { font-family: var(--wp--preset--font-family--display, inherit); font-size: 2.6rem; font-weight: 700; color: var(--pg-primary); line-height: 1; }
.pg-stars { display: inline-flex; gap: 2px; color: var(--pg-accent); }
.pg-stars svg { width: 1.1em; height: 1.1em; filter: drop-shadow(0 1px 0 rgba(0,0,0,.2)); }

/* opciones de inicio */
.pg-choose { justify-content: center; }
.pg-options { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; max-width: 900px; }
.pg-option { width: clamp(130px, 22vw, 190px); aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 14px; border: 4px solid #fff; border-radius: 28px; background: #fff; font: inherit; font-weight: 800; font-size: 1.05rem; color: var(--pg-ink); cursor: pointer; box-shadow: 0 8px 0 rgba(22,127,168,.14); animation: pg-pop .6s calc(var(--i, 0) * 80ms) var(--pg-spring) both; transition: transform .3s var(--pg-spring), border-color .2s; }
.pg-option:hover { transform: translateY(-6px) rotate(-1deg); border-color: var(--pg-accent); }
.pg-option svg, .pg-option img { width: 64px; height: 64px; object-fit: cover; border-radius: 14px; }
.pg-option .pg-stars svg { width: 22px; height: 22px; }

/* progreso de estrellas */
.pg-progress { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; color: #D7E3EA; }
.pg-progress span { width: 26px; height: 26px; display: block; transition: color .3s, transform .4s var(--pg-spring); }
.pg-progress span svg { width: 100%; height: 100%; }
.pg-progress span.on { color: var(--pg-accent); filter: drop-shadow(0 2px 0 rgba(0,0,0,.15)); }
.pg-progress span.pop { animation: pg-pop .5s var(--pg-spring); }

/* respuestas genéricas */
.pg-answers { display: flex; flex-wrap: wrap; gap: clamp(12px, 3vw, 26px); justify-content: center; }
.pg-answer { width: clamp(110px, 24vw, 190px); aspect-ratio: 1; border-radius: 30px; border: 5px solid #fff; background: #fff; display: grid; place-items: center; cursor: pointer; padding: 14px; box-shadow: 0 10px 0 rgba(0,0,0,.08); animation: pg-pop .55s calc(var(--i, 0) * 90ms) var(--pg-spring) both; transition: transform .3s var(--pg-spring), border-color .2s; }
.pg-answer:hover { transform: translateY(-5px); }
.pg-answer svg { width: 82%; height: 82%; }
.pg-answer.is-right { border-color: #5ED6B0; background: #EFFFF8; transform: scale(1.1); }
.is-wrong { animation: pg-shake .5s !important; }
.pg-num { font-family: var(--wp--preset--font-family--display, inherit); font-size: clamp(2.8rem, 9vw, 4.4rem); font-weight: 700; color: var(--pg-ink); }
.pg-listen { margin: -4px 0 4px; }

/* ganar */
.pg-win { justify-content: center; text-align: center; }
.pg-win-star { width: 150px; color: var(--pg-accent); filter: drop-shadow(0 8px 0 rgba(0,0,0,.14)); animation: pg-pop .8s var(--pg-spring) both, pg-spin-slow 6s 1s linear infinite; }
.pg-win-star svg { width: 100%; height: 100%; display: block; }
.pg-win-text { margin: 0; font-family: var(--wp--preset--font-family--display, inherit); font-size: clamp(1.8rem, 5vw, 3rem); animation: pg-rise .6s .2s var(--pg-ease) both; }
.pg-confetti { position: fixed; z-index: 99; pointer-events: none; aspect-ratio: 1; translate: -50% -50%; animation: pg-burst 1.4s cubic-bezier(.1,.7,.3,1) forwards; }
.pg-confetti svg { width: 100%; height: 100%; display: block; }

/* ---------- pintar ---------- */
.pg-paint { gap: 10px; }
.pg-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.pg-color { width: 46px; height: 46px; border-radius: 50%; border: 4px solid #fff; background: var(--c); box-shadow: 0 0 0 2px rgba(0,0,0,.12); cursor: pointer; transition: transform .3s var(--pg-spring); }
.pg-color.on { transform: scale(1.2); box-shadow: 0 0 0 3px var(--pg-ink); }
.pg-size { width: 46px; height: 46px; border-radius: 14px; border: 2px solid rgba(0,0,0,.1); background: #fff; display: grid; place-items: center; cursor: pointer; }
.pg-size i { display: block; border-radius: 50%; background: var(--pg-ink); }
.pg-size.on { border-color: var(--pg-ink); }
.pg-tool { min-height: 44px; padding: 0 16px; border-radius: 14px; border: 2px solid rgba(0,0,0,.1); background: #fff; font: inherit; font-weight: 800; cursor: pointer; transition: transform .2s; }
.pg-tool:hover { transform: translateY(-2px); }
.pg-tool.on { background: var(--pg-ink); color: #fff; border-color: var(--pg-ink); }
.pg-outline { border-style: dashed; }
.pg-sep { width: 2px; height: 30px; background: rgba(0,0,0,.1); }
.pg-canvas { width: 100%; max-width: 1200px; flex: 1; min-height: 0; max-height: 100%; object-fit: contain; border-radius: 22px; border: 3px solid #fff; box-shadow: 0 10px 0 rgba(22,127,168,.1); touch-action: none; cursor: crosshair; background: #fff; }
.pg-paint .pg-canvas { aspect-ratio: 1400 / 900; height: auto; }

/* ---------- memoria ---------- */
.pg-cards { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: clamp(8px, 2vw, 16px); width: min(720px, 100%); margin: auto; }
.pg-mcard { position: relative; aspect-ratio: 1; border: 0; padding: 0; background: none; cursor: pointer; perspective: 700px; animation: pg-pop .5s calc(var(--i, 0) * 50ms) var(--pg-spring) both; }
.pg-mcard > span { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 20px; backface-visibility: hidden; transition: transform .5s var(--pg-spring); box-shadow: 0 6px 0 rgba(0,0,0,.1); }
.pg-mback { background: var(--pg-primary); color: var(--pg-accent); }
.pg-mback svg { width: 44%; }
.pg-mface { background: #fff; border: 3px solid var(--pg-light); transform: rotateY(180deg); }
.pg-mface svg { width: 72%; height: 72%; }
.pg-mcard.up .pg-mback { transform: rotateY(180deg); }
.pg-mcard.up .pg-mface { transform: rotateY(0); }
.pg-mcard.ok .pg-mface { border-color: #5ED6B0; background: #EFFFF8; animation: pg-pop .5s var(--pg-spring); }

/* ---------- rompecabezas ---------- */
.pg-puzzle { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px; }
.pg-board { display: grid; grid-template-columns: repeat(var(--n, 2), 1fr); gap: 5px; width: min(640px, 100%, 70vh); aspect-ratio: 4 / 3; padding: 5px; border-radius: 22px; background: var(--pg-light); transition: gap .6s, padding .6s; }
.pg-piece { border: 0; padding: 0; border-radius: 12px; cursor: pointer; background-repeat: no-repeat; animation: pg-pop .5s calc(var(--i, 0) * 40ms) var(--pg-spring) both; transition: transform .3s var(--pg-spring), box-shadow .2s, border-radius .6s; }
.pg-piece:hover { transform: scale(.96); }
.pg-piece.sel { box-shadow: 0 0 0 5px var(--pg-accent); transform: scale(.9); z-index: 1; }
.pg-piece.swap { animation: pg-pop .4s var(--pg-spring); }
.pg-board.done { gap: 0; padding: 0; }
.pg-board.done .pg-piece { border-radius: 0; }
.pg-preview { width: 160px; text-align: center; font-weight: 800; opacity: .8; }
.pg-preview img { width: 100%; border-radius: 14px; display: block; margin-bottom: 6px; }

/* ---------- concurso ---------- */
.pg-krow { width: min(900px, 100%); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pg-kscore { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: #fff; font-family: var(--wp--preset--font-family--display, inherit); font-size: 1.4rem; font-weight: 700; box-shadow: 0 4px 0 rgba(0,0,0,.08); }
.pg-kscore.pop { animation: pg-pop .5s var(--pg-spring); }
.pg-timer { width: min(900px, 100%); height: 12px; border-radius: 9px; background: rgba(0,0,0,.08); overflow: hidden; }
.pg-timer i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #5ED6B0, var(--pg-accent), #FF7F6B); border-radius: 9px; }
.pg-kgrid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 2vw, 18px); width: min(900px, 100%); flex: 1; min-height: 0; }
.pg-kans { position: relative; min-height: 120px; border: 0; border-radius: 22px; background: var(--k); color: #fff; cursor: pointer; display: grid; place-items: center; padding: 14px; box-shadow: 0 8px 0 rgba(0,0,0,.2); animation: pg-kin .5s calc(var(--i, 0) * 70ms) var(--pg-spring) both; transition: transform .3s var(--pg-spring), filter .3s; }
.pg-kans:hover { transform: scale(1.03); }
.pg-kshape { position: absolute; left: 14px; top: 14px; width: 28px; height: 28px; opacity: .95; }
.pg-kart { display: grid; place-items: center; width: clamp(80px, 16vh, 150px); aspect-ratio: 1; border-radius: 22px; background: rgba(255,255,255,.92); padding: 10px; }
.pg-kart svg { width: 85%; height: 85%; }
.pg-kart .pg-numico { font-size: clamp(2.6rem, 8vh, 4.6rem); color: var(--pg-ink); }
.pg-kans.is-right { transform: scale(1.06); box-shadow: 0 0 0 8px rgba(255,255,255,.7), 0 8px 0 rgba(0,0,0,.2); }
.pg-kgrid.is-done .pg-kans:not(.is-right) { filter: grayscale(.6) brightness(.8); transform: scale(.96); }
.pg-next { align-self: center; }
.is-hidden { display: none !important; }
.pg-kans.is-off { filter: grayscale(.7) brightness(.75); transform: scale(.94); }

/* ---------- contar ---------- */
.pg-field { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-content: center; min-height: 180px; width: min(760px, 100%); padding: 18px; border-radius: 26px; background: rgba(255,255,255,.7); }
.pg-thing { position: relative; width: clamp(56px, 11vw, 88px); aspect-ratio: 1; display: grid; place-items: center; cursor: pointer; animation: pg-pop .5s calc(var(--i, 0) * 70ms) var(--pg-spring) both; transition: transform .3s var(--pg-spring); }
.pg-thing svg { width: 100%; height: 100%; }
.pg-thing.tapped { transform: scale(.85); }
.pg-thing.tapped::after { content: attr(data-n); position: absolute; right: -6px; top: -6px; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 999px; background: var(--pg-primary); color: #fff; font-family: var(--wp--preset--font-family--display, inherit); font-weight: 700; display: grid; place-items: center; box-shadow: 0 3px 0 rgba(0,0,0,.2); animation: pg-pop .4s var(--pg-spring); }

/* ---------- arrastra ---------- */
.pg-dropzones { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; width: 100%; }
.pg-drop { flex: 1 1 220px; max-width: 320px; min-height: 180px; padding: 14px; border-radius: 26px; border: 4px dashed rgba(22,127,168,.3); background: rgba(255,255,255,.7); text-align: center; font-weight: 800; transition: transform .4s var(--pg-spring), border-color .2s, background .2s; }
.pg-drop.bump { transform: scale(1.05); border-color: #5ED6B0; background: #EFFFF8; }
.pg-drop-ico { width: 90px; height: 90px; margin: 0 auto 4px; }
.pg-drop-ico svg { width: 100%; height: 100%; }
.pg-drop-items { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; min-height: 48px; margin-top: 8px; }
.pg-drop-items .pg-dragme { width: 48px; animation: pg-pop .5s var(--pg-spring); cursor: default; }
.pg-tray { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; padding: 14px; width: min(760px, 100%); border-radius: 26px; background: rgba(255,255,255,.5); min-height: 120px; }
.pg-dragme { width: clamp(70px, 14vw, 100px); aspect-ratio: 1; display: grid; place-items: center; padding: 6px; border-radius: 20px; background: #fff; box-shadow: 0 6px 0 rgba(0,0,0,.1); cursor: grab; touch-action: none; user-select: none; animation: pg-pop .5s calc(var(--i, 0) * 70ms) var(--pg-spring) both; }
.pg-dragme svg { width: 100%; height: 100%; pointer-events: none; }
.pg-dragme.is-drag { cursor: grabbing; box-shadow: 0 18px 30px -10px rgba(0,0,0,.4); animation: none; }
.pg-sizeico { display: grid; place-items: center; width: 100%; height: 100%; }
.pg-sizeico.big svg { width: 100%; height: 100%; } .pg-sizeico.small svg { width: 45%; height: 45%; }

/* ---------- intruso ---------- */
.pg-oddgrid { display: grid; grid-template-columns: repeat(var(--cols, 2), 1fr); gap: clamp(12px, 3vw, 24px); width: min(620px, 100%); }
.pg-oddcard { width: 100%; }

/* ---------- trazos ---------- */
.pg-tracewrap { width: min(520px, 100%, 62vh); }
.pg-tracecv { aspect-ratio: 1; width: 100%; height: auto; }

/* ---------- animaciones ---------- */
@keyframes pg-slide-in { from { opacity: 0; transform: translateX(60px) scale(.97); } }
@keyframes pg-slide-in-back { from { opacity: 0; transform: translateX(-60px) scale(.97); } }
@keyframes pg-slide-out { to { opacity: 0; transform: translateX(-60px) scale(.97); } }
@keyframes pg-slide-out-back { to { opacity: 0; transform: translateX(60px) scale(.97); } }
@keyframes pg-pop { from { opacity: 0; transform: scale(.4); } }
@keyframes pg-kin { from { opacity: 0; transform: translateY(40px) scale(.9); } }
@keyframes pg-rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes pg-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes pg-shake { 0%,100% { transform: translateX(0); } 20%,60% { transform: translateX(-12px) rotate(-2deg); } 40%,80% { transform: translateX(12px) rotate(2deg); } }
@keyframes pg-burst { from { opacity: 1; transform: translate(0,0) scale(.4) rotate(0); } to { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.1) rotate(300deg); } }
@keyframes pg-spin-slow { to { transform: rotate(360deg); } }
@keyframes pg-drift { to { transform: translate(8vmax, 6vmax) scale(1.15); } }
@keyframes pg-blink { 0%,92%,100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes pg-happy { 0% { transform: translateY(0) rotate(0); } 30% { transform: translateY(-14px) rotate(-12deg) scale(1.15); } 60% { transform: translateY(0) rotate(10deg); } 100% { transform: none; } }
@keyframes pg-wobble { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 75% { transform: rotate(14deg); } }
@keyframes pg-talk { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-4px) scale(1.06); } }

@media (max-width: 700px) {
  .pg-bar { grid-template-columns: auto 1fr auto; padding: 8px 10px; }
  .pg-back { font-size: 0; padding: 8px 10px; } .pg-back span { font-size: 1.2rem; }
  .pg-full { display: none; }
  .pg-title { font-size: 1rem; }
  .pg-kgrid { gap: 10px; grid-auto-rows: minmax(0, 1fr); } .pg-kans { min-height: 0; padding: 10px; }
  .pg-field { box-sizing: border-box; gap: 10px; padding: 14px; }
  .pg-puzzle .pg-preview { display: none; }
  .pg-option { width: calc(50% - 8px); }
  /* arrastrar: destinos lado a lado y bajos para que la bandeja quepa en pantallas cortas */
  .pg-dropzones { flex-wrap: nowrap; gap: 10px; }
  .pg-drop { flex: 1 1 0; min-width: 0; min-height: 0; padding: 10px 8px; border-radius: 20px; }
  .pg-drop-ico { width: 60px; height: 60px; }
  .pg-drop-items { gap: 4px; min-height: 40px; }
  .pg-drop-items .pg-dragme { width: 40px; }
  .pg-tray { gap: 10px; padding: 10px; min-height: 0; }
  .pg-dragme { width: 66px; }
}
@media (prefers-reduced-motion: reduce) {
  .pg *, .pg-confetti { animation: none !important; transition: none !important; }
  .pg-bar { transform: none; }
}
