/* OV Agents · bottom sheet chat e missioni · © 2026 ZDOS1.3 */
.ova-sheet{position:fixed;left:0;right:0;bottom:0;z-index:90;margin:0 auto;max-width:560px;max-height:min(78vh,640px);display:flex;flex-direction:column;background:linear-gradient(180deg,#2a0c1a,#1a0812);color:#ffe4ef;border:1.5px solid rgba(245,195,108,.55);border-bottom:0;border-radius:20px 20px 0 0;box-shadow:0 -10px 40px rgba(0,0,0,.45);font:14px/1.45 system-ui,-apple-system,"Segoe UI",sans-serif;transform:translateY(105%);transition:transform .22s ease;padding-bottom:env(safe-area-inset-bottom)}
.ova-sheet.up{transform:none}
.ova-grip{width:42px;height:4px;border-radius:4px;background:rgba(245,195,108,.45);margin:8px auto 2px}
.ova-head{display:flex;align-items:center;gap:10px;padding:6px 12px 8px}
.ova-av{width:40px;height:40px;flex:none;border-radius:12px;background:rgba(255,255,255,.06);display:grid;place-items:center}
.ova-av svg,.ova-mav svg{width:34px;height:34px}
.ova-who{flex:1;min-width:0;display:flex;flex-direction:column}
.ova-who b{color:#f5c36c;font-size:15px}
.ova-who span{font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:#fda4af}
.ova-rosso{all:unset;cursor:pointer;font:800 11px/1 system-ui,sans-serif;letter-spacing:.08em;color:#fff;background:#dc2626;border-radius:999px;padding:7px 10px;box-shadow:0 0 0 2px rgba(220,38,38,.3)}
.ova-x{all:unset;cursor:pointer;font-size:24px;line-height:1;padding:2px 6px;color:#ffe4ef;opacity:.8}
.ova-rosso:focus-visible,.ova-x:focus-visible{outline:2px solid #f5c36c}
.ova-tabs{display:flex;gap:6px;padding:0 12px 8px}
.ova-tabs button{all:unset;cursor:pointer;flex:1;text-align:center;padding:7px 0;border-radius:10px;font-weight:700;font-size:13px;color:#fda4af;background:rgba(255,255,255,.04)}
.ova-tabs button.on{background:rgba(245,195,108,.16);color:#f5c36c}
.ova-pts{font-size:11px;opacity:.85}
.ova-body{display:flex;flex-direction:column;min-height:0;flex:1;padding:0 12px 10px;overflow:auto}
.ova-body[hidden]{display:none}
.ova-log{flex:1;min-height:150px;max-height:44vh;overflow:auto;display:flex;flex-direction:column;gap:7px;padding:4px 0 8px}
.ova-m{max-width:86%;padding:8px 11px;border-radius:14px;white-space:pre-wrap;word-wrap:break-word}
.ova-bot{align-self:flex-start;background:rgba(255,255,255,.07);border-bottom-left-radius:4px}
.ova-me{align-self:flex-end;background:#9f1239;color:#fff;border-bottom-right-radius:4px}
.ova-wait{opacity:.6;animation:ova-dots 1s steps(2) infinite}
@keyframes ova-dots{50%{opacity:.25}}
.ova-soft{border:1px dashed rgba(245,195,108,.45)}
.ova-guard{border:1px solid rgba(103,232,249,.45)}
.ova-stop{border:1.5px solid #dc2626;background:rgba(220,38,38,.12)}
.ova-tips{display:flex;gap:6px;flex-wrap:wrap;padding:2px 0 8px}
.ova-chip{all:unset;cursor:pointer;font-size:12px;padding:6px 10px;border-radius:999px;border:1px solid rgba(245,195,108,.4);color:#ffe4ef}
.ova-act{border-color:#67e8f9;color:#a5f3fc}
.ova-form{display:flex;gap:6px}
.ova-form input{flex:1;min-width:0;font:inherit;font-size:16px;color:#fff;background:rgba(0,0,0,.3);border:1px solid rgba(245,195,108,.35);border-radius:12px;padding:9px 11px;outline:none}
.ova-form input:focus{border-color:#f5c36c}
.ova-form button,.ova-btn{all:unset;cursor:pointer;font-weight:800;font-size:13px;color:#2a0c1a;background:linear-gradient(135deg,#ffe4a8,#f5c36c);border-radius:12px;padding:9px 14px;text-align:center}
.ova-form button:disabled,.ova-btn:disabled{opacity:.5;cursor:default}
.ova-note{font-size:10.5px;opacity:.7;margin:6px 0 0;text-align:center}
.ova-score{font-size:12.5px;padding:6px 0 10px;display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.ova-score b{color:#f5c36c;font-size:15px}
.ova-badge{font-size:10.5px;font-weight:800;color:#2a0c1a;background:#67e8f9;border-radius:999px;padding:3px 8px}
.ova-w{font-size:11px;opacity:.75;width:100%}
.ova-mc{position:relative;border:1px solid rgba(245,195,108,.3);border-radius:14px;padding:10px;margin-bottom:9px;background:rgba(255,255,255,.03);overflow:hidden}
.ova-mc.done{border-color:rgba(134,239,172,.5)}
.ova-mh{display:flex;gap:9px;align-items:center}
.ova-mh>div{flex:1;display:flex;flex-direction:column}
.ova-mh small{font-size:11px;opacity:.75}
.ova-mav{width:36px;height:36px;display:grid;place-items:center;flex:none}
.ova-tick{color:#86efac;font-weight:900}
.ova-mc p{margin:6px 0;font-size:12.5px}
.ova-quiz fieldset{border:0;margin:0 0 8px;padding:0}
.ova-quiz legend{font-weight:700;font-size:12.5px;margin-bottom:4px}
.ova-quiz label,.ova-sig{display:block;font-size:12.5px;padding:5px 7px;border-radius:9px;cursor:pointer}
.ova-quiz label:hover,.ova-sig:hover{background:rgba(255,255,255,.05)}
.ova-sig{border:1px solid rgba(255,255,255,.08);margin-bottom:6px}
.ova-sig code{display:block;font-size:10.5px;word-break:break-all;opacity:.85}
.ova-mini{all:unset;cursor:pointer;font-size:11px;color:#a5f3fc;margin-top:4px;display:inline-block}
.ova-hint{font-size:11.5px;opacity:.85}
.ova-hint a,.ova-more{color:#f5c36c}
.ova-more{display:block;text-align:center;font-size:12.5px;margin:4px 0 6px}
.ova-riddle{margin:6px 0 8px;padding:8px 10px;border-left:3px solid #fb7185;background:rgba(251,113,133,.08);font-style:italic;font-size:13px}
.ova-res{font-size:12.5px;font-weight:700;margin:8px 0 0}
.ova-res.ok{color:#86efac}.ova-res.ko{color:#fca5a5}
.ova-spark{position:absolute;bottom:10px;font-size:14px;color:#f5c36c;pointer-events:none;animation:ova-spark 1.2s ease-out forwards}
@keyframes ova-spark{0%{opacity:1;transform:translateY(0) scale(.7)}100%{opacity:0;transform:translateY(-60px) scale(1.2)}}
.ova-stagehint{margin:4px 0 8px;text-align:center;color:#ffe4ef}
.ova-duohint{text-align:center;font-size:12px!important;opacity:.85;margin:6px 0 0!important}
.ova-duohint a{color:inherit;text-decoration:underline;text-underline-offset:2px}
@media (min-width:700px){.ova-sheet{bottom:16px;border-radius:20px;border-bottom:1.5px solid rgba(245,195,108,.55)}}
@media (prefers-reduced-motion:reduce){.ova-sheet{transition:none}.ova-wait,.ova-spark{animation:none}}
.ova-sheet input[type=radio]{-webkit-appearance:radio;appearance:auto;all:revert;width:16px!important;height:16px!important;min-width:0!important;margin:0 8px 0 0!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;vertical-align:-3px;accent-color:#f5c36c;display:inline-block!important;flex:none}
.ova-mc input[type=radio]{-webkit-appearance:radio;appearance:auto;all:revert;width:16px!important;height:16px!important;margin:0 8px 0 0!important;vertical-align:-3px;accent-color:#f5c36c}
.ova-quiz label,.ova-sig{font-weight:500!important;color:#ffe4ef!important;text-transform:none!important;letter-spacing:0!important}
.ova-stagehint{font-size:12px!important;line-height:1.4!important;opacity:.88}
.ova-duohint a{color:#f5c36c!important;text-decoration:underline}
.ova-sheet p,.ova-sheet legend,.ova-sheet label{font-family:inherit}
.ova-sys{align-self:center;max-width:94%;font-size:11.5px;text-align:center;color:#fde68a;background:rgba(245,195,108,.1);border-radius:10px;padding:5px 9px}
