/* Racó de jocs del dia: mateixa fotografia, verd i llum de la campanya. */
.activity-copy .christmas-games{color:#fff;background:#31704f}
.activity-copy .christmas-games .game-date{font:700 18px/1.5 var(--sans);color:#fff6df;margin:0 0 8px}
.activity-copy .christmas-games .game-title{font:700 clamp(40px,6vw,52px)/1.05 'Caveat',cursive;letter-spacing:0;color:#fff;max-width:510px;margin:0 auto;text-wrap:balance}
.activity-copy .christmas-games .game-title:focus{outline:none}
.game-hub{text-align:center;padding:28px;background:linear-gradient(#31704fe6,#31704ff0),url('motius/estrelles.svg') center/240px}
.activity-copy .christmas-games .game-hub-help{font:400 16px/1.6 var(--sans);margin:18px auto 24px;color:#e9f1e9}
.game-choices{display:grid;grid-template-columns:1fr 1fr;gap:18px;max-width:440px;margin:0 auto}
.game-choice{padding:16px 12px 18px;border:1px solid #b6cbb9;border-radius:9px;min-width:0;background:#357753;color:#fff;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:9px}
.game-choice strong{font:700 21px/1.3 var(--sans)}
.game-choice>span:last-child{font:400 13px/1.4 var(--sans)}
.game-choice:hover{background:#397950;border-color:#e2cc91}
.game-choice-art{display:block;position:relative;width:130px;height:130px;margin-bottom:6px}
.game-memory-art i{position:absolute;left:8px;top:12px;width:78px;height:100px;border:2px solid #e2cc91;border-radius:7px;background:#edf4ef url('motius/estrelles.svg') center/130px;transform:rotate(-12deg);box-shadow:0 4px 10px #002b2040}
.game-memory-art i+i{left:42px;top:18px;transform:rotate(12deg)}
.game-memory-art svg{position:absolute;left:22px;top:32px;width:30px;height:30px;color:#10543a}
.game-puzzle-art{border:3px solid #edf4ef;border-radius:7px;overflow:hidden;transform:rotate(4deg)}
.game-puzzle-art img{display:block;width:100%;height:100%;object-fit:cover}
.game-puzzle-art::after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,transparent calc(50% - 2px),#edf4ef calc(50% - 2px),#edf4ef calc(50% + 2px),transparent calc(50% + 2px)),linear-gradient(0deg,transparent calc(50% - 2px),#edf4ef calc(50% - 2px),#edf4ef calc(50% + 2px),transparent calc(50% + 2px))}
.game-hub-return{display:block;margin:0;padding:12px 22px;min-height:44px;border:0;border-bottom:1px solid #cadac040;background:#31704f;color:#fff6df;font:600 13px/1.5 var(--sans);text-decoration:underline;text-underline-offset:4px;cursor:pointer}
.puzzle-setup,.puzzle-play,.puzzle-finish{padding:24px 28px 22px;text-align:center}
.activity-copy .christmas-games .puzzle-help{font:400 16px/1.55 var(--sans);color:#e9f1e9;margin:14px auto 20px;max-width:420px}
.puzzle-characters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;max-width:420px;margin:0 auto 24px}
.puzzle-character{border:2px solid transparent;border-radius:8px;background:transparent;padding:4px;min-width:0;color:#fff;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:7px}
.puzzle-character[aria-pressed="true"]{border-color:#e2cc91;background:#397950}
.puzzle-character img{display:block;width:100%;height:95px;object-fit:cover;border-radius:5px}
.puzzle-character span{font:600 13px/1.4 var(--sans);overflow-wrap:anywhere}
.puzzle-setup .memory-levels{max-width:420px;margin:auto}
.activity-copy .christmas-games .puzzle-count{font:600 13px/1.5 var(--sans);color:#fff6df;margin:0 0 14px}
.puzzle-area{position:relative;max-width:390px;margin:0 auto}
.puzzle-board{display:grid;grid-template-columns:repeat(var(--puzzle-size,2),minmax(0,1fr));gap:3px;aspect-ratio:1;border:2px solid #e2cc91;border-radius:8px;background:#e2cc91;overflow:hidden}
.puzzle-piece{position:relative;display:block;aspect-ratio:1;min-width:0;min-height:48px;border:0;background:#357753;padding:0;overflow:hidden;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.puzzle-piece img{display:block;position:absolute;object-fit:cover;max-width:none;pointer-events:none;user-select:none}
.puzzle-piece::after{content:'';position:absolute;inset:0;pointer-events:none}
.puzzle-piece.is-selected::after{box-shadow:inset 0 0 0 5px #ffe4a4;background:#ffe4a422}
.puzzle-piece.is-placed{cursor:default}
.puzzle-placed-mark{position:absolute;right:5px;top:5px;width:23px;height:23px;display:grid;place-items:center;border-radius:50%;background:#31704f;color:#fff;font:700 15px/1 var(--sans)}
.puzzle-board.is-complete{gap:0}
.puzzle-board.is-complete .puzzle-placed-mark{display:none}
.puzzle-reference{position:absolute;inset:2px;pointer-events:none;z-index:2}
.puzzle-reference img{display:block;width:100%;height:100%;object-fit:cover;border-radius:5px}
.activity-copy .christmas-games .puzzle-feedback{font:400 14px/1.6 var(--sans);min-height:45px;color:#e9f1e9;max-width:420px;margin:16px auto 0}
.puzzle-tools{display:flex;gap:4px 20px;justify-content:center;flex-wrap:wrap}
.puzzle-tools button{border:0;border-bottom:1px solid #a1c3af;background:none;color:#e9f1e9;min-height:44px;padding:8px 0;font:600 13px/1.5 var(--sans);cursor:pointer}
.puzzle-solved-photo{display:block;width:min(290px,100%);height:auto;aspect-ratio:1;object-fit:cover;border:3px solid #e2cc91;border-radius:8px;margin:0 auto 24px}
.puzzle-finish .memory-finish-stars{margin-bottom:20px}
.christmas-games button:focus-visible{outline:3px solid #ffe4a4;outline-offset:4px}
.christmas-games .puzzle-piece:focus-visible{outline-offset:-5px}
.activity-copy .christmas-games .game-nojs{font-size:16px;padding:20px;margin:0}
@media(max-width:640px){
 .game-hub{padding:24px 20px}
 .activity-copy .christmas-games .game-title{font-size:42px}
 .game-choices{gap:12px}
 .game-choice{padding:14px 8px 16px}
 .game-choice-art{width:112px;height:112px}
 .game-memory-art i{width:67px;height:89px;left:6px;top:8px}
 .game-memory-art i+i{left:36px;top:14px}
 .game-memory-art svg{width:28px;height:28px;left:17px;top:29px}
 .game-choice>span:last-child{font-size:12px}
 .puzzle-setup,.puzzle-play,.puzzle-finish{padding:20px}
 .puzzle-character img{height:82px}
 .puzzle-characters{gap:10px;margin-bottom:20px}
 .activity-copy .christmas-games .puzzle-help{font-size:15px;margin:12px auto 18px}
}
@media(max-width:350px){
 .game-choice-art{width:96px;height:104px}
 .game-memory-art i{left:0;width:61px;height:82px}
 .game-memory-art i+i{left:30px}
 .game-memory-art svg{left:15px;top:25px}
 .puzzle-character img{height:66px}
 .puzzle-character span{font-size:12px}
 .puzzle-characters{gap:6px}
}
