/* GameFactory · plantilla "merienda@1" — se carga después de sort.css; todo va dentro de .gfp */

/* mantel de picnic a cuadritos */
.gfp .gfp-blanket{position:absolute;left:-6%;right:-6%;bottom:0;height:46%;z-index:0;border-radius:50% 50% 0 0/22% 22% 0 0;
  background:repeating-linear-gradient(90deg,rgba(255,255,255,.85) 0 18px,transparent 18px 36px),repeating-linear-gradient(0deg,rgba(255,255,255,.55) 0 18px,transparent 18px 36px),#E5484D;
  box-shadow:0 -4px 0 rgba(160,30,40,.35) inset}

/* menú: las tres primas sentadas en el mantel */
.gfp .gfp-menupets{position:relative;align-items:flex-end;container-type:size}
.gfp .gfp-row{position:relative;z-index:1;display:flex;align-items:flex-end;justify-content:center;gap:2%;width:100%;height:100%;padding-bottom:6%}
.gfp .gfp-row .gfp-pet-img{height:min(82cqh,170px);max-height:none;width:auto;max-width:34%;object-fit:contain;filter:drop-shadow(0 8px 6px rgba(40,0,30,.4));animation:none}
.gfp .gfp-row .k-mia{height:min(92cqh,200px)}
/* «Y SUS PRIMAS» en una sola línea, al ancho real del escenario */
.gfp .menu{container-type:inline-size}
.gfp .logo .l2{font-size:clamp(26px,13cqw,52px);white-space:nowrap;-webkit-text-stroke-width:5px}
.gfp .gfp-menupets .bubble{bottom:auto;top:0}

