:root{--panel-w:320px}
*{box-sizing:border-box}
html,body,#app{height:100%;margin:0}
body{font-family:Inter,system-ui,Arial;background:#050505;color:#fff}
#app{display:flex;min-height:100vh;width:100%}
#panel{width:var(--panel-w);padding:10px;background:#0b0b0b;border-right:1px solid rgba(255,255,255,0.04);overflow-x:hidden;overflow-y:auto}
#panel h2{margin:0 0 12px 0;font-size:18px}
.question{margin-bottom:20px}
.question label{display:inline-flex;align-items:center;margin:0;font-size:14px;font-weight:600;color:#fff}
.emotions{ display:flex;flex-direction:column;gap:6px;}
.emotions label{display:grid;grid-template-columns:16px 1fr;column-gap:10px;align-items:center;width:100%;margin:0;font-size:13px; color:#dcdcdc; line-height:1.3;}
.emotions input[type="checkbox"]{margin:0;padding: 0; flex-shrink: 0;}
select,input{width:100%;padding:8px;margin-top:0;border-radius:6px;border:1px solid #222;background:#0f0f0f;color:#fff}
.word-input{margin-top:10px}
.buttons{display:flex;gap:8px;margin-top:20px}
.buttons button{flex:1;padding:12px;border-radius:6px;border:none;background:#007bff;color:#fff;font-weight:600;cursor:pointer}
.buttons button:hover{background:#0056b3}
#resultInfo{margin-top:20px}
#title{font-weight:600}
.muted{color:#999;font-size:12px}
.switch{display:block;margin-top:14px;font-size:13px;color:#ddd}
#canvasArea{flex:1;display:flex;align-items:center;justify-content:center;padding:18px;overflow:auto}
#canvas-wrap{width:100%;height:100%;min-height:480px;display:flex;align-items:center;justify-content:center}
canvas{display:block;width:100%;height:100%;background:#050505}

@media (max-width:1000px){
  :root{--panel-w:300px}
  #canvas-wrap{min-width:600px;min-height:480px}
}

/* small helper */
.muted{opacity:.8}
