html, body {
  margin: 0;
  padding: 0;
  background: #0b0f14;
  color: #eaeaea;
  font-family: monospace;
  overflow: hidden;
}

#input {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  padding: 8px 12px;
  background: #111;
  border: 1px solid #333;
  color: #fff;
  z-index: 10;
}

canvas {
  position: absolute;
  inset: 0;
}

/* Semantic panel */
#panel {
  position: fixed;
  top: 0;
  right: -360px;
  width: 340px;
  height: 100%;
  background: rgba(15, 20, 30, 0.95);
  border-left: 1px solid #333;
  padding: 18px;
  box-sizing: border-box;
  transition: right 0.35s ease;
  z-index: 20;
}

#panel.show {
  right: 0;
}

#panel-close {
  position: absolute;
  top: 10px;
  right: 14px;
  cursor: pointer;
  font-size: 18px;
}

#panel-word {
  margin-top: 30px;
  font-size: 20px;
}

#panel-pos {
  color: #9aa8ff;
}

#panel-def {
  margin-top: 10px;
  line-height: 1.5;
}

#panel-related span {
  display: inline-block;
  margin: 6px 6px 0 0;
  padding: 4px 8px;
  border: 1px solid #444;
  cursor: pointer;
  opacity: 0.8;
}

#panel-related span:hover {
  opacity: 1;
  background: #1a2235;
}
