/* Shared browser-game styles */
.play-page{padding:46px clamp(16px,5vw,64px) 76px}.play-intro{max-width:850px;margin:0 auto 26px;text-align:center}.play-intro h1{font-family:"Arial Rounded MT Bold",Arial,sans-serif;font-size:clamp(2.8rem,6vw,5rem);letter-spacing:-.05em;line-height:.94;margin:.12em 0 .2em}.play-intro p{font-size:1.05rem;line-height:1.6}.play-panel{max-width:900px;margin:0 auto;padding:28px;background:#fff;border:3px solid #25313b;box-shadow:8px 8px 0 #25313b}.play-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:20px}.play-status{font-weight:900;text-transform:uppercase;letter-spacing:.07em}.score-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}.score-row span{padding:5px 8px;border:2px solid #25313b;border-radius:999px;background:#fff9e9;font-size:.74rem;font-weight:900}.play-reset{appearance:none;border:2px solid #25313b;background:#ffd95a;padding:10px 14px;min-height:44px;font:inherit;font-weight:900;cursor:pointer;box-shadow:3px 3px 0 #25313b}.play-reset:active{transform:translate(2px,2px);box-shadow:1px 1px 0 #25313b}.play-message{margin-top:18px;padding:16px 18px;background:#fff0bd;border:3px solid #25313b;font-weight:800;line-height:1.45}.play-message.celebrate{animation:message-pop .42s ease}@keyframes message-pop{50%{transform:scale(1.025)}}.memory-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.memory-card{position:relative;aspect-ratio:1/1.05;border:0;background:transparent;padding:0;cursor:pointer;perspective:800px}.memory-card-inner{position:absolute;inset:0;transition:transform .25s ease;transform-style:preserve-3d}.memory-card.flipped .memory-card-inner,.memory-card.matched .memory-card-inner{transform:rotateY(180deg)}.memory-face{position:absolute;inset:0;border:3px solid #25313b;display:grid;place-items:center;backface-visibility:hidden}.memory-back{background:#c9eeee;font-family:"Arial Rounded MT Bold",Arial,sans-serif;font-size:2rem}.memory-back:after{content:"?"}.memory-front{background:#fff;transform:rotateY(180deg);padding:12px}.memory-front img{max-width:100%;max-height:100%;object-fit:contain}.memory-card.matched .memory-front{background:#dff0df}.memory-card:focus-visible{outline:4px solid #e6533f;outline-offset:4px}.detective-board{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.detective-choice{appearance:none;border:3px solid #25313b;background:#fff;padding:14px;cursor:pointer;min-height:170px;box-shadow:4px 4px 0 #25313b;transition:transform .12s ease}.detective-choice:hover{transform:translateY(-2px)}.detective-choice.correct{background:#dff0df}.detective-choice.wrong{background:#f9c8c0}.detective-choice img{width:100%;height:130px;object-fit:contain}.detective-choice:focus-visible{outline:4px solid #e6533f;outline-offset:4px}.round-dots{display:flex;gap:8px;margin-top:9px}.round-dot{width:13px;height:13px;border-radius:50%;border:2px solid #25313b;background:#fff}.round-dot.done{background:#316c4a}@media(max-width:700px){.play-page{padding:28px 12px 58px}.play-intro{text-align:left;padding:0 4px}.play-panel{padding:18px 14px;box-shadow:5px 5px 0 #25313b}.memory-grid{grid-template-columns:repeat(4,1fr);gap:8px}.memory-face{border-width:2px}.memory-front{padding:6px}.detective-board{grid-template-columns:1fr 1fr;gap:10px}.detective-choice{min-height:145px;padding:8px}.detective-choice img{height:110px}}
/* Younger-player hunt and visual-memory game */
.young-hunt{position:relative;aspect-ratio:1.2/1;overflow:hidden;border:3px solid #25313b;background:#dff4f4}.young-hunt-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.hunt-target{position:absolute;width:18%;min-width:72px;transform:translate(-50%,-50%);border:0;background:transparent;padding:6px;cursor:pointer;filter:drop-shadow(3px 3px 0 rgba(255,255,255,.9))}.hunt-target img{display:block;width:100%;height:auto}.hunt-target.found{opacity:.3;pointer-events:none}.hunt-target.found:after{content:"✓";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#316c4a;color:#fff;border:3px solid #25313b;font-size:1.4rem;font-weight:900}.hunt-target:focus-visible{outline:4px solid #e6533f;border-radius:12px}.missing-prompt{text-align:center;font-weight:900;font-size:1.15rem}.missing-display,.missing-choices{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:18px 0}.missing-item,.missing-choices button{display:grid;place-items:center;min-height:150px;border:3px solid #25313b;background:#fff;padding:10px;box-shadow:4px 4px 0 #25313b}.missing-item img,.missing-choices img{width:100%;height:120px;object-fit:contain}.missing-blank{font-size:3rem;font-weight:900;background:#fff0bd}.missing-ready{display:block;margin:18px auto 0;min-height:52px;padding:12px 24px;border:3px solid #25313b;background:#ffd95a;box-shadow:4px 4px 0 #25313b;font:inherit;font-weight:900;cursor:pointer}.missing-choices button{cursor:pointer}.missing-choices button:hover{transform:translateY(-2px)}.missing-choices button:focus-visible,.missing-ready:focus-visible{outline:4px solid #e6533f;outline-offset:4px}
@media(max-width:700px){.young-hunt{aspect-ratio:1/1}.hunt-target{width:23%;min-width:66px}.missing-display,.missing-choices{grid-template-columns:1fr 1fr;gap:9px}.missing-item,.missing-choices button{min-height:120px}.missing-item img,.missing-choices img{height:95px}}
