.cat-game{position:absolute;top:12px;left:12px;max-width:calc(100% - 24px);background:rgba(252,245,230,.96);box-shadow:0 3px 18px #182c2626;border:1px solid #d9d3bd;border-radius:12px;padding:10px 13px;font-size:12px;z-index:3}
.cat-game-top{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.cat-game strong{font-size:13px}.cat-game output{font-weight:700;color:#684294}.cat-game p{font-size:11px;line-height:1.4;margin:6px 0 0}.cat-game button{border:0;background:transparent;text-decoration:underline;font-size:11px;padding:7px 0;min-height:32px}.cat-game label{font-size:11px;display:inline-flex;align-items:center;gap:4px;margin-left:12px}.cat-game input{accent-color:var(--purple)}
.cat-game.flash{animation:cat-found .7s ease-out}.cat-game.done{border-color:#7846b8;background:#f5edfc}.cat-toast{position:absolute;left:50%;bottom:24px;transform:translateX(-50%);width:max-content;max-width:calc(100% - 100px);padding:13px 18px;background:var(--paper);border:1px solid #b395d1;box-shadow:0 4px 20px #182c2630;border-radius:14px;text-align:center;font-size:13px;pointer-events:none;z-index:4}
body.cat-world #match-status{top:auto;bottom:80px}body.cat-world #hint{display:none}.cat-keyboard-aim{display:none;position:absolute;left:50%;top:50%;width:22px;height:22px;transform:translate(-50%,-50%);border:1px solid #fcf5e6;border-radius:50%;box-shadow:0 0 0 1px #684294;pointer-events:none}.cat-keyboard-aim:before,.cat-keyboard-aim:after{content:"";position:absolute;background:#684294}.cat-keyboard-aim:before{width:28px;height:1px;left:-4px;top:10px}.cat-keyboard-aim:after{height:28px;width:1px;left:10px;top:-4px}body.cat-world #world:focus-visible~.cat-keyboard-aim{display:block}
#cat-success{width:470px;padding:42px 30px 28px;text-align:center;overflow:hidden}#cat-success h2{font-size:32px;line-height:1.15;margin:8px 0 15px}#cat-success p{font-size:14px}#cat-success .cat-achievement{color:#684294;font-size:11px;text-transform:uppercase;letter-spacing:1.7px;font-weight:700}#cat-success .cat-actions{display:grid;gap:10px;margin-top:22px}#cat-success .cat-actions button{padding:13px;min-height:44px;border-radius:8px}#cat-success .cat-again{border:1px solid #bfb4c5;background:transparent}#cat-success .celebrate{position:absolute;inset:0;pointer-events:none;overflow:hidden}#cat-success .celebrate i{position:absolute;top:-20px;left:var(--x);width:7px;height:15px;background:var(--c);border-radius:3px;animation:cat-confetti 1.7s var(--delay) ease-out both}#cat-success:not([open]) .celebrate i{animation:none}
@keyframes cat-found{0%{box-shadow:0 0 0 0 #b299d288}70%{box-shadow:0 0 0 12px #b299d200}100%{box-shadow:0 3px 18px #182c2626}}
@keyframes cat-confetti{0%{opacity:0;transform:translateY(0) rotate(0)}10%{opacity:1}100%{opacity:0;transform:translateY(360px) rotate(210deg)}}
@media(max-width:600px){.cat-game{top:8px;left:8px;max-width:calc(100% - 16px);padding:8px 10px}.cat-game-top{gap:6px 12px}.cat-game strong{font-size:12px}.cat-game p{max-width:290px;margin-top:2px}.cat-game label{margin-left:9px}.cat-toast{bottom:14px;max-width:calc(100% - 92px);left:10px;transform:none;font-size:12px;padding:10px 12px}#cat-success{padding:40px 22px 24px}#cat-success h2{font-size:28px}}
@media(prefers-reduced-motion:reduce){.cat-game.flash,#cat-success .celebrate i{animation:none}}