/* juego: cielo donde cae la comida y picnic abajo */
.gfp .gfp-sub{display:flex;justify-content:space-between;align-items:center;min-height:22px;font:800 16px/1 var(--display);padding:0 4px;text-shadow:0 2px 0 rgba(30,60,30,.5)}
.gfp .gfp-hearts i{font-style:normal;font-size:20px;color:#FF3F6E;margin-right:2px;text-shadow:0 2px 0 rgba(120,0,30,.4);transition:filter .2s,opacity .2s}
.gfp .gfp-hearts i.off{filter:grayscale(1);opacity:.35}
.gfp .gfp-sky{position:relative;flex:1;min-height:120px;overflow:visible;touch-action:none}
.gfp .gfp-food{position:absolute;top:0;font-size:46px;line-height:1;cursor:grab;touch-action:none;z-index:3;filter:drop-shadow(0 6px 4px rgba(0,0,0,.25));-webkit-user-select:none;user-select:none}
.gfp .gfp-food.bad{filter:drop-shadow(0 0 6px rgba(255,60,60,.9)) drop-shadow(0 6px 4px rgba(0,0,0,.25))}
.gfp .gfp-food.held{cursor:grabbing;z-index:5}
.gfp .gfp-food.fly{position:fixed;z-index:60;pointer-events:none}
.gfp .gfp-food.splat{animation:gfp-splat .4s ease-out forwards}
@keyframes gfp-splat{to{opacity:0;filter:blur(2px)}}
.gfp .gfp-tip{position:absolute;left:50%;top:6px;transform:translate(-50%,-8px);max-width:92%;text-align:center;z-index:4;opacity:0;pointer-events:none;
  background:#fff;color:var(--ink);font:800 15px/1.25 var(--display);padding:8px 14px 6px;border-radius:14px;box-shadow:0 6px 14px rgba(0,0,0,.25);transition:opacity .2s,transform .2s}
.gfp .gfp-tip.show{opacity:1;transform:translate(-50%,0)}
.gfp .gfp-tip.bad{background:#FFE3EC;color:#A3135F}
.gfp.slowmo .gfp-sky{background:radial-gradient(circle at 50% 40%,rgba(160,200,255,.35),transparent 70%)}

.gfp{--pic:min(34vh,250px)}
@supports (height:1dvh){.gfp{--pic:min(34dvh,250px)}}
.gfp .gfp-picnic{position:relative;height:var(--pic);flex:none}
.gfp .gfp-pets{position:relative;z-index:1;display:grid;grid-template-columns:repeat(3,1fr);gap:4px;height:100%;align-items:end}
.gfp .gfp-petbtn{position:relative;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;border:0;background:none;padding:0 0 6px;min-width:0}
/* tamaños fijos, sin porcentajes: el Safari del iPhone no resuelve "62 % del alto" dentro de un botón y las fotos quedaban sin tamaño */
.gfp .gfp-petbtn .gfp-pet-img{height:calc(var(--pic) * .62);width:auto;max-width:100%;object-fit:contain;filter:drop-shadow(0 8px 6px rgba(40,0,30,.4));transform-origin:50% 100%}
.gfp .gfp-petbtn .k-mia{height:calc(var(--pic) * .68)}
.gfp .gfp-bowl{margin-top:-6px;min-width:72%;padding:4px 6px 6px;border-radius:0 0 40px 40px;background:linear-gradient(#FFFFFF,#DCD6F7);border:3px solid #fff;
  box-shadow:0 4px 0 rgba(60,30,90,.35);font-size:18px;line-height:1;text-align:center;white-space:nowrap}
.gfp .gfp-name{margin-top:4px;background:#fff;color:var(--ink);border-radius:12px;padding:3px 10px 1px;font:800 14px/1.1 var(--display);box-shadow:0 3px 0 #4A1E8F}
.gfp .gfp-petbtn .bubble{bottom:auto;top:-6%}
.gfp .gfp-petbtn.ok .gfp-bowl{box-shadow:0 0 0 4px #4CD27A,0 4px 0 rgba(60,30,90,.35)}
.gfp .gfp-petbtn.nope{animation:gfs-shake .4s}
.gfp .gfp-petbtn:active .gfp-bowl{transform:translateY(2px)}

/* ayudas */
.gfp .gfp-tools{display:flex;justify-content:center;gap:28px;padding-top:2px}
.gfp .gfo-tool{display:grid;justify-items:center;gap:3px;border:0;background:none;padding:0}
.gfp .gfo-tool .round{position:relative;width:46px;height:46px}
.gfp .gfo-tool b{font:800 13px/1.1 var(--display);white-space:nowrap;text-shadow:0 1px 0 rgba(0,0,0,.4)}
.gfp .gfo-tool.used{opacity:.45}
.gfp .gfo-cost{position:absolute;right:-12px;top:-9px;display:flex;align-items:center;gap:2px;padding:2px 5px 1px 2px;border-radius:999px;background:#fff;color:var(--ink);
  font:800 11px/1 var(--display);font-style:normal;box-shadow:0 2px 0 rgba(0,0,0,.25)}
.gfp .gfo-cost .coin{width:13px;height:13px}
.gfp .gfo-cost .coin::after{inset:3px;border-width:1px}
.gfp .modal .btn .coin{width:20px;height:20px}
.gfp .gfp-lvf{font-size:13px;letter-spacing:-1px}
.gfp .gfp-sad{display:flex;align-items:flex-end;justify-content:center;height:100%;background:#BFE6FF;filter:grayscale(.4)}
.gfp .gfp-sad img{height:70%;width:auto;object-fit:contain}
@media (max-height:640px){.gfp{--pic:30vh}.gfp .gfp-food{font-size:38px}}

/* fondo de foto (picnic con mantel incluido): se alinea abajo y no se dibuja otro mantel */
/* la imagen ocupa siempre el alto completo (así el mantel queda a la misma altura en celular y computadora);
   en pantallas anchas los costados se rellenan con la misma imagen difuminada */
.gfp.photo-bg .bg{background:#6CC56F;overflow:hidden}
.gfp.photo-bg .bg::before{content:"";position:absolute;inset:-30px;background:var(--bgimg) center/cover no-repeat;filter:blur(18px) brightness(.85)}
.gfp.photo-bg .bg::after{background:linear-gradient(rgba(20,40,20,.08),rgba(20,40,20,0) 40%,rgba(20,40,20,.12)),var(--bgimg) center bottom/auto 100% no-repeat}
.gfp.photo-bg .bg.dim::after{background:linear-gradient(rgba(20,40,20,.18),rgba(20,40,20,.05) 50%,rgba(20,40,20,.15)),var(--bgimg) center bottom/auto 100% no-repeat}
.gfp.photo-bg .gfp-blanket{display:none}
.gfp.photo-bg .gfp-sub,.gfp.photo-bg .gfo-tool b{text-shadow:0 2px 0 rgba(0,0,0,.55),0 0 6px rgba(0,0,0,.35)}
.gfp .gfp-lvhead{grid-column:1/-1;font:800 20px/1 var(--display);text-align:center;padding:6px 0 0;text-shadow:0 2px 0 rgba(0,0,0,.45)}
.gfp.photo-bg .app{max-width:min(560px,calc(100vh * var(--bgaspect,.47)))}
@supports (height:1dvh){.gfp.photo-bg .app{max-width:min(560px,calc(100dvh * var(--bgaspect,.47)))}}
