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

html {
  font-size: 16px;
}

body {
  background: #000;
  overflow: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: white;
}

#container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.input-container {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: 90%;
  max-width: 600px;
  padding: 0 1rem;
}

.input-wrapper {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

#morphText {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.75rem 1rem;
  color: white;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 12px;
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
  text-align: left;
  caret-color: #fff;
  resize: none;
  overflow: hidden;
  min-height: 3rem;
  line-height: 1.4;
}

#morphText:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

#morphText::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

#typeBtn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.75rem 1.25rem;
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  white-space: nowrap;
}

#typeBtn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

#typeBtn:active {
  transform: translateY(1px);
}

.char-counter {
  position: absolute;
  bottom: -1.5rem;
  right: 1rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.3s ease;
}

.char-counter.warning {
  color: #ff6b6b;
}

@media (max-width: 640px) {
  html {
    font-size: 14px;
  }

  .input-container {
    bottom: 1.5rem;
    width: 94%;
  }

  #morphText {
    font-size: 0.85rem;
    padding: 0.65rem 0.85rem;
  }

  #typeBtn {
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
  }
}
