*{box-sizing:border-box}
html,body{margin:0;height:100%;overflow:hidden;background:#ffe9f0;font-family:ui-rounded,"SF Pro Rounded",system-ui,-apple-system,"Segoe UI",sans-serif;color:#3b2a4a;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
canvas{position:fixed;inset:0;width:100vw;height:100vh;height:100dvh;touch-action:none;display:block;image-rendering:pixelated}
#hud{position:fixed;left:12px;top:max(10px,env(safe-area-inset-top));pointer-events:none;background:rgba(255,255,255,.82);border:3px solid #3b2a4a;border-radius:14px;padding:6px 12px 7px;box-shadow:4px 4px 0 #3b2a4a}
#hud h1{margin:0;font-size:20px;letter-spacing:.5px;font-family:ui-monospace,"SF Mono",Menlo,Consolas,monospace;font-weight:800}
#hud p{margin:2px 0 0;font-size:12px;opacity:.8}
#bar{position:fixed;left:50%;transform:translateX(-50%);bottom:max(12px,env(safe-area-inset-bottom));display:flex;gap:6px;background:rgba(255,255,255,.9);border:3px solid #3b2a4a;border-radius:16px;padding:6px;box-shadow:4px 4px 0 #3b2a4a;max-width:calc(100vw - 16px)}
#bar button{font:inherit;font-size:11px;font-weight:700;color:#3b2a4a;background:#fff4d6;border:2px solid #3b2a4a;border-radius:10px;padding:4px 7px;display:flex;flex-direction:column;align-items:center;gap:1px;cursor:pointer;min-width:48px;touch-action:manipulation}
#bar button span{font-size:18px;line-height:1}
#bar button.on{background:#ffb3c9;transform:translateY(1px)}
#bar button:active{transform:translateY(2px)}
#roster{position:fixed;right:10px;top:max(10px,env(safe-area-inset-top));bottom:90px;width:min(300px,calc(100vw - 20px));background:#fffaf2;border:3px solid #3b2a4a;border-radius:14px;box-shadow:4px 4px 0 #3b2a4a;display:flex;flex-direction:column;z-index:5}
#roster[hidden]{display:none}
.rhead{display:flex;justify-content:space-between;align-items:center;padding:8px 10px;border-bottom:2px dashed #3b2a4a;font-family:ui-monospace,Menlo,monospace}
.rhead button{font:inherit;font-weight:800;border:2px solid #3b2a4a;background:#ffd0dc;border-radius:8px;width:28px;height:28px;cursor:pointer}
#rlist{list-style:none;margin:0;padding:6px;overflow-y:auto;-webkit-overflow-scrolling:touch}
#rlist li{display:flex;align-items:center;gap:8px;padding:4px 6px;border-radius:10px;cursor:pointer}
#rlist li:hover,#rlist li:active{background:#ffe3ec}
#rlist img{width:48px;height:40px;image-rendering:pixelated;flex:none}
#rlist b{display:block;font-size:14px}
#rlist small{font-size:11px;opacity:.75}
.ns{position:fixed;inset:40% 10% auto;text-align:center;font-size:18px}
@media (max-width:520px){#hud h1{font-size:16px}#hud p{font-size:11px;max-width:220px}#bar{gap:3px;padding:4px}#bar button{min-width:0;padding:3px 5px;font-size:10px}#bar button span{font-size:16px}}
#verdict{margin:6px 0 0;display:inline-flex;align-items:center;gap:6px;font-family:ui-monospace,"SF Mono",Menlo,Consolas,monospace;font-size:11px;font-weight:700;line-height:1.25;padding:3px 8px 3px 6px;border:2px solid #3b2a4a;border-radius:8px;background:#fff4d6;max-width:min(320px,calc(100vw - 50px))}
#verdict i{font-style:normal;flex:none;width:10px;height:10px;border:2px solid #3b2a4a;background:#ccc;image-rendering:pixelated}
#verdict.human{background:#d9f7e4}#verdict.human i{background:#3fcf7a}
#verdict.bot{background:#ffe0e6}#verdict.bot i{background:#ff4f7a}
#verdict.maybe{background:#fff4d6}#verdict.maybe i{background:#ffc44a}
#verdict.pop{animation:vpop .5s steps(4)}
@keyframes vpop{0%{transform:scale(1)}50%{transform:scale(1.12)}100%{transform:scale(1)}}
@media (max-width:520px){#verdict{font-size:10px}}
