html,body{margin:0;height:100%;background:#06060a;overflow:hidden;user-select:none;-webkit-user-select:none;touch-action:none}
#wrap{position:fixed;inset:0;display:flex;align-items:center;justify-content:center}
canvas{display:block}
#touch{position:fixed;inset:0;pointer-events:none;display:none}
#touch .b{position:absolute;pointer-events:auto;width:76px;height:76px;border-radius:50%;background:rgba(255,255,255,.14);border:2px solid rgba(255,255,255,.35);color:#fff;font:bold 15px sans-serif;display:flex;align-items:center;justify-content:center}
#touch .b.on{background:rgba(225,6,0,.55)}
#net{position:fixed;inset:0;z-index:20;display:flex;align-items:center;justify-content:center;background:rgba(4,4,8,.72);font-family:"Malgun Gothic","Apple SD Gothic Neo","Noto Sans KR",sans-serif;color:#eee;padding:16px;box-sizing:border-box}
#net.hide{display:none}
body.light{background:#f5f5f8}
body.light #net{background:rgba(240,240,246,.75);color:#1a1a20}
body.light #net .pn{background:#ffffff;border-color:#dcdce4}
body.light #net input,body.light #net select{background:#f2f2f6;border-color:#cfcfd8;color:#15151a}
body.light #net button{background:#ececf2;border-color:#d0d0da;color:#15151a}body.light #net button:hover:not(:disabled){background:#e0e0e8}
body.light #net button.pri{background:#e10600;border-color:#e10600;color:#fff}body.light #net button.on{background:#1e8a3c;color:#fff}
body.light #net .list{border-color:#e0e0e6}body.light #net .it{border-color:#ececf0}body.light #net .it.me{background:#f4f4f8}
body.light #net .tag{background:#ececf2;color:#333}body.light #net .code{background:#f6f6f9;border-color:#bbb}
body.light #net .st,body.light #net h3,body.light #net label.l,body.light #net .note,body.light #net .sets div{color:#5a5a66}
#net .pn{width:100%;max-width:760px;max-height:100%;overflow:auto;background:#121218;border:1px solid #2c2c36;border-top:5px solid #e10600;border-radius:12px;padding:18px 22px;box-sizing:border-box}
#net .hd{display:flex;align-items:center;gap:12px;margin-bottom:14px}
#net .hd b{font-size:22px;letter-spacing:.5px}#net .hd b i{color:#e10600;font-style:normal}
#net .st{font-size:12px;color:#9a9aa8;flex:1}#net .st.ok{color:#3ce65a}
#net h3{font-size:14px;color:#a8a8b6;margin:16px 0 8px;font-weight:700}
#net .row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:8px 0}
#net label.l{width:64px;font-size:13px;color:#9a9aa8}
#net input,#net select{background:#1e1e28;border:1px solid #3a3a46;color:#fff;border-radius:6px;padding:8px 10px;font:inherit;font-size:14px}
#net input[type=checkbox]{width:18px;height:18px;padding:0;accent-color:#e10600}
#net button{background:#2a2a34;border:1px solid #3a3a46;color:#fff;border-radius:7px;padding:9px 14px;font:inherit;font-size:14px;font-weight:700;cursor:pointer}
#net button:hover:not(:disabled){background:#363644}#net button:disabled{opacity:.4;cursor:default}
#net button.pri{background:#e10600;border-color:#e10600}#net button.pri:hover:not(:disabled){background:#ff2418}
#net button.on{background:#1e8a3c;border-color:#3ce65a}
#net .chip{display:inline-block;width:12px;height:12px;border-radius:3px;vertical-align:-1px;margin-right:6px}
#net .tm{min-width:120px;text-align:center;font-weight:700}
#net .list{border:1px solid #2a2a34;border-radius:8px;overflow:hidden}
#net .it{display:flex;align-items:center;gap:10px;padding:9px 12px;border-top:1px solid #23232c;font-size:14px}
#net .it:first-child{border-top:0}#net .it.me{background:#1d1d27}
#net .it .nm{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#net .tag{font-size:11px;padding:2px 7px;border-radius:9px;background:#2a2a34;color:#c8c8d2;white-space:nowrap}
#net .tag.g{background:#1e8a3c;color:#fff}#net .tag.y{background:#ffcd28;color:#111}#net .tag.r{background:#7a1010;color:#fff}
#net .code{font-size:15px;background:#1a1a22;border:1px dashed #555;border-radius:8px;padding:10px 14px;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
#net .code b{font-size:26px;letter-spacing:6px;color:#ffcd28;font-family:monospace}
#net .note{font-size:12px;color:#8a8a96;line-height:1.5}
#net .err{color:#ff6a6a;font-size:13px;margin-top:8px}
#net .empty{padding:14px;color:#777;font-size:13px;text-align:center}
#net .sets{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
#net .sets div{display:flex;flex-direction:column;gap:4px;font-size:12px;color:#9a9aa8}
