/* "Try today's 3" (play.html). Colours as in the app: teal for right, soft amber for a miss, never red. */
.play{max-width:640px;margin:auto;padding:18px 16px 30px}
.play h1{font-size:clamp(34px,8vw,52px);letter-spacing:-1px;margin-bottom:10px}
.play .lead{font-size:18px}
.play button{font:inherit;cursor:pointer}
.play button:disabled{cursor:default}
.levelgrid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:22px 0 16px}
.lvbtn{display:flex;align-items:center;gap:12px;text-align:left;background:#fff;border:2px solid var(--line);border-radius:18px;padding:12px 14px;min-height:72px;color:var(--ink);box-shadow:0 3px 0 #1f2a4414;position:relative}
.lvbtn:hover{border-color:var(--indigo)}.lvbtn.last{border-color:var(--indigo);background:#f4f4ff}
.lvnum{flex:none;width:44px;height:44px;border-radius:50%;background:#ffc83d;display:grid;place-items:center;font-weight:900;font-size:20px}
.lvtext{display:flex;flex-direction:column;line-height:1.25;min-width:0}.lvtext b{font-size:18px}.lvtext small{font-size:14px;color:var(--grey)}
.lvdone{position:absolute;top:6px;right:10px;color:#14a898;font-weight:900}
.qtop{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
.close,.speak{width:48px;height:48px;border-radius:14px;border:0;background:transparent;font-size:24px;color:var(--grey)}
.close:hover,.speak:hover{background:#0000000a}.speak-space{width:48px}
.squares{display:flex;gap:8px;justify-content:center}
.sq{width:30px;height:30px;border-radius:8px;background:#e6e1da;display:grid;place-items:center;font-weight:900;font-size:16px;border:2.5px solid transparent;color:var(--ink)}
.sq.now{border-color:var(--ink)}.sq.first{background:#14a898;color:#fff}.sq.gotIt{background:#ffc83d}.sq.shown{background:#e6e1da}
.qcard{text-align:center;padding:6px 0 10px}
.topic{font-size:15px;font-weight:700;color:#66718a;margin:0 0 10px}
.people{display:flex;justify-content:center;align-items:flex-end;gap:14px;margin-bottom:8px}.people .kid{height:110px}.people .scene{height:76px;max-width:130px;object-fit:contain}
.qtext{font-size:clamp(23px,5.6vw,28px);font-weight:800;line-height:1.3;letter-spacing:0;margin:0 0 6px;white-space:pre-line}
.visual{margin:16px 0 4px;display:flex;justify-content:center}
.objects{display:flex;flex-wrap:wrap;justify-content:center;max-width:330px}
.obj{width:62px;height:64px;display:grid;place-items:center}.obj img{max-height:56px;max-width:58px}.obj span{font-size:46px}
.pattern{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;align-items:center;font-size:40px}
.pattern .qbox{width:52px;height:52px;border-radius:12px;background:#ffc83d4d;border:3px solid #ffc83d;display:grid;place-items:center;font-size:30px;font-weight:900}
.bigsum{font-size:clamp(40px,12vw,58px);font-weight:900;letter-spacing:1px;line-height:1.1;overflow-wrap:anywhere}
.clock{width:190px;height:190px}.rect{width:min(300px,100%);height:auto}
.hintarea{margin-top:12px}
.hintbtn{background:none;border:0;color:var(--indigo);font-weight:800;font-size:18px;padding:10px 14px;border-radius:12px}.hintbtn:hover{background:#5b5fef14}
.hint{text-align:left;background:#ffc83d2e;border:2px solid #ffc83d;border-radius:18px;padding:12px 16px;font-size:18px;line-height:1.35}
.answers{margin-top:22px}
.choices{display:grid;grid-template-columns:repeat(var(--cols),minmax(0,1fr));gap:12px}
.choice{min-height:68px;padding:10px 12px;border-radius:20px;border:3px solid #e6e1da;background:#fff;color:var(--ink);font-size:clamp(20px,5.4vw,26px);font-weight:800;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 0 #1f2a441a;overflow-wrap:anywhere}
.choice.ready:hover{border-color:var(--indigo)}
.choice.tried{background:#fff3d1;border-color:#ffb300;color:#5d4300;box-shadow:none}.choice.tried .clabel{text-decoration:line-through}
.choice.right{background:#14a89826;border-color:#14a898;box-shadow:none}.choice.right .mark{color:#0b7a6e}
.choice.off{opacity:.5;box-shadow:none}
.typed{display:block;width:220px;max-width:100%;height:72px;margin:0 auto 14px;text-align:center;font-size:36px;font-weight:900;border:3px solid var(--indigo);border-radius:18px;background:#fff;color:var(--ink);font-family:inherit}
.typed.over{border-color:#14a898}
.numpad{display:grid;grid-template-columns:repeat(3,78px);gap:10px;justify-content:center}
.numpad button{height:60px;border-radius:16px;border:0;background:#fff;font-size:28px;font-weight:800;color:var(--ink);box-shadow:0 3px 0 #1f2a441a}
.numpad .del{background:#f2eee8}.numpad .ok{background:#14a898;color:#fff}
.numpad button:disabled{opacity:.45}
.feedback{margin:18px -16px 0;padding:0 20px}
.feedback.teal,.feedback.amber{padding:14px 20px 18px;border-top:3px solid}
.feedback.teal{background:#14a8981f;border-color:#14a898}.feedback.amber{background:#fff3d1;border-color:#ffb300}
.ftitle{font-size:22px;font-weight:900;margin:0 0 4px}.fbody{font-size:18px;line-height:1.4;margin:0 0 12px}
.next{display:block;width:100%;margin-top:10px;background:#14a898;color:#fff;border:0;border-radius:16px;padding:14px;font-size:20px;font-weight:900;box-shadow:0 4px 0 #0b7a6e}
.endcard{text-align:center;background:#fff;border:1px solid var(--line);border-radius:24px;padding:26px 20px}
.endcard .squares{margin:10px 0 14px}.endcard .sq{width:46px;height:46px;font-size:24px;border-radius:12px}
.endcard .stores{justify-content:center}.endcard .lead{margin:6px auto 4px}
.score{font-size:19px;font-weight:800}
.tomorrow{text-align:center;font-size:17px;margin:22px 0 10px}
.endbtns{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}.endbtns .btn{border:2px solid var(--line)}
.burst{position:fixed;inset:0;pointer-events:none;z-index:50;display:grid;place-items:center}
.burst .cheer{background:#fff;color:var(--ink);font-weight:900;font-size:22px;padding:10px 20px;border-radius:30px;box-shadow:0 8px 24px #1f2a4429;animation:pop .9s ease-out both;max-width:86vw;text-align:center}
.burst.gentle .cheer{background:#fff3d1;color:#5d4300;font-size:19px}
.burst.big .cheer{font-size:30px;animation-duration:2s}
.burst i{position:absolute;left:50%;top:50%;width:10px;height:14px;border-radius:3px;animation:fly 1.1s ease-out both}
.burst.big i{animation-duration:2.2s}
@keyframes fly{from{transform:translate(-50%,-50%) scale(.4);opacity:1}to{transform:translate(calc(-50% + var(--x)),calc(-50% + var(--y))) rotate(320deg);opacity:0}}
@keyframes pop{0%{transform:scale(.6);opacity:0}15%{transform:scale(1.06);opacity:1}80%{opacity:1}100%{opacity:0}}
@media(max-width:420px){.levelgrid{grid-template-columns:1fr}.lvbtn{min-height:64px}.numpad{grid-template-columns:repeat(3,minmax(64px,78px))}}
@media(prefers-reduced-motion:reduce){.burst .cheer{animation:none}}
