* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: Inter, ui-sans-serif, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  background: #f6f6f3; color: #121214; font-size: 13px;
  display: grid; place-items: center; padding: 12px; min-height: 100vh;
}
.rc {
  width: min(560px, 100%);
  border: 1px solid rgba(18,18,20,.13); border-radius: 14px;
  background: #fbfbf9; padding: 12px 14px;
  box-shadow: 0 12px 30px rgba(18,18,20,.08);
  user-select: none; -webkit-user-select: none;
}
.rc-top { display: flex; align-items: center; gap: 8px; }
.rc-dot { width: 10px; height: 10px; border-radius: 50%; background: #0f7a3d; box-shadow: 0 0 0 3px rgba(15,122,61,.15); }
.rc-dot.off { background: #a92431; box-shadow: 0 0 0 3px rgba(169,36,49,.15); }
.rc-name { font-weight: 800; letter-spacing: .08em; font-size: 12px; }
.rc-live {
  margin-left: auto; font-size: 10px; font-weight: 700; letter-spacing: .12em;
  color: #0f7a3d; border: 1px solid rgba(15,122,61,.35); border-radius: 999px;
  padding: 2px 8px; background: rgba(15,122,61,.08);
}
.rc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.rc-pad, .rc-tele {
  border: 1px solid rgba(18,18,20,.13); border-radius: 10px;
  padding: 10px; background: #fff; text-align: center;
}
small { color: #67676a; font-size: 10px; letter-spacing: .12em; font-weight: 700; }
.stick {
  width: 110px; height: 110px; margin: 8px auto; border-radius: 50%;
  background: radial-gradient(circle, #ececea 0 30%, #e0e0dd 31% 100%);
  border: 1px solid rgba(18,18,20,.15);
  position: relative; touch-action: none; cursor: grab;
}
.knob {
  position: absolute; left: 50%; top: 50%;
  width: 44px; height: 44px; border-radius: 50%;
  background: #151518; transform: translate(-50%, -50%);
  box-shadow: 0 4px 10px rgba(18,18,20,.3);
}
.rc-pad strong, .rc-tele strong { display: block; font-size: 16px; margin-top: 4px; }
.rc-tele { display: grid; gap: 8px; text-align: left; }
.bar { height: 7px; border-radius: 999px; background: #e4e4e1; overflow: hidden; margin-top: 4px; }
.bar i { display: block; height: 100%; width: 0; background: #355fe5; border-radius: inherit; transition: width .15s linear; }
#batt-bar { background: #0f7a3d; }
.rc-foot { display: flex; gap: 8px; margin-top: 10px; }
.rc-foot button {
  flex: 1; border-radius: 9px; padding: 9px; font-weight: 650; font-size: 12px; cursor: pointer;
  border: 1px solid rgba(18,18,20,.15); background: #fff; color: #121214;
}
#drive { background: #151518; color: #fff; border-color: rgba(255,255,255,.08); }
#drive.on { background: #0f7a3d; }
