*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  background: #ebebeb;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

#app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

#timer {
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  display: block;
}

#timer.dragging {
  cursor: grabbing;
}

#controls {
  display: flex;
  gap: 16px;
  align-items: center;
}

#digital-time {
  font-family: 'VT323', 'Courier New', monospace;
  font-size: 28px;
  color: #aaa;
  letter-spacing: 2px;
  min-width: 64px;
  text-align: right;
  line-height: 1;
  user-select: none;
}

#controls button {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid #d8d8d8;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #222;
  transition: background 0.15s, border-color 0.15s;
  flex-shrink: 0;
}

#controls button:hover {
  background: #f5f5f5;
  border-color: #bbb;
}

#controls button:active {
  background: #ececec;
}

#controls button svg {
  width: 20px;
  height: 20px;
}

#icon-play {
  transform: translateX(1px);
}

#mutetoggle.muted {
  color: #aaa;
  border-color: #ddd;
}
