#dock {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.6rem;
  align-items: center;
  padding: 0.45rem 0.7rem calc(0.45rem + env(safe-area-inset-bottom));
  background: var(--cream);
  border-top: 3px solid var(--ink);
}

#meBar { display: flex; align-items: center; gap: 0.45rem; min-width: 0; }

.meter {
  flex: 1;
  height: 14px;
  min-width: 70px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

#urgencyFill { height: 100%; width: 10%; background: #37d6a5; }

#hint {
  margin: 0;
  padding: 0.3rem 0.75rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff6ea;
  font-family: "Jua", "Malgun Gothic", sans-serif;
  text-align: center;
  font-size: 0.92rem;
}

#touch { display: flex; align-items: center; gap: 0.45rem; }

#stick {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: rgba(255, 255, 255, 0.75);
  position: relative;
  touch-action: none;
}

#knob {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--pink);
  border: 2px solid var(--ink);
  position: absolute;
  left: 25px;
  top: 25px;
}

#actions { display: flex; flex-direction: column; gap: 0.3rem; }

#actions button { min-width: 84px; }

#taunts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem;
}

#taunts button { padding: 0.35rem 0.45rem; }

#muteBtn { white-space: nowrap; }

@media (max-width: 820px) {
  #dock { grid-template-columns: 1fr; }
  #hint { order: 3; }
  canvas { width: 100%; height: 100%; }
}

@media (min-width: 821px) and (pointer: fine) {
  #touch { display: none; }
}
